aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClint Byrum <clint@fewbar.com>2013-04-18 11:16:43 -0700
committerClint Byrum <clint@fewbar.com>2013-04-18 11:16:43 -0700
commita15ca0394cb8427d11070ba6a0512b3e87ece833 (patch)
tree2c3e32546abf8c4139b5c47d75155273490e9ddd
parentfcde46d7b178278aa2376fdc8f5427a30209561b (diff)
Add stack for deploying rabbitmq.
-rw-r--r--rabbitmq.yaml40
1 files changed, 40 insertions, 0 deletions
diff --git a/rabbitmq.yaml b/rabbitmq.yaml
new file mode 100644
index 00000000..3b37bf42
--- /dev/null
+++ b/rabbitmq.yaml
@@ -0,0 +1,40 @@
+HeatTemplateFormatVersion: '2012-12-12'
+Description: 'HEAT Template - Dedicated MySQL server'
+Parameters:
+ KeyName:
+ Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
+ Type: String
+ Default: default
+ InstanceType:
+ Description: Use this flavor
+ Type: String
+ Default: bm.small
+ RabbitMQImage:
+ Type: String
+Resources:
+ RabbbitMQ:
+ Type: AWS::EC2::Instance
+ Metadata:
+ OpenStack::ImageBuilder::Elements: [ rabbitmq-server ]
+ OpenStack::Config:
+ rabbitmq:
+ password_handle: {Ref: RabbitMQPasswordHandle}
+ Properties:
+ ImageId:
+ {Ref: RabbitMQImage}
+ InstanceType: {Ref: InstanceType}
+ KeyName: {Ref: KeyName}
+ UserData: "#!/bin/bash\ntouch /tmp/userdata-finished\necho Userdata finished $(date)\n"
+ RabbitMQPasswordHandle:
+ Type: AWS::CloudFormation::WaitConditionHandle
+ RabbitMQPassword:
+ DependsOn: RabbitMQ
+ Type: AWS::CloudFormation::WaitCondition
+ Properties:
+ Handle: {Ref: RabbitMQPasswordHandle}
+ Timeout: 60
+Outputs:
+ RabbitMQHost:
+ Fn::GetAtt: [ RabbitMQ , PrivateIp ]
+ RabbitMQPassword:
+ Fn::GetAtt: [ RabbitMQPassword, Data ]