1 heat_template_version: pike
4 OpenStack hypervisor node configured via Puppet.
10 Additional hiera configuration to inject into the cluster. Note
11 that NovaComputeExtraConfig takes precedence over ExtraConfig.
13 OvercloudComputeFlavor:
14 description: Flavor for the nova compute node
18 - custom_constraint: nova.flavor
21 default: overcloud-full
23 - custom_constraint: glance.image
25 default: 'REBUILD_PRESERVE_EPHEMERAL'
26 description: What policy to use when reconstructing instances. REBUILD for rebuilds, REBUILD_PRESERVE_EPHEMERAL to preserve /mnt.
29 description: Name of an existing Nova key pair to enable SSH access to the instances
33 - custom_constraint: nova.keypair
34 NeutronPhysicalBridge:
36 description: An OVS bridge to create for accessing external networks.
38 NeutronPublicInterface:
40 description: A port to add to the NeutronPhysicalBridge.
45 NovaComputeExtraConfig:
48 NovaCompute specific configuration to inject into the cluster. Same
49 structure as ExtraConfig.
56 description: Mapping of service_name -> network name. Typically set
57 via parameter_defaults in the resource registry.
61 description: Mapping of service endpoint -> protocol. Typically set
62 via parameter_defaults in the resource registry.
68 Setting to a previously unused value during stack-update will trigger
69 package update on all nodes
72 default: '' # Defaults to Heat created hostname
76 description: Optional mapping to override hostnames
77 NetworkDeploymentActions:
78 type: comma_delimited_list
80 Heat action when to apply network configuration changes
82 SoftwareConfigTransport:
83 default: POLL_SERVER_CFN
85 How the server should receive the metadata required for software configuration.
88 - allowed_values: [POLL_SERVER_CFN, POLL_SERVER_HEAT, POLL_TEMP_URL, ZAQAR_MESSAGE]
90 default: 'localdomain'
93 The DNS domain used for the hosts. This should match the dhcp_domain
94 configured in the Undercloud neutron. Defaults to localdomain.
95 NovaComputeServerMetadata:
98 Extra properties or metadata passed to Nova for the created nodes in
99 the overcloud. It's accessible via the Nova metadata API. This option is
100 role-specific and is merged with the values given to the ServerMetadata
106 Extra properties or metadata passed to Nova for the created nodes in
107 the overcloud. It's accessible via the Nova metadata API. This applies to
108 all roles and is merged with a role-specific metadata parameter.
110 NovaComputeSchedulerHints:
112 description: Optional scheduler hints to pass to nova
114 ServiceConfigSettings:
118 type: comma_delimited_list
120 MonitoringSubscriptions:
121 type: comma_delimited_list
123 ServiceMetadataSettings:
128 description: Command which will be run whenever configuration data changes
129 default: os-refresh-config --timeout 14400
134 Maximum amount of time to possibly to delay configuation collection
135 polling. Defaults to 30 seconds. Set to 0 to disable it which will cause
136 the configuration collection to occur as soon as the collection process
137 starts. This setting is used to prevent the configuration collection
138 processes from polling all at the exact same time.
142 Command or script snippet to run on all overcloud nodes to
143 initialize the upgrade process. E.g. a repository switch.
145 UpgradeInitCommonCommand:
148 Common commands required by the upgrades process. This should not
149 normally be modified by the operator and is set and unset in the
150 major-upgrade-composable-steps.yaml and major-upgrade-converge.yaml
153 DeploymentServerBlacklistDict:
157 Map of server hostnames to blacklist from any triggered
158 deployments. If the value is 1, the server will be blacklisted. This
159 parameter is generated from the parent template.
162 description: Role Specific Parameters
166 server_not_blacklisted:
169 - {get_param: [DeploymentServerBlacklistDict, {get_param: Hostname}]}
175 type: OS::TripleO::ComputeServer
178 command: {get_param: ConfigCommand}
179 splay: {get_param: ConfigCollectSplay}
181 image: {get_param: NovaImage}
183 get_param: ImageUpdatePolicy
184 flavor: {get_param: OvercloudComputeFlavor}
185 key_name: {get_param: KeyName}
188 user_data_format: SOFTWARE_CONFIG
189 user_data: {get_resource: UserData}
192 template: {get_param: Hostname}
193 params: {get_param: HostnameMap}
194 software_config_transport: {get_param: SoftwareConfigTransport}
197 - {get_param: ServerMetadata}
198 - {get_param: NovaComputeServerMetadata}
199 - {get_param: ServiceMetadataSettings}
200 scheduler_hints: {get_param: NovaComputeSchedulerHints}
202 # Combine the NodeAdminUserData and NodeUserData mime archives
204 type: OS::Heat::MultipartMime
207 - config: {get_resource: NodeAdminUserData}
209 - config: {get_resource: NodeUserData}
211 - config: {get_resource: RoleUserData}
214 # Creates the "heat-admin" user if configured via the environment
215 # Should return a OS::Heat::MultipartMime reference via OS::stack_id
217 type: OS::TripleO::NodeAdminUserData
219 # For optional operator additional userdata
220 # Should return a OS::Heat::MultipartMime reference via OS::stack_id
222 type: OS::TripleO::NodeUserData
224 # For optional operator role-specific userdata
225 # Should return a OS::Heat::MultipartMime reference via OS::stack_id
227 type: OS::TripleO::Compute::NodeUserData
230 type: OS::TripleO::Compute::Ports::ExternalPort
232 ControlPlaneIP: {get_attr: [NovaCompute, networks, ctlplane, 0]}
233 IPPool: {get_param: NovaComputeIPs}
234 NodeIndex: {get_param: NodeIndex}
237 type: OS::TripleO::Compute::Ports::InternalApiPort
239 ControlPlaneIP: {get_attr: [NovaCompute, networks, ctlplane, 0]}
240 IPPool: {get_param: NovaComputeIPs}
241 NodeIndex: {get_param: NodeIndex}
244 type: OS::TripleO::Compute::Ports::StoragePort
246 ControlPlaneIP: {get_attr: [NovaCompute, networks, ctlplane, 0]}
247 IPPool: {get_param: NovaComputeIPs}
248 NodeIndex: {get_param: NodeIndex}
251 type: OS::TripleO::Compute::Ports::StorageMgmtPort
253 ControlPlaneIP: {get_attr: [NovaCompute, networks, ctlplane, 0]}
254 IPPool: {get_param: NovaComputeIPs}
255 NodeIndex: {get_param: NodeIndex}
258 type: OS::TripleO::Compute::Ports::TenantPort
260 ControlPlaneIP: {get_attr: [NovaCompute, networks, ctlplane, 0]}
261 IPPool: {get_param: NovaComputeIPs}
262 NodeIndex: {get_param: NodeIndex}
265 type: OS::TripleO::Compute::Ports::ManagementPort
267 ControlPlaneIP: {get_attr: [NovaCompute, networks, ctlplane, 0]}
268 IPPool: {get_param: NovaComputeIPs}
269 NodeIndex: {get_param: NodeIndex}
272 type: OS::TripleO::Network::Ports::NetIpMap
274 ControlPlaneIp: {get_attr: [NovaCompute, networks, ctlplane, 0]}
275 ExternalIp: {get_attr: [ExternalPort, ip_address]}
276 ExternalIpSubnet: {get_attr: [ExternalPort, ip_subnet]}
277 ExternalIpUri: {get_attr: [ExternalPort, ip_address_uri]}
278 InternalApiIp: {get_attr: [InternalApiPort, ip_address]}
279 InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
280 InternalApiIpUri: {get_attr: [InternalApiPort, ip_address_uri]}
281 StorageIp: {get_attr: [StoragePort, ip_address]}
282 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
283 StorageIpUri: {get_attr: [StoragePort, ip_address_uri]}
284 StorageMgmtIp: {get_attr: [StorageMgmtPort, ip_address]}
285 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
286 StorageMgmtIpUri: {get_attr: [StorageMgmtPort, ip_address_uri]}
287 TenantIp: {get_attr: [TenantPort, ip_address]}
288 TenantIpSubnet: {get_attr: [TenantPort, ip_subnet]}
289 TenantIpUri: {get_attr: [TenantPort, ip_address_uri]}
290 ManagementIp: {get_attr: [ManagementPort, ip_address]}
291 ManagementIpSubnet: {get_attr: [ManagementPort, ip_subnet]}
292 ManagementIpUri: {get_attr: [ManagementPort, ip_address_uri]}
295 type: OS::Heat::Value
303 - - {get_attr: [NovaCompute, name]}
305 - {get_param: CloudDomain}
309 - - {get_attr: [NovaCompute, name]}
315 - - {get_attr: [NovaCompute, name]}
317 - {get_param: CloudDomain}
321 - - {get_attr: [NovaCompute, name]}
327 - - {get_attr: [NovaCompute, name]}
329 - {get_param: CloudDomain}
333 - - {get_attr: [NovaCompute, name]}
339 - - {get_attr: [NovaCompute, name]}
341 - {get_param: CloudDomain}
345 - - {get_attr: [NovaCompute, name]}
351 - - {get_attr: [NovaCompute, name]}
353 - {get_param: CloudDomain}
357 - - {get_attr: [NovaCompute, name]}
363 - - {get_attr: [NovaCompute, name]}
365 - {get_param: CloudDomain}
369 - - {get_attr: [NovaCompute, name]}
375 - - {get_attr: [NovaCompute, name]}
377 - {get_param: CloudDomain}
381 - - {get_attr: [NovaCompute, name]}
385 type: OS::TripleO::Compute::PreNetworkConfig
387 server: {get_resource: NovaCompute}
388 RoleParameters: {get_param: RoleParameters}
391 type: OS::TripleO::Compute::Net::SoftwareConfig
393 ControlPlaneIp: {get_attr: [NovaCompute, networks, ctlplane, 0]}
394 ExternalIpSubnet: {get_attr: [ExternalPort, ip_subnet]}
395 InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
396 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
397 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
398 TenantIpSubnet: {get_attr: [TenantPort, ip_subnet]}
399 ManagementIpSubnet: {get_attr: [ManagementPort, ip_subnet]}
402 type: OS::TripleO::SoftwareDeployment
403 depends_on: PreNetworkConfig
405 name: NetworkDeployment
408 - server_not_blacklisted
409 - {get_param: NetworkDeploymentActions}
411 config: {get_resource: NetworkConfig}
412 server: {get_resource: NovaCompute}
414 bridge_name: {get_param: NeutronPhysicalBridge}
415 interface_name: {get_param: NeutronPublicInterface}
417 NovaComputeUpgradeInitConfig:
418 type: OS::Heat::SoftwareConfig
424 - - "#!/bin/bash\n\n"
425 - "if [[ -f /etc/resolv.conf.save ]] ; then rm /etc/resolv.conf.save; fi\n\n"
426 - get_param: UpgradeInitCommand
427 - get_param: UpgradeInitCommonCommand
429 # Note we may be able to make this conditional on UpgradeInitCommandNotEmpty
430 # but https://bugs.launchpad.net/heat/+bug/1649900 needs fixing first
431 NovaComputeUpgradeInitDeployment:
432 type: OS::Heat::SoftwareDeployment
433 depends_on: NetworkDeployment
435 name: NovaComputeUpgradeInitDeployment
438 - server_not_blacklisted
439 - ['CREATE', 'UPDATE']
441 server: {get_resource: NovaCompute}
442 config: {get_resource: NovaComputeUpgradeInitConfig}
445 type: OS::Heat::StructuredConfig
451 - heat_config_%{::deploy_config_name}
453 - compute_extraconfig
458 - bootstrap_node # provided by allNodesConfig
459 - all_nodes # provided by allNodesConfig
460 - vip_data # provided by allNodesConfig
462 - neutron_bigswitch_data # Optionally provided by ComputeExtraConfigPre
463 - cisco_n1kv_data # Optionally provided by ComputeExtraConfigPre
464 - nova_nuage_data # Optionally provided by ComputeExtraConfigPre
465 - midonet_data # Optionally provided by AllNodesExtraConfig
466 - neutron_opencontrail_data # Optionally provided by ComputeExtraConfigPre
467 - cisco_aci_data # Optionally provided by ComputeExtraConfigPre
468 merge_behavior: deeper
471 service_names: {get_param: ServiceNames}
472 sensu::subscriptions: {get_param: MonitoringSubscriptions}
475 - {get_param: ServiceConfigSettings}
476 - values: {get_attr: [NetIpMap, net_ip_map]}
477 compute_extraconfig: {get_param: NovaComputeExtraConfig}
478 extraconfig: {get_param: ExtraConfig}
480 tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
481 fqdn_internal_api: {get_attr: [NetHostMap, value, internal_api, fqdn]}
482 fqdn_storage: {get_attr: [NetHostMap, value, storage, fqdn]}
483 fqdn_storage_mgmt: {get_attr: [NetHostMap, value, storage_mgmt, fqdn]}
484 fqdn_tenant: {get_attr: [NetHostMap, value, tenant, fqdn]}
485 fqdn_management: {get_attr: [NetHostMap, value, management, fqdn]}
486 fqdn_ctlplane: {get_attr: [NetHostMap, value, ctlplane, fqdn]}
488 NovaComputeDeployment:
489 type: OS::TripleO::SoftwareDeployment
490 depends_on: NovaComputeUpgradeInitDeployment
492 name: NovaComputeDeployment
495 - server_not_blacklisted
496 - ['CREATE', 'UPDATE']
498 config: {get_resource: NovaComputeConfig}
499 server: {get_resource: NovaCompute}
501 enable_package_upgrade: {get_attr: [UpdateDeployment, update_managed_packages]}
503 # Resource for site-specific injection of root certificate
505 depends_on: NovaComputeDeployment
506 type: OS::TripleO::NodeTLSCAData
508 server: {get_resource: NovaCompute}
510 # Hook for site-specific additional pre-deployment config, e.g extra hieradata
511 ComputeExtraConfigPre:
512 depends_on: NovaComputeDeployment
513 type: OS::TripleO::ComputeExtraConfigPre
515 server: {get_resource: NovaCompute}
517 # Hook for site-specific additional pre-deployment config,
518 # applying to all nodes, e.g node registration/unregistration
520 depends_on: [ComputeExtraConfigPre, NodeTLSCAData]
521 type: OS::TripleO::NodeExtraConfig
523 server: {get_resource: NovaCompute}
526 type: OS::TripleO::Tasks::PackageUpdate
529 type: OS::Heat::SoftwareDeployment
530 depends_on: NetworkDeployment
532 name: UpdateDeployment
535 - server_not_blacklisted
536 - ['CREATE', 'UPDATE']
538 config: {get_resource: UpdateConfig}
539 server: {get_resource: NovaCompute}
542 get_param: UpdateIdentifier
545 type: OS::TripleO::Ssh::HostPubKey
546 depends_on: NovaComputeDeployment
548 server: {get_resource: NovaCompute}
552 description: IP address of the server in the ctlplane network
553 value: {get_attr: [NovaCompute, networks, ctlplane, 0]}
555 description: IP address of the server in the external network
556 value: {get_attr: [ExternalPort, ip_address]}
557 internal_api_ip_address:
558 description: IP address of the server in the internal_api network
559 value: {get_attr: [InternalApiPort, ip_address]}
561 description: IP address of the server in the storage network
562 value: {get_attr: [StoragePort, ip_address]}
563 storage_mgmt_ip_address:
564 description: IP address of the server in the storage_mgmt network
565 value: {get_attr: [StorageMgmtPort, ip_address]}
567 description: IP address of the server in the tenant network
568 value: {get_attr: [TenantPort, ip_address]}
569 management_ip_address:
570 description: IP address of the server in the management network
571 value: {get_attr: [ManagementPort, ip_address]}
573 description: Hostname of the server
574 value: {get_attr: [NovaCompute, name]}
576 description: Mapping of network names to hostnames
578 external: {get_attr: [NetHostMap, value, external, fqdn]}
579 internal_api: {get_attr: [NetHostMap, value, internal_api, fqdn]}
580 storage: {get_attr: [NetHostMap, value, storage, fqdn]}
581 storage_mgmt: {get_attr: [NetHostMap, value, storage_mgmt, fqdn]}
582 tenant: {get_attr: [NetHostMap, value, tenant, fqdn]}
583 management: {get_attr: [NetHostMap, value, management, fqdn]}
584 ctlplane: {get_attr: [NetHostMap, value, ctlplane, fqdn]}
587 Server's IP address and hostname in the /etc/hosts format
591 PRIMARYIP PRIMARYHOST.DOMAIN PRIMARYHOST
592 EXTERNALIP EXTERNALHOST.DOMAIN EXTERNALHOST
593 INTERNAL_APIIP INTERNAL_APIHOST.DOMAIN INTERNAL_APIHOST
594 STORAGEIP STORAGEHOST.DOMAIN STORAGEHOST
595 STORAGE_MGMTIP STORAGE_MGMTHOST.DOMAIN STORAGE_MGMTHOST
596 TENANTIP TENANTHOST.DOMAIN TENANTHOST
597 MANAGEMENTIP MANAGEMENTHOST.DOMAIN MANAGEMENTHOST
598 CTLPLANEIP CTLPLANEHOST.DOMAIN CTLPLANEHOST
600 PRIMARYIP: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, ComputeHostnameResolveNetwork]}]}
601 DOMAIN: {get_param: CloudDomain}
602 PRIMARYHOST: {get_attr: [NovaCompute, name]}
603 EXTERNALIP: {get_attr: [ExternalPort, ip_address]}
604 EXTERNALHOST: {get_attr: [NetHostMap, value, external, short]}
605 INTERNAL_APIIP: {get_attr: [InternalApiPort, ip_address]}
606 INTERNAL_APIHOST: {get_attr: [NetHostMap, value, internal_api, short]}
607 STORAGEIP: {get_attr: [StoragePort, ip_address]}
608 STORAGEHOST: {get_attr: [NetHostMap, value, storage, short]}
609 STORAGE_MGMTIP: {get_attr: [StorageMgmtPort, ip_address]}
610 STORAGE_MGMTHOST: {get_attr: [NetHostMap, value, storage_mgmt, short]}
611 TENANTIP: {get_attr: [TenantPort, ip_address]}
612 TENANTHOST: {get_attr: [NetHostMap, value, tenant, short]}
613 MANAGEMENTIP: {get_attr: [ManagementPort, ip_address]}
614 MANAGEMENTHOST: {get_attr: [NetHostMap, value, management, short]}
615 CTLPLANEIP: {get_attr: [NovaCompute, networks, ctlplane, 0]}
616 CTLPLANEHOST: {get_attr: [NetHostMap, value, ctlplane, short]}
618 description: Entry for ssh known hosts
621 template: "PRIMARYIP,PRIMARYHOST.DOMAIN,PRIMARYHOST,\
622 EXTERNALIP,EXTERNALHOST.DOMAIN,EXTERNALHOST,\
623 INTERNAL_APIIP,INTERNAL_APIHOST.DOMAIN,INTERNAL_APIHOST,\
624 STORAGEIP,STORAGEHOST.DOMAIN,STORAGEHOST,\
625 STORAGE_MGMTIP,STORAGE_MGMTHOST.DOMAIN,STORAGE_MGMTHOST,\
626 TENANTIP,TENANTHOST.DOMAIN,TENANTHOST,\
627 MANAGEMENTIP,MANAGEMENTHOST.DOMAIN,MANAGEMENTHOST,\
628 CTLPLANEIP,CTLPLANEHOST.DOMAIN,CTLPLANEHOST HOSTSSHPUBKEY"
630 PRIMARYIP: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, ComputeHostnameResolveNetwork]}]}
631 DOMAIN: {get_param: CloudDomain}
632 PRIMARYHOST: {get_attr: [NovaCompute, name]}
633 EXTERNALIP: {get_attr: [ExternalPort, ip_address]}
634 EXTERNALHOST: {get_attr: [NetHostMap, value, external, short]}
635 INTERNAL_APIIP: {get_attr: [InternalApiPort, ip_address]}
636 INTERNAL_APIHOST: {get_attr: [NetHostMap, value, internal_api, short]}
637 STORAGEIP: {get_attr: [StoragePort, ip_address]}
638 STORAGEHOST: {get_attr: [NetHostMap, value, storage, short]}
639 STORAGE_MGMTIP: {get_attr: [StorageMgmtPort, ip_address]}
640 STORAGE_MGMTHOST: {get_attr: [NetHostMap, value, storage_mgmt, short]}
641 TENANTIP: {get_attr: [TenantPort, ip_address]}
642 TENANTHOST: {get_attr: [NetHostMap, value, tenant, short]}
643 MANAGEMENTIP: {get_attr: [ManagementPort, ip_address]}
644 MANAGEMENTHOST: {get_attr: [NetHostMap, value, management, short]}
645 CTLPLANEIP: {get_attr: [NovaCompute, networks, ctlplane, 0]}
646 CTLPLANEHOST: {get_attr: [NetHostMap, value, ctlplane, short]}
647 HOSTSSHPUBKEY: {get_attr: [SshHostPubKey, ecdsa]}
648 nova_server_resource:
649 description: Heat resource handle for the Nova compute server
651 {get_resource: NovaCompute}
652 condition: server_not_blacklisted