aboutsummaryrefslogtreecommitdiffstats
path: root/block-storage.yaml
diff options
context:
space:
mode:
authorRyan Brady <rbrady@redhat.com>2014-01-08 09:06:32 -0500
committerRyan Brady <rbrady@redhat.com>2014-01-15 08:53:24 -0500
commitd0236047270924dec7a63863ff4c2af9cff1aa1a (patch)
tree4ceff1b2cfdc5e1364a8a0699fd9a3fb20309bc9 /block-storage.yaml
parent5b3593cc0d2b5b51cbfb03041cfb6c3bc05f4381 (diff)
Add optional cinder storage node to overcloud
Mergeable block storage yaml template. Makefile updated to create a overcloud-with-block-storage template to deploy an additional machine as a block storage node. Change-Id: I37c06cde114592507a4583f7ec53ffac123d66e3
Diffstat (limited to 'block-storage.yaml')
-rw-r--r--block-storage.yaml66
1 files changed, 66 insertions, 0 deletions
diff --git a/block-storage.yaml b/block-storage.yaml
new file mode 100644
index 00000000..d7548c9c
--- /dev/null
+++ b/block-storage.yaml
@@ -0,0 +1,66 @@
+HeatTemplateFormatVersion: '2012-12-12'
+Description: 'Common Block Storage Configuration'
+Parameters:
+ BlockStorageImage:
+ Type: String
+ Default: overcloud-cinder-volume
+ KeystoneHost:
+ Type: String
+ Default: {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [notcompute, networks]} ]} ] }
+ MySQLHost:
+ Type: String
+ Default: {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [notcompute, networks]} ]} ] }
+ RabbitHost:
+ Type: String
+ Default: {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [notcompute, networks]} ]} ] }
+ RabbitPassword:
+ Type: String
+ Default: "guest"
+ NoEcho: true
+Resources:
+ BlockStorageAccessPolicy:
+ Type: OS::Heat::AccessPolicy
+ Properties:
+ AllowedResources:
+ - BlockStorage0
+ BlockStorageUser:
+ Type: AWS::IAM::User
+ Properties:
+ Policies: [ { Ref: BlockStorageAccessPolicy } ]
+ BlockStorageKey:
+ Type: AWS::IAM::AccessKey
+ Properties:
+ UserName:
+ Ref: BlockStorageUser
+ BlockStorage0:
+ Type: OS::Nova::Server
+ Properties:
+ image:
+ {Ref: BlockStorageImage}
+ flavor: {Ref: Flavor}
+ key_name: {Ref: KeyName}
+ InstanceType: '0'
+ ImageId: '0'
+ Metadata:
+ os-collect-config:
+ cfn:
+ access_key_id:
+ Ref: BlockStorageKey
+ secret_access_key:
+ Fn::GetAtt: [ BlockStorageKey, SecretAccessKey ]
+ stack_name: {Ref: 'AWS::StackName'}
+ OpenStack::ImageBuilder::Elements: [ cinder ]
+ keystone:
+ host: {Ref: KeystoneHost}
+ cinder:
+ db: {"Fn::Join": ['', ['mysql://cinder:unset@', {Ref: MySQLHost}, '/cinder']]}
+ volume_size_mb: '5000'
+ service-password:
+ Ref: CinderPassword
+ volume: 'true'
+ admin-password: {Ref: AdminPassword}
+ rabbit:
+ host: {Ref: RabbitHost}
+ password: {Ref: RabbitPassword}
+ interfaces:
+ control: {Ref: NeutronPublicInterface} \ No newline at end of file