diff options
author | Steven Hardy <shardy@redhat.com> | 2016-08-12 17:44:24 +0100 |
---|---|---|
committer | Emilien Macchi <emilien@redhat.com> | 2016-09-02 13:00:49 +0000 |
commit | bf3bc0d551f180f931e6cb3234307a540affd0de (patch) | |
tree | 0f94354f9379435255819da241f046006a22b105 /network | |
parent | dada8f55bff69fd1d37c34555a2ba58f3c854962 (diff) |
Generate composable service node_names lists
Some puppet interfaces require a comma separated list of hostnames
where a service is running, so generate it in a similar way to th
service ips.
Change-Id: Icdf5d993d089dc94035194bdbd52299fcbc793be
Partially-Implements: blueprint custom-roles
Diffstat (limited to 'network')
-rw-r--r-- | network/ports/net_ip_list_map.yaml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/network/ports/net_ip_list_map.yaml b/network/ports/net_ip_list_map.yaml index 36f3358e..430158ac 100644 --- a/network/ports/net_ip_list_map.yaml +++ b/network/ports/net_ip_list_map.yaml @@ -28,6 +28,9 @@ parameters: ServiceNetMap: default: {} type: json + ServiceHostnameList: + default: [] + type: comma_delimited_list outputs: net_ip_map: @@ -71,3 +74,13 @@ outputs: storage_mgmt: {get_param: StorageMgmtIpList} tenant: {get_param: TenantIpList} management: {get_param: ManagementIpList} + service_hostnames: + description: > + Map of enabled services to a list of hostnames where they're running + value: + map_merge: + repeat: + template: + SERVICE_node_names: {get_param: ServiceHostnameList} + for_each: + SERVICE: {get_param: EnabledServices} |