zerozerounouno@gmail.com
2014-Jun-30 16:30 UTC
[Puppet Users] Do modules need to be installed on agents?
Hi,
I'm getting confused about module paths...
In a master - agent configuration, if the classes applied to the agent need
some additional Forge modules to be installed, is it enough if I install
them on the master, or do I need to install them on all clients too?
I didn't need to install them on clients... until now, when I started using
the domcleal-augeasproviders module which appeared to work differently.
And then, trying to get around this and rearranging modules and
environments, I started having problems with other modules I already used
before.
For example, on the master I have a custom class which contains a call to
the class defined in spiette-selinux, like this:
class mymodule::myclass {
class { 'selinux':
mode => 'disabled',
}
}
If I run a puppet agent --test on a client where myclass is applied, I get
a "Could not find declared class selinux" error.
This also happens if I install the spiette-selinux module on the client
itself.
But if the spiette-selinux module is installed, then a simple "puppet apply
manifest.pp" works fine (where manifest.pp only contains the "class {
'selinux': ...}" section as above).
What am I missing?
The spiette-selinux module is correctly installed on the master, it is
listed in /etc/puppet/modules when I do a "puppet module list".
The agent is in the "development" environment, and $confdir/modules is
in
the modulepath for the development environment on the master.
Thank you very much.
Marco
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/3885136a-13dd-4c04-be7f-6673ef6b020a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.