Merge "Cleanup /etc/sysconfig/iptables on stack update"
This commit is contained in:
commit
1143294fee
@ -186,3 +186,19 @@ outputs:
|
|||||||
when:
|
when:
|
||||||
- step|int == 2
|
- step|int == 2
|
||||||
- remove_neutron_openvswitch_package|bool
|
- remove_neutron_openvswitch_package|bool
|
||||||
|
update_tasks:
|
||||||
|
# puppetlabs-firewall manages security rules via Puppet but make the rules
|
||||||
|
# consistent by default. Since Neutron also creates some rules, we don't
|
||||||
|
# want them to be consistent so we have to ensure that they're not stored
|
||||||
|
# into sysconfig.
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1541528
|
||||||
|
- name: Remove IPv4 iptables rules created by Neutron that are persistent
|
||||||
|
lineinfile: dest=/etc/sysconfig/iptables
|
||||||
|
regexp=".*neutron-"
|
||||||
|
state=absent
|
||||||
|
when: step|int == 5
|
||||||
|
- name: Remove IPv6 iptables rules created by Neutron that are persistent
|
||||||
|
lineinfile: dest=/etc/sysconfig/ip6tables
|
||||||
|
regexp=".*neutron-"
|
||||||
|
state=absent
|
||||||
|
when: step|int == 5
|
||||||
|
Loading…
x
Reference in New Issue
Block a user