aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClint Byrum <clint@fewbar.com>2013-03-26 04:43:30 +0000
committerClint Byrum <clint@fewbar.com>2013-03-26 04:43:30 +0000
commit89662c8e67c285acfa5bdd167c71d5c9eff76e64 (patch)
tree63bf5d12f59bdf6b68a1d34b0c16f9121af69675
parent5cbb8d3a852d6360c3935d183e85ccb74e283ec6 (diff)
Refactoring to have a mysql-migration element.
-rw-r--r--mysql.yaml13
1 files 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 ]