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