]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commit
(#9583) Fix provider detection for gentoo and unsupported linuxes for the iptables...
authorKen Barber <ken@bob.sh>
Sun, 18 Sep 2011 21:28:11 +0000 (22:28 +0100)
committerKen Barber <ken@bob.sh>
Sun, 18 Sep 2011 21:28:11 +0000 (22:28 +0100)
commit4ea078e3f3d599b732195a1b13eff19ad9aa9998
tree3ab7624e1c090e7205631cf39f985c5786854e43
parent9afba735af9421934ef03377a1dd32aae4eea546
(#9583) Fix provider detection for gentoo and unsupported linuxes for the iptables provider.

Previously we had fairly specific confine settings for named distributions
of linux for the iptables provider. This was silly, since the commands
defined in the provider should be enough to confine the provider to Linux
only systems.

I've removed the confine, and replaced the defaultfor to be:

  :kernel => :linux

Which should avoid the need to keep adding extra Linux distributions.

I've also added some spec tests for provider detection which should help
catch any failures around the command based detection in the future.
lib/puppet/provider/firewall/iptables.rb
spec/unit/provider/iptables_prov_spec.rb