Make undercloud_sg respect id

Set undercloud_sg name parameter based on the undercloud_name so
that it gets a unique name when --id is used to deploy.
This commit is contained in:
Ben Nemec 2017-04-06 17:00:05 -05:00
parent f84b06c616
commit 3258d33bdc
2 changed files with 13 additions and 2 deletions

View File

@ -18,7 +18,11 @@ resources:
undercloud_sg:
type: OS::Neutron::SecurityGroup
properties:
name: undercloud_sg
name:
list_join:
- '_'
- - {get_param: undercloud_name}
- 'sg'
description: Ping and SSH
rules:
- protocol: icmp

View File

@ -14,11 +14,18 @@ parameters:
public_net:
type: string
undercloud_sg:
type: string
resources:
undercloud_sg:
type: OS::Neutron::SecurityGroup
properties:
name: undercloud_sg
name:
list_join:
- '_'
- - {get_param: undercloud_name}
- 'sg'
description: Ping and SSH
rules:
- protocol: icmp