Ask Your Question
2

How to install tarball modules without Forge

asked 2013-09-11 16:35:01 -0500

gregsh gravatar image

updated 2013-09-12 00:54:51 -0500

golja gravatar image

I am new to Puppet but have read quite a bit about implementing. I must have missed something obvious and perhaps trivial in how to install a downloaded, tarball module from Puppet Forge. My customer has systems not connected to the Internet, so I'd like to install a module like puppet-ntp-2.0.1 onto my RHEL63 system. I cannot use the puppet module install tool due to Issue #13542.
When I run papply, I get "Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class ntp at /var/puppet/manifests/nodes.pp"... Is there a ... (more)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-09-11 23:44:24 -0500

liu.cy gravatar image

unpack your tarball to /etc/puppet/modules directory, and rename it to the module name which defined in manifests/init.pp.

like you downloaded puppet-ntp-2.0.1.tar.gz, unpack to /etc/puppet/modules/puppet-ntp-2.0.1, the modules name should be ntp and you can use 'head /etc/puppet/modules/puppet-ntp-2.0.1/manifests/init.pp' command to verify. then rename puppet-ntp-2.0.1 to ntp, you can use it now.

edit flag offensive delete link more

Comments

Thank you! That was easy and that worked. I guess I missed the renaming step.

gregsh gravatar imagegregsh ( 2013-09-12 16:50:23 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-09-11 16:35:01 -0500

Seen: 2,052 times

Last updated: Sep 11 '13