Skip to content

Add firewalld "zone" variable for connections#22

Merged
thom311 merged 1 commit into
linux-system-roles:masterfrom
dsedivec:master
Jan 17, 2018
Merged

Add firewalld "zone" variable for connections#22
thom311 merged 1 commit into
linux-system-roles:masterfrom
dsedivec:master

Conversation

@dsedivec

@dsedivec dsedivec commented Dec 7, 2017

Copy link
Copy Markdown
Contributor

Note that this is one of the variables requested by #9 (ZONE).

I ran into this because using both this network role in initscripts mode together with e.g.

- firewalld: zone=external interface=eth0 state=present permanent=yes

would cause Ansible to report changes on every run of my playbook. By just having this role set the firewalld zone in the ifcfg-eth0 file, I can skip using the firewalld module at all, and no more spurious changes as this role and the firewalld module fight over the ifcfg-eth0 file.

I did not test this on a system whose interfaces are actually managed by NetworkManager, though I did run the unit tests on a system with the NM Python APIs installed, and all passed. Though I'm not entirely sure that I have updated the unit tests to everyone's liking.

@thom311
thom311 merged commit 1df7789 into linux-system-roles:master Jan 17, 2018
thom311 added a commit that referenced this pull request Jan 17, 2018
@thom311

thom311 commented Jan 17, 2018

Copy link
Copy Markdown
Contributor

Nice. Thanks!!

I merged it, with a follow-up fix.

I think the validation of the user configuration should be strict, hence, 'zone' should be rejected for slaves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants