I'm fairly new to puppet, so this might just be me not seeing the obvious.
I want to use the puppetlabs-firewall module and wrote a small module of my own. The init.pp looks like this:
class cmmfirewall {
resources { 'firewall':
purge => true,
}
Firewall {
before => Class['cmmfirewall::postv4', 'cmmfirewall::postv6'],
require => Class['cmmfirewall::prev4', 'cmmfirewall::prev6'],
}
class { ['cmmfirewall::prev4', 'cmmfirewall::postv4']: }
class { ['cmmfirewall::prev6', 'cmmfirewall::postv6']: }
}
When I apply this class to a node I get the following message:
err: Failed to apply catalog: Parameter name failed on Resources[firewall]: Could not find resource type 'firewall' at /etc/puppet/environments/testing/modules/cmmfirewall/manifests/init.pp:42
My puppet.conf on the agent looks like this:
# File managed by Puppet
[main]
vardir = /var/lib/puppet
ssldir = $vardir/ssl
logdir = /var/log/puppet
rundir = /var/run/puppet
modulepath = /etc/puppet/modules:/opt/puppet/share/puppet/modules
user = puppet
group = puppet
archive_files = true
archive_file_server = handsoff.dc0.mynetwork.de
[agent]
certname = test3.dc0.mynetwork.de
server = handsoff.dc0.mynetwork.de
report = true
classfile = $vardir/classes.txt
localconfig = $vardir/localconfig
graph = true
pluginsync = true
runinterval = 300
So as you can see, pluginsync should be activated, but both of the folders in the modulepath /etc/puppet/modules:/opt/puppet/share/puppet/modules
are empty. So my guess would be the problem is somewhere there and pluginsync isn't working as i expect it to work.
Can someone point me in the right direction on where to look for the error, please?
Best Answer
Ok, actually the moment I copied the puppetlabs-firewall module to my common folder (which gets includes in both environments, testing and production) it worked.
Now I just really would like to now why. Here is the puppetmaster config file. Maybe someone can tell my why it behaves the way it does.