Add BlockStorage and SwiftStorage nodes into hosts
authorGiulio Fidente <gfidente@redhat.com>
Tue, 5 Aug 2014 16:23:43 +0000 (18:23 +0200)
committerGiulio Fidente <gfidente@redhat.com>
Tue, 5 Aug 2014 16:23:43 +0000 (18:23 +0200)
With this we populate the hosts key (needed for /etc/hosts editing)
with the BlockStorage and SwiftStorage nodes too.

Change-Id: I6730ffe1e27d952d563c16a9480298fbef9f61fe

overcloud-source.yaml

index d6f7eb3..467def4 100644 (file)
@@ -665,6 +665,30 @@ resources:
                         - '.'
                         - - {get_attr: [NovaCompute0, show, name]}
                           - 'novalocal'
+            - list_join:
+              - "\n"
+              - Merge::Map:
+                  BlockStorage0:
+                    list_join:
+                    - ' '
+                    - - {get_attr: [BlockStorage0, networks, ctlplane, 0]}
+                      - {get_attr: [BlockStorage0, show, name]}
+                      - list_join:
+                        - '.'
+                        - - {get_attr: [BlockStorage0, show, name]}
+                          - 'novalocal'
+            - list_join:
+              - "\n"
+              - Merge::Map:
+                  SwiftStorage0:
+                    list_join:
+                    - ' '
+                    - - {get_attr: [SwiftStorage0, networks, ctlplane, 0]}
+                      - {get_attr: [SwiftStorage0, show, name]}
+                      - list_join:
+                        - '.'
+                        - - {get_attr: [SwiftStorage0, show, name]}
+                          - 'novalocal'
             - list_join:
               - "\n"
               - Merge::Map: