Hi Everyone,

I have some what exhausted my current readings from puppets documentation 
and presume I'm either misunderstanding something or I'm barking up the 
wrong tree...
currently i have modified the site.pp file to include apache just as a test 
to see if my environment is working,
r10k has made two environments both with puppetlabs apache module,
however when doing a puppet agent -t run i get 'Error: Could not retrieve 
catalog from remote server: Error 400 on SERVER: Could not find class 
apache for server01 on node server01'
from my understanding of this error, it is due to the module path 
controlled by r10k not being loaded, resulting as fast puppet is concerned 
it doesn't know what that module is.
I ran 'puppet module list' and got the following.
/etc/puppet/environments/production/modules
├── abrader-gms (v1.0.2)
├── darshan-test_module (v0.1.0)
├── glarizza-osx_management (v0.2.1)
├── glarizza-property_list_key (v0.2.1)
├── maestrodev-ssh_keygen (v1.3.1)
├── puppetlabs-apache (v1.10.0)
├── puppetlabs-concat (v2.1.0)
├── puppetlabs-firewall (v1.8.1)
├── puppetlabs-inifile (v1.5.0)
├── puppetlabs-ntp (v4.2.0)
├── puppetlabs-registry (v1.1.3)
├── puppetlabs-stdlib (v4.12.0)
├── puppetlabs-vcsrepo (v1.3.2)
└── zack-r10k (v3.2.0)

this does show the apache module so I'm unsure whats up here,
the other thing i noticed is its not showing the modules in the development 
environment even though i would have thought that was using the same 
configuration,
if anyone could shed some light on what I'm doing wrong or can point me in 
the right direction to getting modules to actually work when included,
id be very grateful.

further details on my setup are as follows,

My environment consists of the following product versions.

Puppet 3.8.7,
r10k 2.2.2,
hiera 1.3.4,
facter 2.4.6,


I have setup the following in the puppet.conf

ini_setting { 'Configure environmentpath':
  section => 'main',
  setting => 'environmentpath',
  value   => '$confdir/environments',

ini_setting { 'Configure basemodulepath':
  section => 'main',
  setting => 'basemodulepath',
  value   => '$confdir/modules:/opt/puppet/share/puppet/modules',


each environment has the following in its environmnet.config file

modulepath          = modules:site:$basemodulepath


Regards,
Luke 

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/f1616846-fd59-4528-809f-316f5efa13d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to