]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commit
Treat RHEL 7 and later like Fedora w/r/t iptables
authorLars Kellogg-Stedman <lars@redhat.com>
Tue, 25 Mar 2014 19:50:10 +0000 (15:50 -0400)
committerLars Kellogg-Stedman <lars@redhat.com>
Tue, 25 Mar 2014 21:33:21 +0000 (17:33 -0400)
commit45ea1b080a0b7790e950e7d7d84587a69a192fb3
tree38c7b537a948b15bb4460f5481efb3177c051f6b
parent1513dda7ef6da48555f98a7483881022502dcdfc
Treat RHEL 7 and later like Fedora w/r/t iptables

RHEL 7 replaces legacy init with systemd, and must be treated like
Fedora w/r/t iptables persistence.  This patches checks
operatingsystemrelease in addition to operatingsystem in order
to differentiate between RHEL 7 and earlier releases.

Both RHEL 7 and recent Fedora releases require the iptables-services
package to support the commands in lib/puppet/util/firewall.rb.

This also corrects the path to /usr/libexec/iptables/iptables.init.
lib/puppet/util/firewall.rb
manifests/linux/redhat.pp
spec/unit/puppet/util/firewall_spec.rb