Merge "Fix spelling of controller0_VLANPort"
[apex-tripleo-heat-templates.git] / block-storage.yaml
1 heat_template_version: 2013-05-23
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   BlockStorage0:
13     type: OS::Nova::Server
14     properties:
15       image:
16         {get_param: BlockStorageImage}
17       flavor: {get_param: OvercloudBlockStorageFlavor}
18       key_name: {get_param: KeyName}
19       user_data_format: SOFTWARE_CONFIG
20   BlockStorage0Deployment:
21     depends_on: [controller0AllNodesDeployment]
22     type: OS::Heat::StructuredDeployment
23     properties:
24       server: {get_resource: BlockStorage0}
25       config: {get_resource: BlockStorageConfig}
26       input_values:
27         controller_virtual_ip: {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
28         cinder_dsn: {"Fn::Join": ['', ['mysql://cinder:unset@', {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]} , '/cinder']]}
29       signal_transport: NO_SIGNAL
30   BlockStorageConfig:
31     type: OS::Heat::StructuredConfig
32     properties:
33       group: os-apply-config
34       config:
35         admin-password: {get_param: AdminPassword}
36         keystone:
37           host: {get_input: controller_virtual_ip}
38         cinder:
39           db: {get_input: cinder_dsn}
40           volume_size_mb:
41             get_param: CinderLVMLoopDeviceSize
42           service-password:
43             get_param: CinderPassword
44           iscsi-helper:
45             get_param: CinderISCSIHelper
46         rabbit:
47           host: {get_input: controller_virtual_ip}
48           username: {get_param: RabbitUserName}
49           password: {get_param: RabbitPassword}
50         glance:
51           host: {get_input: controller_virtual_ip}
52           port: {get_param: GlancePort}