Merge "Add NeutronControlPlaneID parameter"
[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   NeutronNetworkType:
12     Type: String
13     Default: 'gre'
14   NeutronEnableTunnelling:
15     Type: String
16     Default: True
17 Resources:
18   BlockStorage0:
19     Type: OS::Nova::Server
20     Properties:
21       image:
22         {Ref: BlockStorageImage}
23       flavor: {Ref: OvercloudBlockStorageFlavor}
24       key_name: {Ref: KeyName}
25   BlockStorage0Deployment:
26     Type: OS::Heat::StructuredDeployment
27     Properties:
28       server: {Ref: BlockStorage0}
29       config: {Ref: BlockStorageConfig}
30       input_values:
31         controller_host: {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [controller0, networks]} ]} ] }
32         cinder_dsn: {"Fn::Join": ['', ['mysql://cinder:unset@', {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [controller0, networks]} ]} ] } , '/cinder']]}
33         neutron_local_ip: {"Fn::Select": [0, "Fn::Select": [ctlplane, [{"Fn::GetAtt": [BlockStorage0 , networks]}]]]}
34   BlockStorageConfig:
35     Type: OS::Heat::StructuredConfig
36     Properties:
37       config:
38         admin-password: {Ref: AdminPassword}
39         keystone:
40           host: {get_input: controller_host}
41         cinder:
42           db: {get_input: cinder_dsn}
43           volume_size_mb:
44             Ref: CinderLVMLoopDeviceSize
45           service-password:
46             Ref: CinderPassword
47           iscsi-helper:
48             Ref: CinderISCSIHelper
49         admin-password: {Ref: AdminPassword}
50         rabbit:
51           host: {get_input: controller_host}
52           username: {Ref: RabbitUserName}
53           password: {Ref: RabbitPassword}
54         interfaces:
55           control: {Ref: NeutronPublicInterface}
56         neutron:
57           ovs:
58             local_ip: {get_input: neutron_local_ip}
59             tenant_network_type: {Ref: NeutronNetworkType}
60             enable_tunneling: {Ref: NeutronEnableTunnelling}
61           service-password:
62             Ref: NeutronPassword
63         config:
64           keystone:
65             host: {get_input: controller_host}
66           cinder:
67             db: {get_input: cinder_dsn}
68             volume_size_mb:
69               Ref: CinderLVMLoopDeviceSize
70             service-password:
71               Ref: CinderPassword
72             iscsi-helper:
73               Ref: CinderISCSIHelper
74           admin-password: {Ref: AdminPassword}
75           rabbit:
76             host: {get_input: controller_host}
77             username: {Ref: RabbitUserName}
78             password: {Ref: RabbitPassword}
79           interfaces:
80             control: {Ref: NeutronPublicInterface}
81           neutron:
82             ovs:
83               local_ip: { get_input: neutron_local_ip }
84               tenant_network_type: {Ref: NeutronNetworkType}
85               enable_tunneling: {Ref: NeutronEnableTunnelling}
86             service-password:
87               Ref: NeutronPassword