Add output for host entries
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>
Fri, 4 Dec 2015 13:42:53 +0000 (15:42 +0200)
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>
Fri, 4 Dec 2015 13:42:53 +0000 (15:42 +0200)
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

overcloud.yaml
puppet/all-nodes-config.yaml

index 6763618..cc1b46d 100644 (file)
@@ -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]}
index 2bc519b..3908afe 100644 (file)
@@ -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]}