6e5d503ca9aa2e12c51a1b049dc6b51681d8babe
[apex-tripleo-heat-templates.git] / block-storage.yaml
1 heat_template_version: 2014-10-16
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         {get_param: BlockStorageImage}
23       flavor: {get_param: OvercloudBlockStorageFlavor}
24       key_name: {get_param: KeyName}
25       user_data_format: SOFTWARE_CONFIG
26   BlockStorage0Deployment:
27     depends_on: [controller0AllNodesDeployment]
28     type: OS::Heat::StructuredDeployment
29     properties:
30       server: {get_resource: BlockStorage0}
31       config: {get_resource: BlockStorageConfig}
32       input_values:
33         controller_host: {get_attr: [controller0, networks, ctlplane, 0]}
34         cinder_dsn: {list_join: ['', ['mysql://cinder:unset@', {get_attr: [controller0, networks, ctlplane, 0]} , '/cinder']]}
35         neutron_local_ip: {get_attr: [BlockStorage0 , networks, ctlplane, 0]}
36       signal_transport: NO_SIGNAL
37   BlockStorageConfig:
38     type: OS::Heat::StructuredConfig
39     properties:
40       group: os-apply-config
41       config:
42         admin-password: {get_param: AdminPassword}
43         keystone:
44           host: {get_input: controller_host}
45         cinder:
46           db: {get_input: cinder_dsn}
47           volume_size_mb:
48             get_param: CinderLVMLoopDeviceSize
49           service-password:
50             get_param: CinderPassword
51           iscsi-helper:
52             get_param: CinderISCSIHelper
53         admin-password: {get_param: AdminPassword}
54         rabbit:
55           host: {get_input: controller_host}
56           username: {get_param: RabbitUserName}
57           password: {get_param: RabbitPassword}
58         interfaces:
59           control: {get_param: NeutronPublicInterface}
60         neutron:
61           ovs:
62             local_ip: {get_input: neutron_local_ip}
63             tenant_network_type: {get_param: NeutronNetworkType}
64             enable_tunneling: {get_param: NeutronEnableTunnelling}
65           service-password:
66             get_param: NeutronPassword
67         config:
68           keystone:
69             host: {get_input: controller_host}
70           cinder:
71             db: {get_input: cinder_dsn}
72             volume_size_mb:
73               get_param: CinderLVMLoopDeviceSize
74             service-password:
75               get_param: CinderPassword
76             iscsi-helper:
77               get_param: CinderISCSIHelper
78           admin-password: {get_param: AdminPassword}
79           rabbit:
80             host: {get_input: controller_host}
81             username: {get_param: RabbitUserName}
82             password: {get_param: RabbitPassword}
83           interfaces:
84             control: {get_param: NeutronPublicInterface}
85           neutron:
86             ovs:
87               local_ip: { get_input: neutron_local_ip }
88               tenant_network_type: {get_param: NeutronNetworkType}
89               enable_tunneling: {get_param: NeutronEnableTunnelling}
90             service-password:
91               get_param: NeutronPassword