Remove Duplicate Rabbit Parameters
[apex-tripleo-heat-templates.git] / block-storage.yaml
1 HeatTemplateFormatVersion: '2012-12-12'
2 Description: 'Common Block Storage Configuration'
3 Parameters:
4   BlockStorageImage:
5     Type: String
6     Default: overcloud-cinder-volume
7   OvercloudBlockStorageFlavor:
8     Default: baremetal
9     Description: Flavor for block storage nodes to request when deploying.
10     Type: String
11 Resources:
12   BlockStorageAccessPolicy:
13     Type: OS::Heat::AccessPolicy
14     Properties:
15       AllowedResources:
16       - BlockStorage0
17   BlockStorageUser:
18     Type: AWS::IAM::User
19     Properties:
20       Policies: [ { Ref: BlockStorageAccessPolicy } ]
21   BlockStorageKey:
22     Type: AWS::IAM::AccessKey
23     Properties:
24       UserName:
25         Ref: BlockStorageUser
26   BlockStorage0:
27     Type: OS::Nova::Server
28     Properties:
29       image:
30         {Ref: BlockStorageImage}
31       flavor: {Ref: OvercloudBlockStorageFlavor}
32       key_name: {Ref: KeyName}
33     Metadata:
34       os-collect-config:
35         cfn:
36           access_key_id:
37             Ref: BlockStorageKey
38           secret_access_key:
39             Fn::GetAtt: [ BlockStorageKey, SecretAccessKey ]
40           stack_name: {Ref: 'AWS::StackName'}
41       OpenStack::ImageBuilder::Elements: [ cinder ]
42       keystone:
43         host: {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [notCompute0, networks]} ]} ] }
44       cinder:
45         db: {"Fn::Join": ['', ['mysql://cinder:unset@', {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [notCompute0, networks]} ]} ] } , '/cinder']]}
46         volume_size_mb: '5000'
47         service-password:
48           Ref: CinderPassword
49         volume: 'true'
50       admin-password: {Ref: AdminPassword}
51       rabbit:
52         host: {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [notCompute0, networks]} ]} ] }
53         username: {Ref: RabbitUserName}
54         password: {Ref: RabbitPassword}
55       interfaces:
56         control: {Ref: NeutronPublicInterface}