Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat RHEL 7 and later like Fedora w/r/t iptables #338

Merged
merged 3 commits into from
Apr 3, 2014

Conversation

larsks
Copy link
Contributor

@larsks larsks commented Mar 25, 2014

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.

larsks added 3 commits March 25, 2014 17:33
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.
I like explicitly quoted strings, but apparently Travis doesn't.
@larsks
Copy link
Contributor Author

larsks commented Mar 26, 2014

Okay, now Travis CI is just being silly. Those failures are due to rake version requirements and are probably failing for everybody.

openstack-gerrit pushed a commit to redhat-openstack/packstack that referenced this pull request Mar 27, 2014
Puppet automatically loads custom resources types provided by modules,
but does not automatically run the manifests provided by the module.
Module manifests are only activated by explicitly "including" the
module. The "firewall" module manifests take care of ensuring that the
necessary packages are installed to support the commands used in the
firewall resource type.

This patch includes the firewall module in the prescript.pp template,
which ensures that the appropriate packages are loaded before firewall
resources are realized.

This patch is related to the following upstream pull request for the
firewall module, which ensures that the proper packages are installed on
Fedora and RHEL 7:

puppetlabs/puppetlabs-firewall#338

Change-Id: I13ba5ae20b3c9d4a605b1358bd343aa730c63eaf
Closes-bug: 1297857
apenney pushed a commit that referenced this pull request Apr 3, 2014
Treat RHEL 7 and later like Fedora w/r/t iptables
@apenney apenney merged commit c147a62 into puppetlabs:master Apr 3, 2014
cegeka-jenkins pushed a commit to cegeka/puppet-firewall that referenced this pull request Oct 23, 2017
Treat RHEL 7 and later like Fedora w/r/t iptables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants