On 02/10/2014 03:36 PM, notify.s...@gmail.com wrote: > Hi > > I'm probably doing something horribly wrong. I can sense it, but it hasn't > properly kicked in yet... > > I'm trying to create a module for iptables. This is to make servers that > have similar purpose, have the same flrewall configuration. > I created the modules/iptables/{manifests,files,templates} structure, Iike > I have for a few modules I have been able to put together.
Out of (a possibly morbid) curiosity, have you looked at the Puppetlabs-firewall module? It may already do some of the things that you're trying to do (with regards to managing iptables). At first glance, it would seem that you maybe trying to reinvent work that other people have already solved. https://github.com/puppetlabs/puppetlabs-firewall > For some reason puppet claims not to see the iptables:::config class, which > I have tried to setup in multiple ways, using regexes. > Configuration is like so: > > class iptables::config { > <trim> > > The agents all cry "Could not retrieve catalog from remote server: Error > 400 on SERVER: Could not find class iptables::config for myname on node me" Is the file containing iptables::config in the appropriate directory and named properly? E.g: modules/iptables/manifests/config.pp ? > Please can some kind person show a poor little beginner what I am doing > wrong? > > Thanks! > -- Joseph Swick <joseph.sw...@meltwater.com> Operations Engineer Meltwater Group
signature.asc
Description: OpenPGP digital signature