From 89662c8e67c285acfa5bdd167c71d5c9eff76e64 Mon Sep 17 00:00:00 2001 From: Clint Byrum Date: Tue, 26 Mar 2013 04:43:30 +0000 Subject: Refactoring to have a mysql-migration element. --- mysql.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mysql.yaml b/mysql.yaml index f8d92627..e88d99eb 100644 --- a/mysql.yaml +++ b/mysql.yaml @@ -52,18 +52,19 @@ Resources: MySQL: Type: AWS::EC2::Instance Metadata: - OpenStack::ImageBuilder::Elements: [ mysql ] + OpenStack::ImageBuilder::Elements: [ mysql-migration ] OpenStack::Config: mysql: + create-users: + - database: keystone + username: {Ref: KeystoneUser} + userhandle: {Ref: KeystonePasswordHandle} + mysql-migration: users: root: password: {Ref: BootstrapRootPassword} dump: password: {Ref: BootstrapDumpPassword} - create-users: - - database: keystone - username: {Ref: KeystoneUser} - userhandle: {Ref: KeystonePasswordHandle} bootstrap_host: {Ref: BootstrapHost} slave_user: {Ref: BootstrapSlaveUser} slave_password: {Ref: BootstrapSlavePassword} @@ -90,7 +91,7 @@ Resources: Type: AWS::CloudFormation::WaitCondition Properties: Handle: {Ref: KeystonePasswordHandle} - Timeout: 60 + Timeout: 90 Outputs: MySQLHost: Fn::GetAtt: [ MySQL , PrivateIp ] -- cgit 1.2.3-korg