From 3472233f83336e9dc81cc8f2e0ca0260c3dfedb5 Mon Sep 17 00:00:00 2001 From: Gregory Haynes Date: Fri, 28 Mar 2014 13:00:08 -0700 Subject: Add galera clustering properties Adding nodes and cluster_name properties for mysql in order to enable galera clustering. Change-Id: I522b7324460469c59f49983ca3becd9ea914cdc0 --- overcloud-source.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'overcloud-source.yaml') diff --git a/overcloud-source.yaml b/overcloud-source.yaml index 34f5a1bb..6592e036 100644 --- a/overcloud-source.yaml +++ b/overcloud-source.yaml @@ -265,6 +265,10 @@ Resources: network_id: {Ref: NeutronControlPlaneID} fixed_ips: Ref: ControlFixedIPs + MysqlClusterUniquePart: + Type: OS::Heat::RandomString + Properties: + length: 10 RabbitCookie: Type: OS::Heat::RandomString Properties: @@ -438,6 +442,15 @@ Resources: signing_certificate: {Ref: KeystoneSigningCertificate} mysql: innodb_buffer_pool_size: {Ref: MysqlInnodbBufferPoolSize} + nodes: + Merge::Map: + controller0: + ip: {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [controller0, networks]} ]} ] } + cluster_name: + Fn::Join: + - '-' + - - 'tripleo' + - {Ref: MysqlClusterUniquePart} neutron: flat-networks: {Ref: NeutronFlatNetworks} host: {get_input: controller_virtual_ip} -- cgit 1.2.3-korg