1 heat_template_version: 2016-10-14
2 description: 'OpenStack ceph storage node configured by Puppet'
4 OvercloudCephStorageFlavor:
5 description: Flavor for the Ceph Storage node.
9 - custom_constraint: nova.flavor
12 default: overcloud-full
14 - custom_constraint: glance.image
16 default: 'REBUILD_PRESERVE_EPHEMERAL'
17 description: What policy to use when reconstructing instances. REBUILD for rebuilds, REBUILD_PRESERVE_EPHEMERAL to preserve /mnt.
20 description: Name of an existing Nova key pair to enable SSH access to the instances
24 - custom_constraint: nova.keypair
27 description: Mapping of service_name -> network name. Typically set
28 via parameter_defaults in the resource registry.
32 description: Mapping of service endpoint -> protocol. Typically set
33 via parameter_defaults in the resource registry.
39 Setting to a previously unused value during stack-update will trigger
40 package update on all nodes
43 default: '' # Defaults to Heat created hostname
47 description: Optional mapping to override hostnames
51 Additional hiera configuration to inject into the cluster. Note
52 that CephStorageExtraConfig takes precedence over ExtraConfig.
54 CephStorageExtraConfig:
57 Role specific additional hiera configuration to inject into the cluster.
62 NetworkDeploymentActions:
63 type: comma_delimited_list
65 Heat action when to apply network configuration changes
67 SoftwareConfigTransport:
68 default: POLL_SERVER_CFN
70 How the server should receive the metadata required for software configuration.
73 - allowed_values: [POLL_SERVER_CFN, POLL_SERVER_HEAT, POLL_TEMP_URL, ZAQAR_MESSAGE]
75 default: 'localdomain'
78 The DNS domain used for the hosts. This should match the dhcp_domain
79 configured in the Undercloud neutron. Defaults to localdomain.
83 Extra properties or metadata passed to Nova for the created nodes in
84 the overcloud. It's accessible via the Nova metadata API.
86 CephStorageSchedulerHints:
88 description: Optional scheduler hints to pass to nova
93 ServiceConfigSettings:
97 type: comma_delimited_list
99 MonitoringSubscriptions:
100 type: comma_delimited_list
104 description: Command which will be run whenever configuration data changes
105 default: os-refresh-config --timeout 14400
109 type: OS::TripleO::Server
112 command: {get_param: ConfigCommand}
114 image: {get_param: CephStorageImage}
115 image_update_policy: {get_param: ImageUpdatePolicy}
116 flavor: {get_param: OvercloudCephStorageFlavor}
117 key_name: {get_param: KeyName}
120 user_data_format: SOFTWARE_CONFIG
121 user_data: {get_resource: UserData}
124 template: {get_param: Hostname}
125 params: {get_param: HostnameMap}
126 software_config_transport: {get_param: SoftwareConfigTransport}
127 metadata: {get_param: ServerMetadata}
128 scheduler_hints: {get_param: CephStorageSchedulerHints}
130 # Combine the NodeAdminUserData and NodeUserData mime archives
132 type: OS::Heat::MultipartMime
135 - config: {get_resource: NodeAdminUserData}
137 - config: {get_resource: NodeUserData}
140 # Creates the "heat-admin" user if configured via the environment
141 # Should return a OS::Heat::MultipartMime reference via OS::stack_id
143 type: OS::TripleO::NodeAdminUserData
145 # For optional operator additional userdata
146 # Should return a OS::Heat::MultipartMime reference via OS::stack_id
148 type: OS::TripleO::NodeUserData
151 type: OS::TripleO::CephStorage::Ports::ExternalPort
153 ControlPlaneIP: {get_attr: [CephStorage, networks, ctlplane, 0]}
154 IPPool: {get_param: CephStorageIPs}
155 NodeIndex: {get_param: NodeIndex}
158 type: OS::TripleO::CephStorage::Ports::InternalApiPort
160 ControlPlaneIP: {get_attr: [CephStorage, networks, ctlplane, 0]}
161 IPPool: {get_param: CephStorageIPs}
162 NodeIndex: {get_param: NodeIndex}
165 type: OS::TripleO::CephStorage::Ports::StoragePort
167 ControlPlaneIP: {get_attr: [CephStorage, networks, ctlplane, 0]}
168 IPPool: {get_param: CephStorageIPs}
169 NodeIndex: {get_param: NodeIndex}
172 type: OS::TripleO::CephStorage::Ports::StorageMgmtPort
174 ControlPlaneIP: {get_attr: [CephStorage, networks, ctlplane, 0]}
175 IPPool: {get_param: CephStorageIPs}
176 NodeIndex: {get_param: NodeIndex}
179 type: OS::TripleO::CephStorage::Ports::TenantPort
181 ControlPlaneIP: {get_attr: [CephStorage, networks, ctlplane, 0]}
182 IPPool: {get_param: CephStorageIPs}
183 NodeIndex: {get_param: NodeIndex}
186 type: OS::TripleO::CephStorage::Ports::ManagementPort
188 ControlPlaneIP: {get_attr: [CephStorage, networks, ctlplane, 0]}
189 IPPool: {get_param: CephStorageIPs}
190 NodeIndex: {get_param: NodeIndex}
193 type: OS::TripleO::CephStorage::Net::SoftwareConfig
195 ControlPlaneIp: {get_attr: [CephStorage, networks, ctlplane, 0]}
196 ExternalIpSubnet: {get_attr: [ExternalPort, ip_subnet]}
197 InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
198 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
199 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
200 TenantIpSubnet: {get_attr: [TenantPort, ip_subnet]}
201 ManagementIpSubnet: {get_attr: [ManagementPort, ip_subnet]}
204 type: OS::TripleO::Network::Ports::NetIpMap
206 ControlPlaneIp: {get_attr: [CephStorage, networks, ctlplane, 0]}
207 ExternalIp: {get_attr: [ExternalPort, ip_address]}
208 ExternalIpSubnet: {get_attr: [ExternalPort, ip_subnet]}
209 ExternalIpUri: {get_attr: [ExternalPort, ip_address_uri]}
210 InternalApiIp: {get_attr: [InternalApiPort, ip_address]}
211 InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
212 InternalApiIpUri: {get_attr: [InternalApiPort, ip_address_uri]}
213 StorageIp: {get_attr: [StoragePort, ip_address]}
214 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
215 StorageIpUri: {get_attr: [StoragePort, ip_address_uri]}
216 StorageMgmtIp: {get_attr: [StorageMgmtPort, ip_address]}
217 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
218 StorageMgmtIpUri: {get_attr: [StorageMgmtPort, ip_address_uri]}
219 TenantIp: {get_attr: [TenantPort, ip_address]}
220 TenantIpSubnet: {get_attr: [TenantPort, ip_subnet]}
221 TenantIpUri: {get_attr: [TenantPort, ip_address_uri]}
222 ManagementIp: {get_attr: [ManagementPort, ip_address]}
223 ManagementIpSubnet: {get_attr: [ManagementPort, ip_subnet]}
224 ManagementIpUri: {get_attr: [ManagementPort, ip_address_uri]}
227 type: OS::TripleO::SoftwareDeployment
229 name: NetworkDeployment
230 config: {get_resource: NetworkConfig}
231 server: {get_resource: CephStorage}
232 actions: {get_param: NetworkDeploymentActions}
234 CephStorageDeployment:
235 type: OS::Heat::StructuredDeployment
236 depends_on: NetworkDeployment
238 name: CephStorageDeployment
239 config: {get_resource: CephStorageConfig}
240 server: {get_resource: CephStorage}
242 enable_package_upgrade: {get_attr: [UpdateDeployment, update_managed_packages]}
245 type: OS::Heat::StructuredConfig
251 - heat_config_%{::deploy_config_name}
257 - bootstrap_node # provided by allNodesConfig
258 - all_nodes # provided by allNodesConfig
259 - vip_data # provided by allNodesConfig
261 merge_behavior: deeper
264 service_names: {get_param: ServiceNames}
265 sensu::subscriptions: {get_param: MonitoringSubscriptions}
268 - {get_param: ServiceConfigSettings}
269 - values: {get_attr: [NetIpMap, net_ip_map]}
270 ceph_extraconfig: {get_param: CephStorageExtraConfig}
271 extraconfig: {get_param: ExtraConfig}
273 tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
275 # Resource for site-specific injection of root certificate
277 depends_on: CephStorageDeployment
278 type: OS::TripleO::NodeTLSCAData
280 server: {get_resource: CephStorage}
282 # Hook for site-specific additional pre-deployment config, e.g extra hieradata
283 CephStorageExtraConfigPre:
284 depends_on: CephStorageDeployment
285 type: OS::TripleO::CephStorageExtraConfigPre
287 server: {get_resource: CephStorage}
289 # Hook for site-specific additional pre-deployment config,
290 # applying to all nodes, e.g node registration/unregistration
292 depends_on: [CephStorageExtraConfigPre, NodeTLSCAData]
293 type: OS::TripleO::NodeExtraConfig
295 server: {get_resource: CephStorage}
298 type: OS::TripleO::Tasks::PackageUpdate
301 type: OS::Heat::SoftwareDeployment
303 config: {get_resource: UpdateConfig}
304 server: {get_resource: CephStorage}
307 get_param: UpdateIdentifier
311 description: IP address of the server in the ctlplane network
312 value: {get_attr: [CephStorage, networks, ctlplane, 0]}
314 description: Hostname of the server
315 value: {get_attr: [CephStorage, name]}
317 description: Mapping of network names to hostnames
322 - - {get_attr: [CephStorage, name]}
324 - {get_param: CloudDomain}
328 - - {get_attr: [CephStorage, name]}
330 - {get_param: CloudDomain}
334 - - {get_attr: [CephStorage, name]}
336 - {get_param: CloudDomain}
340 - - {get_attr: [CephStorage, name]}
342 - {get_param: CloudDomain}
346 - - {get_attr: [CephStorage, name]}
348 - {get_param: CloudDomain}
352 - - {get_attr: [CephStorage, name]}
354 - {get_param: CloudDomain}
358 - - {get_attr: [CephStorage, name]}
360 - {get_param: CloudDomain}
365 PRIMARYIP PRIMARYHOST.DOMAIN PRIMARYHOST
366 EXTERNALIP EXTERNALHOST.DOMAIN EXTERNALHOST
367 INTERNAL_APIIP INTERNAL_APIHOST.DOMAIN INTERNAL_APIHOST
368 STORAGEIP STORAGEHOST.DOMAIN STORAGEHOST
369 STORAGE_MGMTIP STORAGE_MGMTHOST.DOMAIN STORAGE_MGMTHOST
370 TENANTIP TENANTHOST.DOMAIN TENANTHOST
371 MANAGEMENTIP MANAGEMENTHOST.DOMAIN MANAGEMENTHOST
372 CTLPLANEIP CTLPLANEHOST.DOMAIN CTLPLANEHOST
374 PRIMARYIP: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, CephStorageHostnameResolveNetwork]}]}
375 DOMAIN: {get_param: CloudDomain}
376 PRIMARYHOST: {get_attr: [CephStorage, name]}
377 EXTERNALIP: {get_attr: [ExternalPort, ip_address]}
381 - - {get_attr: [CephStorage, name]}
383 INTERNAL_APIIP: {get_attr: [InternalApiPort, ip_address]}
387 - - {get_attr: [CephStorage, name]}
389 STORAGEIP: {get_attr: [StoragePort, ip_address]}
393 - - {get_attr: [CephStorage, name]}
395 STORAGE_MGMTIP: {get_attr: [StorageMgmtPort, ip_address]}
399 - - {get_attr: [CephStorage, name]}
401 TENANTIP: {get_attr: [TenantPort, ip_address]}
405 - - {get_attr: [CephStorage, name]}
407 MANAGEMENTIP: {get_attr: [ManagementPort, ip_address]}
411 - - {get_attr: [CephStorage, name]}
413 CTLPLANEIP: {get_attr: [CephStorage, networks, ctlplane, 0]}
417 - - {get_attr: [CephStorage, name]}
419 nova_server_resource:
420 description: Heat resource handle for the ceph storage server
422 {get_resource: CephStorage}
424 description: IP address of the server in the external network
425 value: {get_attr: [ExternalPort, ip_address]}
426 internal_api_ip_address:
427 description: IP address of the server in the internal_api network
428 value: {get_attr: [InternalApiPort, ip_address]}
430 description: IP address of the server in the storage network
431 value: {get_attr: [StoragePort, ip_address]}
432 storage_mgmt_ip_address:
433 description: IP address of the server in the storage_mgmt network
434 value: {get_attr: [StorageMgmtPort, ip_address]}
436 description: IP address of the server in the tenant network
437 value: {get_attr: [TenantPort, ip_address]}
438 management_ip_address:
439 description: IP address of the server in the management network
440 value: {get_attr: [ManagementPort, ip_address]}