correct procedure for installing modules from http://forge.puppetlabs.com

128 views
Skip to first unread message

Tim

unread,
Jan 25, 2011, 11:52:21 AM1/25/11
to Puppet Users
I am trying to use a module from puppet forge and I don't understand
the instructions at https://github.com/puppetlabs/puppet-module-tool
"Install a module release" . What is meant by the sentence "you can
then add this module directory to your Puppet configuration files to
use it.". I am just using the "ghoneycutt-ssh" module as an example.


My module path is

modulepath = /home/hughest/.puppet/modules:/usr/share/puppet/
modules

so i changed directory to the local users modules directory and
installed the module there and attempted to tun its test which fails

cd /home/hughest/.puppet/modules
puppet-module install ghoneycutt-ssh
puppet --noop /home/hughest/.puppet/modules/ghoneycutt-ssh/tests/
init.pp

This causes the following error

Could not find class ssh at /home/hughest/.puppet/modules/
ghoneycutt-ssh/tests/init.pp:1 on node nitrogen

If i then rename the module directory to 'ssh' from 'ghoneycutt-ssh'
the test works correctly

mv /home/hughest/.puppet/modules/ghoneycutt-ssh /home/
hughest/.puppet/modules/ssh
puppet --noop /home/hughest/.puppet/modules/ssh/tests/init.pp

Is this then the correct procedure for installing modules or am I
missing something. The documentation in puppet-module seems to imply
that renaming the module directory is the wrong thing to do and I
should just be changing some config somewhere.
Reply all
Reply to author
Forward
0 new messages