1 heat_template_version: 2015-04-30
2 description: 'OpenStack cinder storage configured by Puppet'
5 default: overcloud-cinder-volume
7 CinderEnableIscsiBackend:
9 description: Whether to enable or not the Iscsi backend for Cinder
13 description: The iSCSI helper to use with cinder.
15 CinderLVMLoopDeviceSize:
17 description: The size of the loopback file used by the cinder LVM driver.
21 description: The password for the cinder service and db account, used by cinder-api.
26 description: Set to True to enable debugging on all services.
28 VirtualIP: # deprecated. Use per service VIPs instead.
34 Additional hiera configuration to inject into the cluster. Note
35 that BlockStorageExtraConfig takes precedence over ExtraConfig.
37 BlockStorageExtraConfig:
40 Role specific additional hiera configuration to inject into the cluster.
43 description: Flavor for block storage nodes to request when deploying.
46 - custom_constraint: nova.flavor
49 description: Glance port.
53 description: Protocol to use when connecting to glance, set to https for SSL.
57 description: Name of an existing EC2 KeyPair to enable SSH access to the instances
68 Rabbit client subscriber parameter to specify
69 an SSL connection to the RabbitMQ host.
73 description: Set rabbit subscriber port, change this if using SSL
75 SnmpdReadonlyUserName:
77 description: The user name for SNMPd with readonly rights running on all Overcloud nodes
79 SnmpdReadonlyUserPassword:
81 description: The user password for SNMPd with readonly rights running on all Overcloud nodes
89 description: Set to true to enable package installation via Puppet
95 Setting to a previously unused value during stack-update will trigger
96 package update on all nodes
99 default: '' # Defaults to Heat created hostname
102 description: Mapping of service_name -> network name. Typically set
103 via parameter_defaults in the resource registry.
114 type: OS::Nova::Server
118 flavor: {get_param: Flavor}
119 key_name: {get_param: KeyName}
122 user_data_format: SOFTWARE_CONFIG
123 user_data: {get_resource: NodeUserData}
124 name: {get_param: Hostname}
127 type: OS::TripleO::NodeUserData
130 type: OS::TripleO::BlockStorage::Ports::InternalApiPort
132 ControlPlaneIP: {get_attr: [BlockStorage, networks, ctlplane, 0]}
135 type: OS::TripleO::BlockStorage::Ports::StoragePort
137 ControlPlaneIP: {get_attr: [BlockStorage, networks, ctlplane, 0]}
140 type: OS::TripleO::BlockStorage::Ports::StorageMgmtPort
142 ControlPlaneIP: {get_attr: [BlockStorage, networks, ctlplane, 0]}
145 type: OS::TripleO::BlockStorage::Net::SoftwareConfig
147 InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
148 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
149 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
152 type: OS::TripleO::Network::Ports::NetIpMap
154 ControlPlaneIp: {get_attr: [BlockStorage, networks, ctlplane, 0]}
155 InternalApiIp: {get_attr: [InternalApiPort, ip_address]}
156 StorageIp: {get_attr: [StoragePort, ip_address]}
157 StorageMgmtIp: {get_attr: [StorageMgmtPort, ip_address]}
160 type: OS::TripleO::SoftwareDeployment
162 config: {get_resource: NetworkConfig}
163 server: {get_resource: BlockStorage}
165 BlockStorageDeployment:
166 type: OS::Heat::StructuredDeployment
167 depends_on: NetworkDeployment
169 server: {get_resource: BlockStorage}
170 config: {get_resource: BlockStorageConfig}
172 debug: {get_param: Debug}
173 cinder_dsn: {list_join: ['', ['mysql://cinder:', {get_param: CinderPassword}, '@', {get_param: MysqlVirtualIP} , '/cinder']]}
174 snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
175 snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
176 cinder_lvm_loop_device_size:
180 size: {get_param: CinderLVMLoopDeviceSize}
181 cinder_enable_iscsi_backend: {get_param: CinderEnableIscsiBackend}
182 cinder_iscsi_helper: {get_param: CinderISCSIHelper}
183 cinder_iscsi_ip_address: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, CinderIscsiNetwork]}]}
187 - - {get_param: GlanceProtocol}
189 - {get_param: GlanceApiVirtualIP}
191 - {get_param: GlancePort}
192 rabbit_username: {get_param: RabbitUserName}
193 rabbit_password: {get_param: RabbitPassword}
194 rabbit_client_use_ssl: {get_param: RabbitClientUseSSL}
195 rabbit_client_port: {get_param: RabbitClientPort}
198 template: '["server"]'
200 server: {get_param: NtpServer}
201 enable_package_install: {get_param: EnablePackageInstall}
203 # Map heat metadata into hiera datafiles
205 type: OS::Heat::StructuredConfig
207 group: os-apply-config
211 - heat_config_%{::deploy_config_name}
215 - all_nodes # provided by allNodesConfig
220 raw_data: {get_file: hieradata/common.yaml}
222 mapped_data: {get_param: BlockStorageExtraConfig}
224 mapped_data: {get_param: ExtraConfig}
226 raw_data: {get_file: hieradata/volume.yaml}
229 cinder::debug: {get_input: debug}
230 cinder::setup_test_volume::size: {get_input: cinder_lvm_loop_device_size}
231 cinder_iscsi_helper: {get_input: cinder_iscsi_helper}
232 cinder::database_connection: {get_input: cinder_dsn}
233 cinder::rabbit_userid: {get_input: rabbit_username}
234 cinder::rabbit_password: {get_input: rabbit_password}
235 cinder::rabbit_use_ssl: {get_input: rabbit_client_use_ssl}
236 cinder::rabbit_port: {get_input: rabbit_client_port}
237 cinder_enable_iscsi_backend: {get_input: cinder_enable_iscsi_backend}
238 cinder_iscsi_ip_address: {get_input: cinder_iscsi_ip_address}
239 cinder::glance::glance_api_servers: {get_input: glance_api_servers}
240 ntp::servers: {get_input: ntp_servers}
241 tripleo::packages::enable_install: {get_input: enable_package_install}
242 snmpd_readonly_user_name: {get_input: snmpd_readonly_user_name}
243 snmpd_readonly_user_password: {get_input: snmpd_readonly_user_password}
246 type: OS::TripleO::Tasks::PackageUpdate
249 type: OS::Heat::SoftwareDeployment
251 config: {get_resource: UpdateConfig}
252 server: {get_resource: BlockStorage}
255 get_param: UpdateIdentifier
261 template: "IP HOST.localdomain HOST"
263 IP: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, BlockStorageHostnameResolveNetwork]}]}
264 HOST: {get_attr: [BlockStorage, name]}
265 nova_server_resource:
266 description: Heat resource handle for the block storage server
268 {get_resource: BlockStorage}
269 internal_api_ip_address:
270 description: IP address of the server in the internal_api network
271 value: {get_attr: [InternalApiPort, ip_address]}
273 description: IP address of the server in the storage network
274 value: {get_attr: [StoragePort, ip_address]}
275 storage_mgmt_ip_address:
276 description: IP address of the server in the storage_mgmt network
277 value: {get_attr: [StorageMgmtPort, ip_address]}
279 description: identifier which changes if the node configuration may need re-applying
280 value: {get_attr: [BlockStorageDeployment, deploy_stdout]}