]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commit
(MODULES-450) Enable rule inversion
authorHunter Haugen <hunter@puppetlabs.com>
Wed, 30 Jul 2014 23:32:31 +0000 (16:32 -0700)
committerHunter Haugen <hunter@puppetlabs.com>
Fri, 1 Aug 2014 19:29:36 +0000 (12:29 -0700)
commitd5312a51edb43ac4b90d1228fe60a3b63050b6a6
tree742c64ced599f2c91e13798b11ce371fbfa84224
parentb1d23f444e3a62d2a00464c58f563462fcf8b134
(MODULES-450) Enable rule inversion

iptables has many rule arguments that may be inverted by prefixing with
an exclamation mark. This commit enables inversion for most every
property currently in the firewall provider that supports inversion by
prefixing the value with a bang+space.

Array elements must have all array elements prefixed with a bang+space
otherwise a warning will be raised, as it would look confusing to negate
a single value and then have iptables negate all of them.
README.markdown
lib/puppet/provider/firewall/iptables.rb
lib/puppet/type/firewall.rb
lib/puppet/util/firewall.rb
spec/acceptance/invert_spec.rb [new file with mode: 0644]
spec/fixtures/iptables/conversion_hash.rb
spec/unit/puppet/provider/iptables_spec.rb