Browse Source

Add infra secgroup rules to the flat secgrp rules

Luis Tomas Bolivar 6 years ago
parent
commit
2e504a49b5
1 changed files with 4 additions and 1 deletions
  1. 4 1
      roles/openshift_openstack/templates/heat_stack.yaml.j2

+ 4 - 1
roles/openshift_openstack/templates/heat_stack.yaml.j2

@@ -421,6 +421,9 @@ resources:
 {% for rule in openshift_openstack_node_secgroup_rules|list %}
         - {{ rule|to_json }}
 {% endfor %}
+{% for rule in openshift_openstack_infra_secgroup_rules|list %}
+        - {{ rule|to_json }}
+{% endfor %}
 {% else %}
   master-secgrp:
     type: OS::Neutron::SecurityGroup
@@ -466,7 +469,6 @@ resources:
           params:
             cluster_id: {{ openshift_openstack_full_dns_domain }}
       rules: {{ openshift_openstack_node_secgroup_rules|to_json }}
-{% endif %}
 
   infra-secgrp:
     type: OS::Neutron::SecurityGroup
@@ -497,6 +499,7 @@ resources:
           params:
             cluster_id: {{ openshift_openstack_full_dns_domain }}
       rules: {{ openshift_openstack_cns_secgroup_rules|to_json }}
+{% endif %}
 
   lb-secgrp:
     type: OS::Neutron::SecurityGroup