1 heat_template_version: 2013-05-23
2 description: 'Common Block Storage Configuration'
6 default: overcloud-cinder-volume
7 OvercloudBlockStorageFlavor:
9 description: Flavor for block storage nodes to request when deploying.
11 BlockStorageExtraConfig:
14 Controller specific configuration to inject into the cluster. Same
15 structure as ExtraConfig.
19 type: OS::Nova::Server
22 {get_param: BlockStorageImage}
23 flavor: {get_param: OvercloudBlockStorageFlavor}
24 key_name: {get_param: KeyName}
25 user_data_format: SOFTWARE_CONFIG
26 BlockStorage0AllNodesDeployment:
27 depends_on: [BlockStorage0Deployment,BlockStorage0PassthroughSpecific]
28 type: OS::Heat::StructuredDeployment
30 config: {get_resource: allNodesConfig}
31 server: {get_resource: BlockStorage0}
32 BlockStorage0Deployment:
33 type: OS::Heat::StructuredDeployment
35 server: {get_resource: BlockStorage0}
36 config: {get_resource: BlockStorageConfig}
38 controller_virtual_ip: {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
39 cinder_dsn: {"Fn::Join": ['', ['mysql://cinder:unset@', {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]} , '/cinder']]}
40 signal_transport: NO_SIGNAL
41 BlockStorage0Passthrough:
42 type: OS::Heat::StructuredDeployment
44 config: {get_resource: BlockStoragePassthrough}
45 server: {get_resource: BlockStorage0}
46 signal_transport: NO_SIGNAL
48 passthrough_config: {get_param: ExtraConfig}
49 BlockStorage0PassthroughSpecific:
50 depends_on: [BlockStorage0Passthrough]
51 type: OS::Heat::StructuredDeployment
53 config: {get_resource: BlockStoragePassthroughSpecific}
54 server: {get_resource: BlockStorage0}
55 signal_transport: NO_SIGNAL
57 passthrough_config_specific: {get_param: BlockStorageExtraConfig}
59 type: OS::Heat::StructuredConfig
61 group: os-apply-config
63 admin-password: {get_param: AdminPassword}
65 host: {get_input: controller_virtual_ip}
67 db: {get_input: cinder_dsn}
69 get_param: CinderLVMLoopDeviceSize
71 get_param: CinderPassword
73 get_param: CinderISCSIHelper
75 host: {get_input: controller_virtual_ip}
76 username: {get_param: RabbitUserName}
77 password: {get_param: RabbitPassword}
79 host: {get_input: controller_virtual_ip}
80 port: {get_param: GlancePort}
81 BlockStoragePassthrough:
82 type: OS::Heat::StructuredConfig
84 group: os-apply-config
85 config: {get_input: passthrough_config}
86 BlockStoragePassthroughSpecific:
87 type: OS::Heat::StructuredConfig
89 group: os-apply-config
90 config: {get_input: passthrough_config_specific}