Parcourir la source

Merge pull request #9001 from luis5tb/flat-secgrp

Add infra secgroup rules to the flat secgrp rules
OpenShift Merge Robot il y a 6 ans
Parent
commit
dc285a6bc1
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  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