How to use condition for resource creation via heat template

Md. Hejbul Tawhid MUNNA munnaeebd at gmail.com
Wed Oct 21 09:31:21 UTC 2020


~~~

heat_template_version: 2017-02-24
......
......
......
conditions:
    port_security_enabled:
        equals:
            - { get_param: port_security_enabled }
            - "true"

resources:
    port:
        type: OS::Neutron::Port
        properties:
            admin_state_up: true
            network_id: { get_param: internal_net }
            port_security_enabled: { get_param: port_security_enabled }
            security_groups: { get_param: security_group }


I want to create a condition , so if I set "port_security_enabled =
false" security group will not apply in port.properties . If I set
"port_security_enabled = true" then security group will applied.

Please help me
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20201021/a84a63c3/attachment-0001.html>


More information about the openstack-discuss mailing list