Add conditions for allowing traffic for controllers

We need to use in allow-traffic-for-controller.yml the same conditionals
that we have in prep-network [1] otherwise the script to allow the
traffic will be executed and, since it expects to find the BOOTSTACK_MASQ
iptables chain, will fail.

[1] roles/overcloud-prep-network/templates/overcloud-prep-network.sh.j2

Change-Id: Ia104eecbe29c1eee230c2ccbc5926ca8bfbffc83
This commit is contained in:
Raoul Scarazzini 2018-10-17 19:03:43 +02:00
parent a472345db1
commit 2a6f060fbd
1 changed files with 5 additions and 3 deletions

View File

@ -10,6 +10,8 @@
become: yes
shell: >
"{{ working_dir }}"/allow-traffic-for-controller.sh
when: network_isolation|bool and undercloud_type == "baremetal"
when:
- network_isolation|bool
- undercloud_type == "baremetal"
- not overcloud_ipv6|bool
- release in ['newton','ocata','pike','queens'] or not containerized_undercloud|bool