diff options
author | Gregory Haynes <greg@greghaynes.net> | 2014-03-28 13:00:08 -0700 |
---|---|---|
committer | Gregory Haynes <greg@greghaynes.net> | 2014-06-30 00:43:13 -0700 |
commit | 3472233f83336e9dc81cc8f2e0ca0260c3dfedb5 (patch) | |
tree | 425d4274dc915793f2b46fcba13127024dafd683 /overcloud-source.yaml | |
parent | f17d95f13394195a2df652bf97cb2408bc1fe327 (diff) |
Add galera clustering properties
Adding nodes and cluster_name properties for mysql in order to enable
galera clustering.
Change-Id: I522b7324460469c59f49983ca3becd9ea914cdc0
Diffstat (limited to 'overcloud-source.yaml')
-rw-r--r-- | overcloud-source.yaml | 13 |
1 files changed, 13 insertions, 0 deletions
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} |