summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClint Byrum <clint@fewbar.com>2013-04-18 11:19:43 -0700
committerClint Byrum <clint@fewbar.com>2013-04-18 11:19:43 -0700
commit9954c0f5b2fda18757c2bcb5240c4b19da7dc69e (patch)
tree5cc71da6f1ddb119bde61361e539e97698c6017d
parent67533a2d9dc87454ca2cbfe4778aa280e1a6392e (diff)
Add Heat and RabbitMQ to base stack.
-rw-r--r--base.yaml25
-rw-r--r--mysql.yaml18
2 files changed, 43 insertions, 0 deletions
diff --git a/base.yaml b/base.yaml
index adff04ed..6db5d3ed 100644
--- a/base.yaml
+++ b/base.yaml
@@ -5,6 +5,16 @@ Parameters:
Description: URL Base where all of our templates are available
Type: String
Resources:
+ RabbitMQ:
+ Type: AWS::CloudFormation::Stack
+ TemplateURL:
+ Fn::Join:
+ - {Ref: TemplateRoot}
+ - rabbitmq.yaml
+ Parameters:
+ InstanceType: m1.small
+ KeyName: default
+ RabbitMQImage: image-rabbitmq
MySQL:
Type: AWS::CloudFormation::Stack
TemplateURL:
@@ -30,3 +40,18 @@ Resources:
- '@'
- {Fn::GetAtt: [ MySQL , MySQLHost ]}
- '/keystone'
+ Heat:
+ Type: AWS::CloudFormation::Stack
+ TemplateURL:
+ Fn::Join:
+ - {Ref: TemplateRoot}
+ - heat.yaml
+ Parameters:
+ KeyName: default
+ HeatDSN:
+ Fn::Join:
+ - 'mysql://heat:'
+ - {Fn::GetAtt: [ MySQL, HeatPassword ] }
+ - '@'
+ - {Fn::GetAtt: [ MySQL, MySQLHost ]}
+ - '/heat'
diff --git a/mysql.yaml b/mysql.yaml
index c682bf7a..1f7e8da3 100644
--- a/mysql.yaml
+++ b/mysql.yaml
@@ -13,6 +13,10 @@ Parameters:
Description: Keystone database username.
Type: String
Default: keystone
+ HeatUser:
+ Description: Heat database username.
+ Type: String
+ Default: heat
MySQLImage:
Type: String
BootstrapHost:
@@ -59,6 +63,9 @@ Resources:
- database: keystone
username: {Ref: KeystoneUser}
userhandle: {Ref: KeystonePasswordHandle}
+ - database: heat
+ username: {Ref: HeatUser}
+ userhandle: {Ref: HeatPasswordHandle}
mysql-migration:
users:
root:
@@ -85,6 +92,14 @@ Resources:
{Ref: MySQLImage}
InstanceType: {Ref: InstanceType}
KeyName: {Ref: KeyName}
+ HeatPasswordHandle:
+ Type: AWS::CloudFormation::WaitConditionHandle
+ HeatPassword:
+ DependsOn: MySQL
+ Type: AWS::CloudFormation::WaitCondition
+ Properties:
+ Handle: {Ref: HeatPasswordHandle}
+ Timeout: 90
KeystonePasswordHandle:
Type: AWS::CloudFormation::WaitConditionHandle
KeystonePassword:
@@ -99,3 +114,6 @@ Outputs:
KeystonePassword:
Fn::GetAtt: [ KeystonePassword, Data ]
KeystoneUser: {Ref: KeystoneUser}
+ HeatPassword:
+ Fn::GetAtt: [ HeatPassword, Data ]
+ HeatUser: {Ref: HeatUser}