Version information
This version is compatible with:
- Puppet Enterprise >= 3.2.0 < 3.4.0
- Puppet 3.x
- , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'camptocamp-firewall_c2c', '1.1.17'
Learn more about managing modules with a PuppetfileDocumentation
Firewall_c2c
Overview
Monkey Patch Puppetlabs' firewall module to add an autorequirement to apply Firewall resources alphabetically.
Example:
Consider this manifest:
class { 'firewall': }
firewall { '000 accept all icmp':
proto => 'icmp',
action => 'accept',
}
firewall { '001 accept all to lo interface':
proto => 'all',
iniface => 'lo',
action => 'accept',
}
firewall { '002 accept related established rules':
proto => 'all',
ctstate => ['RELATED', 'ESTABLISHED'],
action => 'accept',
}
Without this module, you have to add explicit dependencies, otherwise rules are applied whithout specific order:
Notice: /Stage[main]/Main/Firewall[000 accept all icmp]/ensure: current_value absent, should be present (noop)
Notice: /Stage[main]/Main/Firewall[002 accept related established rules]/ensure: current_value absent, should be present (noop)
Notice: /Stage[main]/Main/Firewall[001 accept all to lo interface]/ensure: current_value absent, should be present (noop)
With this module, no need to define explicit dependencies:
Notice: /Stage[main]/Main/Firewall[000 accept all icmp]/ensure: current_value absent, should be present (noop)
Notice: /Stage[main]/Main/Firewall[001 accept all to lo interface]/ensure: current_value absent, should be present (noop)
Notice: /Stage[main]/Main/Firewall[002 accept related established rules]/ensure: current_value absent, should be present (noop)
And with --debug
:
Debug: /Firewall[000 accept all icmp]: Autorequiring Package[iptables]
Debug: /Firewall[000 accept all icmp]: Autorequiring Package[iptables-persistent]
Debug: /Firewall[001 accept all to lo interface]: Autorequiring Package[iptables]
Debug: /Firewall[001 accept all to lo interface]: Autorequiring Package[iptables-persistent]
Debug: /Firewall[001 accept all to lo interface]: Autorequiring Firewall[000 accept all icmp]
Debug: /Firewall[002 accept related established rules]: Autorequiring Package[iptables]
Debug: /Firewall[002 accept related established rules]: Autorequiring Package[iptables-persistent]
Debug: /Firewall[002 accept related established rules]: Autorequiring Firewall[001 accept all to lo interface]
This greatly ease the usage of Puppetlabs' firewall module.
2015-08-21 - Release 1.1.16
Use docker for acceptance tests
2015-06-26 - Release 1.1.15
Fix strict_variables activation with rspec-puppet 2.2
2015-05-28 - Release 1.1.14
Add beaker_spec_helper to Gemfile
2015-05-26 - Release 1.1.13
Use random application order in nodeset
2015-05-26 - Release 1.1.12
add utopic & vivid nodesets
2015-05-25 - Release 1.1.11
Don't allow failure on Puppet 4
2015-05-13 - Release 1.1.10
Add puppet-lint-file_source_rights-check gem
2015-05-12 - Release 1.1.9
Don't pin beaker
2015-04-27 - Release 1.1.8
Add nodeset ubuntu-12.04-x86_64-openstack
2015-04-03 - Release 1.1.7
- Confine rspec pinning to ruby 1.8
2015-03-23 - Release 1.1.6
- Various spec improvements
2015-02-19 - Release 1.1.5
- Various spec improvements
2015-01-06 - Release 1.1.4
Fix .travis.yml
2014-12-18 - Release 1.1.3
Various improvements in unit tests
2014-12-18 - Release 1.1.1
Various improvements in unit tests
2014-11-17 Release 1.1.1
###Summary Lint metadata.json
2014-10-20 Release 1.1.0
###Summary Linting Setup automatic Forge releases
2014-09-05 Release 1.0.1
###Summary Update documentation Add unit tests
2014-08-26 Release 1.0.0
###Summary Initial release