Export new bootstack keys for cluster init.
authorRobert Collins <rbtcollins@hp.com>
Wed, 28 May 2014 04:26:21 +0000 (16:26 +1200)
committerRobert Collins <rbtcollins@hp.com>
Wed, 28 May 2014 06:52:18 +0000 (18:52 +1200)
These provide a single consistent interface for checking whether
a given node is the bootstrap node, or not the bootstrap node
for database initialisation etc.

Change-Id: I7c5a09cb3477b61c4050e4a47a680ffc9aee97d8

overcloud-source.yaml
undercloud-source.yaml

index 040506e..9cbc203 100644 (file)
@@ -361,8 +361,21 @@ Resources:
         admin-token:
           Ref: AdminToken
         bootstack:
+          bootstrap_nodeid:
+            Fn::Select:
+            - 0
+            - Fn::Select:
+              - 0
+              - Merge::Map:
+                  controller0:
+                  - Fn::Select:
+                    - name
+                    - Fn::GetAtt:
+                      - controller0
+                      - show
           public_interface_ip:
             Ref: NeutronPublicInterfaceIP
+          nodeid: {get_input: bootstack_nodeid}
         cinder:
           db: mysql://cinder:unset@localhost/cinder
           volume_size_mb:
@@ -496,6 +509,12 @@ Resources:
       config: {Ref: controllerConfig}
       server: {Ref: controller0}
       input_values:
+        bootstack_nodeid:
+          Fn::Select:
+          - name
+          - Fn::GetAtt:
+            - controller0
+            - show
         controller_host:
           Fn::Select:
             - 0
index 3cddb26..dd5d385 100644 (file)
@@ -154,6 +154,25 @@ Resources:
         Ref: AdminPassword
       admin-token:
         Ref: AdminToken
+      bootstack:
+        bootstrap_nodeid:
+          Fn::Select:
+          - 0
+          - Fn::Select:
+            - 0
+            - Merge::Map:
+                undercloud:
+                - Fn::Select:
+                  - name
+                  - Fn::GetAtt:
+                    - undercloud
+                    - show
+        nodeid:
+          Fn::Select:
+          - name
+          - Fn::GetAtt:
+            - undercloud
+            - show
       controller-address:
         Fn::Select:
           - 0