Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

use firewall class for package and firewalld fix, CentOS7 #2

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

use firewall class for package and firewalld fix, CentOS7 #2

wants to merge 12 commits into from

Conversation

marcofl
Copy link

@marcofl marcofl commented Oct 30, 2015

as firewalld is the default in CentOS7 / RHEL7 now, there is no iptables-services and firewalld is controlling the firewall. puppetlabs-firewall does handle this but only if you call the "firewall" class before the firewall resources. that's what this change does.

the puppet run is still very unclean because firewalld is stopped which removes a lot of chains and rules and then firewall purge tries to delete those chains / rules. I think this is a known issue with puppetlabs-firewall, not sure though.

@andrewkroh
Copy link
Owner

Thanks @marcofl, I will try to test this out soon. I have been slow to migrate to CentOS 7 so I had not noticed any issues. I also need to look into this travis build failure.

@marcofl
Copy link
Author

marcofl commented Oct 31, 2015

@andrewkroh I just tested this on ubuntu 14.04, this also fixes the installation of iptables-persistent and other packages handled by "puppetlabs-firewall" here.

@andrewkroh
Copy link
Owner

@marcofl I testing for regressions against centos 6 and it worked good. Once we get these tests passing and merge this I will update the supported OS matrix with RHEL/CentOS 7 and Ubuntu 14.04.

I do not see what is causing the test to fail. It is failing both locally for me and on travis. The error is:

firewall: Kernel '' is not currently supported at /Users/akroh/code/base_firewall/spec/fixtures/modules/firewall/manifests/init.pp:33:7

@marcofl
Copy link
Author

marcofl commented Nov 1, 2015

this error is coming from puppetlabs-firewall. It checks the kernel fact which has to be 'Linux' and this seems to be empty on travis tests? I don't no much about tests though...

@andrewkroh
Copy link
Owner

That was the same hypothesis I came to, but this unfortunately disproves it. Earlier I ran facter on travis to verify the kernel fact. https://travis-ci.org/andrewkroh/puppet-base_firewall/jobs/88644112#L141

@marcofl
Copy link
Author

marcofl commented Nov 1, 2015

true, otherwise puppetlabs-firewall wouldn't pass either :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants