From 6a408ff27e6fd6bff0a822f225c77a76690f805a Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Wed, 28 Sep 2016 16:19:56 +0100 Subject: Select per-network hostnames for service_node_names Co-Authored-By: Juan Antonio Osorio Robles Depends-On: Ic6fec1057439ed9122d44ef294be890d3ff8a8ee Change-Id: I754c4a41d8a294a4c7c18bd282ae014efd4b9b16 Closes-Bug: #1628521 --- puppet/controller-role.yaml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'puppet/controller-role.yaml') diff --git a/puppet/controller-role.yaml b/puppet/controller-role.yaml index ccb517f8..e18126fa 100644 --- a/puppet/controller-role.yaml +++ b/puppet/controller-role.yaml @@ -411,6 +411,51 @@ outputs: hostname: description: Hostname of the server value: {get_attr: [Controller, name]} + hostname_map: + description: Mapping of network names to hostnames + value: + external: + list_join: + - '.' + - - {get_attr: [Controller, name]} + - external + - {get_param: CloudDomain} + internal_api: + list_join: + - '.' + - - {get_attr: [Controller, name]} + - internalapi + - {get_param: CloudDomain} + storage: + list_join: + - '.' + - - {get_attr: [Controller, name]} + - storage + - {get_param: CloudDomain} + storage_mgmt: + list_join: + - '.' + - - {get_attr: [Controller, name]} + - storagemgmt + - {get_param: CloudDomain} + tenant: + list_join: + - '.' + - - {get_attr: [Controller, name]} + - tenant + - {get_param: CloudDomain} + management: + list_join: + - '.' + - - {get_attr: [Controller, name]} + - management + - {get_param: CloudDomain} + ctlplane: + list_join: + - '.' + - - {get_attr: [Controller, name]} + - ctlplane + - {get_param: CloudDomain} hosts_entry: description: > Server's IP address and hostname in the /etc/hosts format -- cgit 1.2.3-korg