Ask Your Question
0

i have created the security group in horizn and want to use in heat template

asked 2014-10-29 04:18:35 -0500

harishamrale gravatar image

Hi,I have created one security group using horizon. I want to use the same security group in heat template to create the instances. Please share the detail steps or heat-template to do so.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-10-29 07:47:53 -0500

fgorbat gravatar image

Let assume you created sec_group1 group, in the "Parameter" section provide security group part for example:

parameters:
  security_group_id:
    type: string
    description: ID of security group for this instance port
    default: sec_group1

The in the server definition re-use the security group by get_param, for example:

  security_groups: 
    - { get_param: security_group_id }
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

Stats

Asked: 2014-10-29 04:18:35 -0500

Seen: 822 times

Last updated: Oct 29 '14