Problem installing modules in PE 3.7.2

40 views
Skip to first unread message

Mark S

unread,
Mar 31, 2015, 9:45:09 AM3/31/15
to puppet...@googlegroups.com
Hi,
I've set up a monolithic install of PE to evaluate it for our organisation but am running into problems even following the Quick Start Guides. I'm trying to follow the Windows quick start guide and have successfully followed Step 2, searching for and installing the 'registry' module. However if you follow the guide to the letter using the command 'puppet module install puppetlabs-registry' it will install the module to ~/.puppet/modules instead of /etc/puppetlabs/puppet/environments/production/modules unless you use the '--environment production' parameter.

Next when following Step 3 where you create a new node group and add a new class to it, I cannot see the new registry module in the class list. I can see the stdlib dependency there, just not registry.

What am I doing wrong here?

Thanks,

Mark

Jason Gagui

unread,
Apr 1, 2015, 5:19:19 PM4/1/15
to puppet...@googlegroups.com
Hi Mark,

You need to run the puppet command as sudo.

sudo /opt/puppetlabs/bin/puppet module install <module-name>  

doing so will install modules in the correct path.  /etc/puppetlabs/puppet/environments/production/modules/

I am using RHEL 7 and I normally run the command: sudo su - before running puppet commands.  That way I am running puppet as root and all of the modules show up in the webui. 

Disclamer:  I am not a linux guy (yet), so I don't know for sure that my recommendations above are "best practices"

Hope that helps.

Jason

Brendan Kelley

unread,
Oct 20, 2015, 5:23:11 PM10/20/15
to Puppet Users
I'm having the exact same problem, but whether I install the registry module as myself and sudo or root, it makes no difference.  The module still doesn't appear in the web console when I try to add it to a class.  

It's currently installed as:  sudo /usr/local/bin/puppet module install puppetlabs-registry --environment production

It does show up in a directory listing, as well as a module list:
-bash-4.1$ sudo /usr/local/bin/puppet module list
/etc/puppetlabs/code/environments/production/modules
├── helloworld (???)
├── kelley-profiles (v0.1.0)
├── kelley-roles (v0.1.0)
├── opentable-download_file (v999.999.999)
├── puppetlabs-inifile (v1.4.2)
├── puppetlabs-ntp (v4.1.0)
├── puppetlabs-powershell (v1.0.5)
├── puppetlabs-registry (v1.1.2)
└── puppetlabs-stdlib (v4.9.0)
 <extra data snipped>


Does anybody have any other ideas on this one?  

Thanks,
Brendan

Johan De Wit

unread,
Oct 21, 2015, 4:12:03 AM10/21/15
to puppet...@googlegroups.com
hi,

Could it be mixing multiple puppet versions ?

Are you using the correct puppet ??
/usr/local/bin/puppet --version 

Looking at the module path suspect puppet version 4. (/etc/puppetlabs/code/...)

PE puppet is  /opt/puppet/bin/puppet

grts
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/15340aa3-664b-4db4-9d45-02b788dbd853%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- 
Johan De Wit

Open Source Consultant  -- Open-Future

Red Hat Certified Engineer              (805008667232363)
Puppet Certified Professional 2013/2014/2015 (PCP0000006)
Puppet Certified Instructor
blog : http://johan.koewacht.net/   gsm: +32 474 42 40 73
_________________________________________________________
  

Upcoming Trainings:

Zabbix Certified Specialist | https://www.open-future.be/content/zabbix-certified-specialist-training-0

Zabbix Certified Professional | https://www.open-future.be/content/zabbix-certified-professional-training-0

Linux Training | https://www.open-future.be/content/linux-training-0

Puppet Practitioner Training | https://www.open-future.be/content/puppet-practitioner-training-0

Bacula Administrator Training | https://www.open-future.be/content/bacula-administrator-i-training-1

Subscribe to our newsletter: http://eepurl.com/BUG8H


Brendan Kelley

unread,
Oct 21, 2015, 11:12:07 AM10/21/15
to Puppet Users
I'm running the following versions of Puppet:

==Puppetmaster server==
-bash-4.1$ /usr/local/bin/puppet --version
4.2.2


==Windows 7 client==
ruby 1.9.3p551 (2014-11-13) [i386-mingw32]
C:\Windows\system32>puppet --version
3.8.3
Reply all
Reply to author
Forward
0 new messages