Use VIP for keystone host in swift template
authorJan Provaznik <jprovazn@redhat.com>
Thu, 31 Jul 2014 12:40:38 +0000 (08:40 -0400)
committerJan Provaznik <jprovazn@redhat.com>
Wed, 6 Aug 2014 14:17:14 +0000 (16:17 +0200)
As a side effect this fixes invalid keystone host generation
when multiple controller nodes are used.

Change-Id: I081976f0da94fc0232dfa2c34de03bbb4abf1a85

swift-storage-source.yaml

index d653966..97f7fa7 100644 (file)
@@ -35,7 +35,7 @@ resources:
       config: {get_resource: SwiftKeystoneConfig}
       signal_transport: NO_SIGNAL
       input_values:
-        keystone_host: {get_attr: [controller0, networks, ctlplane, 0]}
+        keystone_host: {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
   SwiftStorage0Deploy:
     type: OS::Heat::StructuredDeployment
     properties: