aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClint Byrum <clint@fewbar.com>2013-02-28 10:28:57 -0800
committerClint Byrum <clint@fewbar.com>2013-02-28 10:28:57 -0800
commit4c9a0549d411e63d2bbc90439b271e7c830a55c0 (patch)
treec40226b9af1b3aad857a590c923b039b4a9fb35d
parenta6e6afaa5a0bb98ce7862fcdae197357c127203d (diff)
Removing HA pair
-rw-r--r--mysql.yaml42
1 files changed, 6 insertions, 36 deletions
diff --git a/mysql.yaml b/mysql.yaml
index 3df3d0e3..a52cbcbe 100644
--- a/mysql.yaml
+++ b/mysql.yaml
@@ -15,19 +15,19 @@ Resources:
ApiAccessPolicy:
Type: OS::Heat::AccessPolicy
Properties:
- AllowedResources: [ MySQL0 ]
+ AllowedResources: [ MySQL ]
ApiUser:
Type: AWS::IAM::User
Properties:
Policies: [ { Ref: ApiAccessPolicy } ]
- MySQL0:
+ MySQL:
Type: AWS::EC2::Instance
Metadata:
OpenStack::ImageBuilder::Elements: [ mysql ]
OpenStack::MySQL:
- masterhandle: {Ref: MySQLMasterHandle}
- keystone:
- userhandle: {Ref: KeystonePasswordHandle}
+ databases:
+ keystone:
+ userhandle: {Ref: KeystonePasswordHandle}
OpenStack::Heat::CFNTools:
AWSAccessKeyId:
Ref: ApiKey
@@ -38,34 +38,6 @@ Resources:
{Ref: MySQLImage}
InstanceType: {Ref: InstanceType}
KeyName: {Ref: KeyName}
- MySQL1:
- Type: AWS::EC2::Instance
- DependsOn: MySQL0
- Metadata:
- OpenStack::ImageBuilder::Elements: [ mysql ]
- OpenStack::MySQL:
- masterinfo: {Fn::GetAtt: [ MySQLMaster, Data ]}
- consumers: {Ref: Consumers}
- keystone:
- userhandle: {Ref: KeystonePasswordHandle}
- OpenStack::Heat::CFNTools:
- AWSAccessKeyId:
- Ref: ApiKey
- AWSSecretAccessKey:
- Fn::GetAtt: [ ApiKey, SecretAccessKey ]
- Properties:
- ImageId:
- {Ref: MySQLImage}
- InstanceType: {Ref: InstanceType}
- KeyName: {Ref: KeyName}
- MySQLMasterHandle:
- Type: AWS::CloudFormation::WaitConditionHandle
- MySQLMaster:
- DependsOn: MySQL0
- Type: AWS::CloudFormation::WaitCondition
- Properties:
- Handle: {Ref: MySQLMasterHandle}
- Timeout: 60
KeystonePasswordHandle:
Type: AWS::CloudFormation:WaitConditionHandle
Properties:
@@ -77,8 +49,6 @@ Resources:
Timeout: 60
Outputs:
MySQLHost:
- Fn::GetAtt: [ MySQL0 , PrivateIp ]
- MySQLSlaves:
- Fn::GetAtt: [ MySQL1, PrivateIp ]
+ Fn::GetAtt: [ MySQL , PrivateIp ]
KeystonePassword:
Fn::GetAtt: [ KeystonePassword, Data ]