aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>2015-12-04 15:42:53 +0200
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>2015-12-04 15:42:53 +0200
commit2b74a3b53293814edc2dd77cff23d1c1a52fcbba (patch)
tree26efbec03115a2f45fc07469bc06737746f5dafe
parent3ec35a3f2f9f1e5c3f2cb3e62087b1dd421a178f (diff)
Add output for host entries
For testing purposes it is useful to have an easy way to get the given IPs for the nodes; since currently one would have to ssh to one of the ndoes and actually fetch the entries from there. This will facilitate testing when the keystone endpoints have been changed for hostnames, as done in this CR: https://review.openstack.org/#/c/238887 Change-Id: I9b9362192d7e97690ba23d02e74389225913adb9
-rw-r--r--overcloud.yaml6
-rw-r--r--puppet/all-nodes-config.yaml6
2 files changed, 12 insertions, 0 deletions
diff --git a/overcloud.yaml b/overcloud.yaml
index 67636182..cc1b46de 100644
--- a/overcloud.yaml
+++ b/overcloud.yaml
@@ -1496,3 +1496,9 @@ outputs:
SwiftInternalVip:
description: VIP for Swift Proxy internal endpoint
value: {get_attr: [VipMap, net_ip_map, {get_param: [ServiceNetMap, SwiftProxyNetwork]}]}
+ HostsEntry:
+ description: |
+ The content that should be appended to your /etc/hosts if you want do get
+ hostname-based access to the deployed nodes (useful for testing without
+ setting up a DNS).
+ value: {get_attr: [allNodesConfig, hosts_entries]}
diff --git a/puppet/all-nodes-config.yaml b/puppet/all-nodes-config.yaml
index 2bc519bb..3908afee 100644
--- a/puppet/all-nodes-config.yaml
+++ b/puppet/all-nodes-config.yaml
@@ -245,3 +245,9 @@ outputs:
description: The ID of the allNodesConfigImpl resource.
value:
{get_resource: allNodesConfigImpl}
+ hosts_entries:
+ description: |
+ The content that should be appended to your /etc/hosts if you want do get
+ hostname-based access to the deployed nodes (useful for testing without
+ setting up a DNS).
+ value: {get_attr: [allNodesConfigImpl, config, hosts]}