diff options
author | Juan Antonio Osorio Robles <jaosorior@redhat.com> | 2016-10-06 11:17:38 +0300 |
---|---|---|
committer | Juan Antonio Osorio Robles <jaosorior@redhat.com> | 2016-10-07 14:03:44 +0300 |
commit | a6d6acd645944e3047b617403fc84e08d60692a1 (patch) | |
tree | 86fcf667643de6324b8eb17d697e2273d694cd5d | |
parent | c3611e0f701a2b104d52125861b27da44a6c7763 (diff) |
Add cloud names to hosts output
Closes-Bug: #1631277
Change-Id: I126b3ed2afdf03ffabb7e57f8792b9f7ecc06a09
-rw-r--r-- | overcloud.j2.yaml | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/overcloud.j2.yaml b/overcloud.j2.yaml index fc756617..b792a9f2 100644 --- a/overcloud.j2.yaml +++ b/overcloud.j2.yaml @@ -559,7 +559,36 @@ outputs: The content that should be appended to your /etc/hosts if you want to get hostname-based access to the deployed nodes (useful for testing without setting up a DNS). - value: {get_attr: [allNodesConfig, hosts_entries]} + value: + list_join: + - "\n" + - - {get_attr: [allNodesConfig, hosts_entries]} + - + - str_replace: + template: IP HOST + params: + IP: {get_attr: [VipMap, net_ip_map, external]} + HOST: {get_param: CloudName} + - str_replace: + template: IP HOST + params: + IP: {get_attr: [VipMap, net_ip_map, ctlplane]} + HOST: {get_param: CloudNameCtlplane} + - str_replace: + template: IP HOST + params: + IP: {get_attr: [VipMap, net_ip_map, internal_api]} + HOST: {get_param: CloudNameInternal} + - str_replace: + template: IP HOST + params: + IP: {get_attr: [VipMap, net_ip_map, storage]} + HOST: {get_param: CloudNameStorage} + - str_replace: + template: IP HOST + params: + IP: {get_attr: [VipMap, net_ip_map, storage_mgmt]} + HOST: {get_param: CloudNameStorageManagement} EnabledServices: description: The services enabled on each role value: |