Tendrl / tendrl-ansible

Ansible playbook for Tendrl!
GNU Lesser General Public License v2.1
1 stars 15 forks source link

Remove workaround playbook for disabling iptables #49

Closed mbukatov closed 6 years ago

mbukatov commented 7 years ago

Description

To remove workaround playbook which disables iptables completely, we need to include firewall setup into tendrl-ansible.

References

Documentation how to configure firewall are available now: https://github.com/Tendrl/documentation/wiki/Tendrl-firewall-settings (link added on Nov 22)

Approach

I propose to:

Why?

Since we can't allow to enable or disable firewall during Tendrl installation, when firewalld is not running, we can't touch firewall configuration at all. When tendrl-ansible detects this, assert will stop the playbook immediately and ask user to resolve the situation:

tendrl-ansible will automate only single way to configure fiewall, which is firewalld. Automating multiple approaches (eg. both iptables and firewalld) is not reasonable, would require additional maintenance work and multiply testing efforts.

Moreover, by using firewalld service files when possible, we can simplify maintenance of firewalld configuration, which will be stored in the repository of the component, and change of port would not require update of tendrl-ansible. I realize that his is not always possible (eg. for etcd we don't directly control), but this approach should be strongly preferred.

mbukatov commented 6 years ago

Details how to configure firewall are available now: https://github.com/Tendrl/documentation/wiki/Tendrl-firewall-settings

mbukatov commented 6 years ago

Accepting this feature for future upstream release 1.5.5

mbukatov commented 6 years ago

Implementation details, based on description in this issue and today's meeting Discuss peding tendrl-nsible issues and plan:

Moreover we decided to handle firewalld reload in tendrl-ansible and not in postscript of tendrl packages shipping firewalld service files.

mbukatov commented 6 years ago

Resolved by https://github.com/Tendrl/tendrl-ansible/pull/70, with exception of usage of firewalld service files, which is now tracked by https://github.com/Tendrl/tendrl-ansible/issues/80