From: Therese McHale Date: Wed, 25 Jun 2014 15:32:08 +0000 (+0100) Subject: Set the MySQL root password X-Git-Tag: opnfv-6.0.0~2762^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=e01f11cc43533d8d59b1144759bb38b4d8160eb0;p=apex-tripleo-heat-templates.git Set the MySQL root password Set the MySQL root password to a random string for the undercloud and overcloud Change-Id: I6d38ca82c77a4aa8f58089c50aa5bf320ec0ecc6 --- diff --git a/overcloud-source.yaml b/overcloud-source.yaml index 6432baa4..58385efa 100644 --- a/overcloud-source.yaml +++ b/overcloud-source.yaml @@ -295,6 +295,10 @@ resources: type: OS::Heat::RandomString properties: length: 10 + MysqlRootPassword: + type: OS::Heat::RandomString + properties: + length: 10 PublicVirtualIP: type: OS::Neutron::Port properties: @@ -482,6 +486,7 @@ resources: mysql: innodb_buffer_pool_size: {get_param: MysqlInnodbBufferPoolSize} local_bind: true + root-password: {get_resource: MysqlRootPassword} nodes: Merge::Map: controller0: diff --git a/undercloud-source.yaml b/undercloud-source.yaml index 741d3ae2..22333b88 100644 --- a/undercloud-source.yaml +++ b/undercloud-source.yaml @@ -188,6 +188,10 @@ resources: length: 20 salt: get_param: RabbitCookieSalt + MysqlRootPassword: + type: OS::Heat::RandomString + properties: + length: 10 undercloudConfig: type: OS::Heat::StructuredConfig properties: @@ -270,6 +274,7 @@ resources: signing_certificate: {get_param: KeystoneSigningCertificate} mysql: innodb_buffer_pool_size: {get_param: MysqlInnodbBufferPoolSize} + root-password: {get_resource: MysqlRootPassword} neutron: host: 127.0.0.1 ovs_db: mysql://neutron:unset@localhost/ovs_neutron?charset=utf8