Hi all,
I'm reading
http://docs.puppetlabs.com/guides/modules.html#module-lookup and trying
to understand how puppet autoload modules. It says:
"From version Puppet 0.23.1 onwards, everything under the modulepath is
automatically imported into Puppet and is available to be used"
so, if our modulepath looks like:
modulepath=/etc/puppet/manifests/modules:/etc/puppet/manifests/modules/common:/etc/puppet/manifests/services/workernode/modules/
we're running puppet-server-2.6.1-0.6.el5
and we have this modules:
/etc/puppet/manifests/modules/module1/manifests/init.pp
/etc/puppet/manifests/modules/common/module2/manifests/init.pp
/etc/puppet/manifests/services/workernode/modules/module3/manifests/init.pp
module1 2 and 3 should be autoimported...
am I right?
in my case:
The error:
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Could not find class common_system_defaults
at /etc/puppet/manifests/services/workernode/nodes.pp:8 on node
XXXXXX.mydomain.com
modulepath:
# grep modulepath puppet.conf
modulepath=/etc/puppet/manifests/modules:/etc/puppet/manifests/modules/common:/etc/puppet/manifests/services/workernode/modules/
calss include:
# cat /etc/puppet/manifests/services/workernode/nodes.pp
node 'XXXXX.mydomain.com' {
include common_system_defaults
}
class path and definition:
# grep "^class" /etc/puppet/manifests/modules/common_defaults/manifests/init.pp
class common_system_defaults {
so, why is puppet complaining about missing class?
TIA,
Arnau
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.