aboutsummaryrefslogtreecommitdiffstats
path: root/mysql.yaml
diff options
context:
space:
mode:
authorClint Byrum <clint@fewbar.com>2013-03-01 16:02:59 -0800
committerClint Byrum <clint@fewbar.com>2013-03-01 16:02:59 -0800
commit4116aa5a5851e756437962abc1b1ba73eed812cf (patch)
tree68f083e139a8d8616b259c5db85957f3ada50e7f /mysql.yaml
parent255232e2e1c13ce007649f3fff95c6c27229a556 (diff)
Refactor a bit around new thinking
Diffstat (limited to 'mysql.yaml')
-rw-r--r--mysql.yaml25
1 files changed, 16 insertions, 9 deletions
diff --git a/mysql.yaml b/mysql.yaml
index ef6aa3f7..da6b6663 100644
--- a/mysql.yaml
+++ b/mysql.yaml
@@ -11,6 +11,10 @@ Parameters:
Default: m1.small
MySQLImage:
Type: String
+ KeystoneUser:
+ Description: Keystone database username.
+ Type: String
+ Default: keystone
Resources:
ApiAccessPolicy:
Type: OS::Heat::AccessPolicy
@@ -24,15 +28,17 @@ Resources:
Type: AWS::EC2::Instance
Metadata:
OpenStack::ImageBuilder::Elements: [ openstack-db ]
- OpenStack::MySQL:
- databases:
- keystone:
- userhandle: {Ref: KeystonePasswordHandle}
- OpenStack::Heat::CFNTools:
- AWSAccessKeyId:
- Ref: ApiKey
- AWSSecretAccessKey:
- Fn::GetAtt: [ ApiKey, SecretAccessKey ]
+ OpenStack::Config:
+ mysql:
+ users:
+ - database: keystone
+ username: {Ref: KeystoneUser}
+ userhandle: {Ref: KeystonePasswordHandle}
+ heat:
+ AWSAccessKeyId:
+ Ref: ApiKey
+ AWSSecretAccessKey:
+ Fn::GetAtt: [ ApiKey, SecretAccessKey ]
Properties:
ImageId:
{Ref: MySQLImage}
@@ -52,3 +58,4 @@ Outputs:
Fn::GetAtt: [ MySQL , PrivateIp ]
KeystonePassword:
Fn::GetAtt: [ KeystonePassword, Data ]
+ KeystoneUser: {Ref: KeystoneUser}