Ask Your Question

Heat template: Can I create circular refference with OS::Neutron::SecurityGroup ?

asked 2014-10-31 07:11:16 -0500

kaz gravatar image


Can I create circular refference with OS::Neutron::SecurityGroup ? I'd like to write one resource type. Do you have any good idea?

I have written following template.

  type: OS::Neutron::SecurityGroup
    name: secgroup
      - protocol: tcp
        remote_mode: remote_group_id
        remote_group_id: {get_resource: swift_secgroup_node}
        port_range_min: 6000
        port_range_max: 6002

However (of course) the result is a "CircularDependencyException". If possible, don't use "remote_ip_prefix".

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2017-02-20 16:09:13 -0500

stieler-it gravatar image


do you want to open the ports to within the same security group? Just omit remote_group_id then.

edit flag offensive delete link more

answered 2017-03-20 21:50:22 -0500

Spowell gravatar image

Is this what you mean:

parameters: ports: type: comma_delimited_list label: ports default: "80,443,8080"

resources: security_group: type: OS::Neutron::SecurityGroup properties: name: web_server_security_group rules: repeat: for_each: <%port%>: { get_param: ports } template: protocol: tcp port_range_min: <%port%> port_range_max: <%port%>

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-10-31 07:11:16 -0500

Seen: 573 times

Last updated: Mar 20 '17