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
69 Rabbit client subscriber parameter to specify
70 an SSL connection to the RabbitMQ host.
74 description: Set rabbit subscriber port, change this if using SSL
76 SnmpdReadonlyUserName:
78 description: The user name for SNMPd with readonly rights running on all Overcloud nodes
80 SnmpdReadonlyUserPassword:
82 description: The user password for SNMPd with readonly rights running on all Overcloud nodes
90 description: Set to true to enable package installation via Puppet
96 Setting to a previously unused value during stack-update will trigger
97 package update on all nodes
100 default: '' # Defaults to Heat created hostname
103 description: Mapping of service_name -> network name. Typically set
104 via parameter_defaults in the resource registry.
115 type: OS::Nova::Server
119 flavor: {get_param: Flavor}
120 key_name: {get_param: KeyName}
123 user_data_format: SOFTWARE_CONFIG
124 user_data: {get_resource: UserData}
125 name: {get_param: Hostname}
127 # Combine the NodeAdminUserData and NodeUserData mime archives
129 type: OS::Heat::MultipartMime
132 - config: {get_resource: NodeAdminUserData}
134 - config: {get_resource: NodeUserData}
137 # Creates the "heat-admin" user if configured via the environment
138 # Should return a OS::Heat::MultipartMime reference via OS::stack_id
140 type: OS::TripleO::NodeAdminUserData
142 # For optional operator additional userdata
143 # Should return a OS::Heat::MultipartMime reference via OS::stack_id
145 type: OS::TripleO::NodeUserData
148 type: OS::TripleO::BlockStorage::Ports::InternalApiPort
150 ControlPlaneIP: {get_attr: [BlockStorage, networks, ctlplane, 0]}
153 type: OS::TripleO::BlockStorage::Ports::StoragePort
155 ControlPlaneIP: {get_attr: [BlockStorage, networks, ctlplane, 0]}
158 type: OS::TripleO::BlockStorage::Ports::StorageMgmtPort
160 ControlPlaneIP: {get_attr: [BlockStorage, networks, ctlplane, 0]}
163 type: OS::TripleO::BlockStorage::Net::SoftwareConfig
165 ControlPlaneIp: {get_attr: [BlockStorage, networks, ctlplane, 0]}
166 InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
167 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
168 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
171 type: OS::TripleO::Network::Ports::NetIpMap
173 ControlPlaneIp: {get_attr: [BlockStorage, networks, ctlplane, 0]}
174 InternalApiIp: {get_attr: [InternalApiPort, ip_address]}
175 StorageIp: {get_attr: [StoragePort, ip_address]}
176 StorageMgmtIp: {get_attr: [StorageMgmtPort, ip_address]}
179 type: OS::TripleO::SoftwareDeployment
181 config: {get_resource: NetworkConfig}
182 server: {get_resource: BlockStorage}
184 BlockStorageDeployment:
185 type: OS::Heat::StructuredDeployment
186 depends_on: NetworkDeployment
188 server: {get_resource: BlockStorage}
189 config: {get_resource: BlockStorageConfig}
191 debug: {get_param: Debug}
192 cinder_dsn: {list_join: ['', ['mysql://cinder:', {get_param: CinderPassword}, '@', {get_param: MysqlVirtualIP} , '/cinder']]}
193 snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
194 snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
195 cinder_lvm_loop_device_size:
199 size: {get_param: CinderLVMLoopDeviceSize}
200 cinder_enable_iscsi_backend: {get_param: CinderEnableIscsiBackend}
201 cinder_iscsi_helper: {get_param: CinderISCSIHelper}
202 cinder_iscsi_ip_address: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, CinderIscsiNetwork]}]}
206 - - {get_param: GlanceProtocol}
208 - {get_param: GlanceApiVirtualIP}
210 - {get_param: GlancePort}
211 rabbit_username: {get_param: RabbitUserName}
212 rabbit_password: {get_param: RabbitPassword}
213 rabbit_client_use_ssl: {get_param: RabbitClientUseSSL}
214 rabbit_client_port: {get_param: RabbitClientPort}
217 template: '["server"]'
219 server: {get_param: NtpServer}
220 enable_package_install: {get_param: EnablePackageInstall}
221 enable_package_upgrade: {get_attr: [UpdateDeployment, update_managed_packages]}
223 # Map heat metadata into hiera datafiles
225 type: OS::Heat::StructuredConfig
227 group: os-apply-config
232 - heat_config_%{::deploy_config_name}
236 - all_nodes # provided by allNodesConfig
241 raw_data: {get_file: hieradata/common.yaml}
243 mapped_data: {get_param: BlockStorageExtraConfig}
245 mapped_data: {get_param: ExtraConfig}
247 raw_data: {get_file: hieradata/volume.yaml}
250 cinder::debug: {get_input: debug}
251 cinder::setup_test_volume::size: {get_input: cinder_lvm_loop_device_size}
252 cinder_iscsi_helper: {get_input: cinder_iscsi_helper}
253 cinder::database_connection: {get_input: cinder_dsn}
254 cinder::rabbit_userid: {get_input: rabbit_username}
255 cinder::rabbit_password: {get_input: rabbit_password}
256 cinder::rabbit_use_ssl: {get_input: rabbit_client_use_ssl}
257 cinder::rabbit_port: {get_input: rabbit_client_port}
258 cinder_enable_iscsi_backend: {get_input: cinder_enable_iscsi_backend}
259 cinder_iscsi_ip_address: {get_input: cinder_iscsi_ip_address}
260 cinder::glance::glance_api_servers: {get_input: glance_api_servers}
261 ntp::servers: {get_input: ntp_servers}
262 tripleo::packages::enable_install: {get_input: enable_package_install}
263 tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
264 snmpd_readonly_user_name: {get_input: snmpd_readonly_user_name}
265 snmpd_readonly_user_password: {get_input: snmpd_readonly_user_password}
267 # Hook for site-specific additional pre-deployment config,
268 # applying to all nodes, e.g node registration/unregistration
270 depends_on: BlockStorageDeployment
271 type: OS::TripleO::NodeExtraConfig
273 server: {get_resource: BlockStorage}
276 type: OS::TripleO::Tasks::PackageUpdate
279 type: OS::Heat::SoftwareDeployment
281 config: {get_resource: UpdateConfig}
282 server: {get_resource: BlockStorage}
285 get_param: UpdateIdentifier
291 template: "IP HOST.localdomain HOST"
293 IP: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, BlockStorageHostnameResolveNetwork]}]}
294 HOST: {get_attr: [BlockStorage, name]}
295 nova_server_resource:
296 description: Heat resource handle for the block storage server
298 {get_resource: BlockStorage}
299 internal_api_ip_address:
300 description: IP address of the server in the internal_api network
301 value: {get_attr: [InternalApiPort, ip_address]}
303 description: IP address of the server in the storage network
304 value: {get_attr: [StoragePort, ip_address]}
305 storage_mgmt_ip_address:
306 description: IP address of the server in the storage_mgmt network
307 value: {get_attr: [StorageMgmtPort, ip_address]}
309 description: identifier which changes if the node configuration may need re-applying
313 - - {get_attr: [BlockStorageDeployment, deploy_stdout]}
314 - {get_param: UpdateIdentifier}