1 heat_template_version: pike
4 Openstack Heat Engine service configured with Puppet
9 description: Mapping of service_name -> network name. Typically set
10 via parameter_defaults in the resource registry. This
11 mapping overrides those in ServiceNetMapDefaults.
18 description: Mapping of service endpoint -> protocol. Typically set
19 via parameter_defaults in the resource registry.
25 Whether to create cron job for purging soft deleted rows in the Heat database.
28 description: Number of workers for Heat service.
31 description: The password for the Heat service and db account, used by the Heat services.
34 HeatStackDomainAdminPassword:
35 description: Password for heat_stack_domain_admin user.
38 HeatAuthEncryptionKey:
39 description: Auth encryption key for heat-engine
43 MonitoringSubscriptionHeatEngine:
44 default: 'overcloud-heat-engine'
46 HeatEngineLoggingSource:
49 tag: openstack.heat.engine
50 path: /var/log/heat/heat-engine.log
51 HeatConvergenceEngine:
54 description: Enables the heat engine with the convergence architecture.
55 HeatMaxResourcesPerStack:
58 description: Maximum resources allowed per top-level stack. -1 stands for unlimited.
63 type: ./heat-base.yaml
65 ServiceNetMap: {get_param: ServiceNetMap}
66 DefaultPasswords: {get_param: DefaultPasswords}
67 EndpointMap: {get_param: EndpointMap}
71 description: Role data for the Heat Engine role.
73 service_name: heat_engine
74 monitoring_subscription: {get_param: MonitoringSubscriptionHeatEngine}
75 logging_source: {get_param: HeatEngineLoggingSource}
80 - get_attr: [HeatBase, role_data, config_settings]
81 - heat::engine::num_engine_workers: {get_param: HeatWorkers}
82 heat::engine::configure_delegated_roles: false
83 heat::engine::trusts_delegated_roles: []
84 heat::engine::max_nested_stack_depth: 6
85 heat::engine::max_resources_per_stack: {get_param: HeatMaxResourcesPerStack}
86 heat::engine::heat_metadata_server_url:
88 scheme: {get_param: [EndpointMap, HeatCfnPublic, protocol]}
89 host: {get_param: [EndpointMap, HeatCfnPublic, host]}
90 port: {get_param: [EndpointMap, HeatCfnPublic, port]}
91 heat::engine::heat_waitcondition_server_url:
93 scheme: {get_param: [EndpointMap, HeatCfnPublic, protocol]}
94 host: {get_param: [EndpointMap, HeatCfnPublic, host]}
95 port: {get_param: [EndpointMap, HeatCfnPublic, port]}
96 path: /v1/waitcondition
97 heat::engine::convergence_engine: {get_param: HeatConvergenceEngine}
98 tripleo::profile::base::heat::manage_db_purge: {get_param: HeatEnableDBPurge}
99 heat::database_connection:
101 scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
103 password: {get_param: HeatPassword}
104 host: {get_param: [EndpointMap, MysqlInternal, host]}
107 read_default_file: /etc/my.cnf.d/tripleo.cnf
108 read_default_group: tripleo
109 heat::keystone_ec2_uri:
112 - - {get_param: [EndpointMap, KeystoneV3Internal, uri]}
114 heat::keystone::domain::domain_password: {get_param: HeatStackDomainAdminPassword}
115 heat::engine::auth_encryption_key:
117 expression: $.data.passwords.where($ != '').first()
120 - {get_param: HeatAuthEncryptionKey}
121 - {get_param: [DefaultPasswords, heat_auth_encryption_key]}
123 include ::tripleo::profile::base::heat::engine
125 service_config_settings:
127 heat::db::mysql::password: {get_param: HeatPassword}
128 heat::db::mysql::user: heat
129 heat::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
130 heat::db::mysql::dbname: heat
131 heat::db::mysql::allowed_hosts:
133 - "%{hiera('mysql_bind_host')}"
135 # This is needed because the keystone profile handles creating the domain
136 tripleo::profile::base::keystone::heat_admin_password: {get_param: HeatStackDomainAdminPassword}
138 - name: Check if heat_engine is deployed
139 command: systemctl is-enabled openstack-heat-engine
142 register: heat_engine_enabled
143 - name: "PreUpgrade step0,validation: Check service openstack-heat-engine is running"
144 shell: /usr/bin/systemctl show 'openstack-heat-engine' --property ActiveState | grep '\bactive\b'
145 when: heat_engine_enabled.rc == 0
146 tags: step0,validation
147 - name: Stop heat_engine service
149 when: heat_engine_enabled.rc == 0
150 service: name=openstack-heat-engine state=stopped