aboutsummaryrefslogtreecommitdiffstats
path: root/mysql.yaml
diff options
context:
space:
mode:
authorClint Byrum <clint@fewbar.com>2013-03-11 10:00:41 -0700
committerClint Byrum <clint@fewbar.com>2013-03-11 10:00:41 -0700
commitf1a1b301213d0156c3180cbe069cec1657c0a95c (patch)
tree60e17755465abbf17b91976396db23996d71960b /mysql.yaml
parent4116aa5a5851e756437962abc1b1ba73eed812cf (diff)
Adding bootstrap parameters
Diffstat (limited to 'mysql.yaml')
-rw-r--r--mysql.yaml21
1 files changed, 18 insertions, 3 deletions
diff --git a/mysql.yaml b/mysql.yaml
index da6b6663..5c9838c6 100644
--- a/mysql.yaml
+++ b/mysql.yaml
@@ -15,6 +15,14 @@ Parameters:
Description: Keystone database username.
Type: String
Default: keystone
+ BootstrapUrl:
+ Description: Fetch a mysql dump file from this URL and load it
+ Type: String
+ Default: ''
+ BootstrapUrl:
+ Description: Fetch a mysql config file from this URL to setup local root with bootstrapped database
+ Type: String
+ Default: ''
Resources:
ApiAccessPolicy:
Type: OS::Heat::AccessPolicy
@@ -34,11 +42,18 @@ Resources:
- database: keystone
username: {Ref: KeystoneUser}
userhandle: {Ref: KeystonePasswordHandle}
+ bootstrap_url: {Ref: BootstrapUrl}
+ root_cnf_url: {Ref: BootstrapRootCnfUrl}
heat:
- AWSAccessKeyId:
+ access_key_id:
Ref: ApiKey
- AWSSecretAccessKey:
+ secret_key:
Fn::GetAtt: [ ApiKey, SecretAccessKey ]
+ stack:
+ name: {Ref: 'AWS::StackName'}
+ region: {Ref: 'AWS::Region'}
+ refresh:
+ - resource: MySQL
Properties:
ImageId:
{Ref: MySQLImage}
@@ -48,7 +63,7 @@ Resources:
Type: AWS::CloudFormation:WaitConditionHandle
Properties:
KeystonePassword:
- DependsOn: MySQL1
+ DependsOn: MySQL
Type: AWS::CloudFormation::WaitCondition
Properties:
Handle: {Ref: KeystonePasswordHandle}