2017-09-04 08:31:57 +02:00
|
|
|
heat_template_version: queens
|
2016-05-05 07:55:09 -04:00
|
|
|
|
|
|
|
description: >
|
|
|
|
Openstack Heat Engine service configured with Puppet
|
|
|
|
|
|
|
|
parameters:
|
2017-06-22 17:25:03 +02:00
|
|
|
ServiceData:
|
|
|
|
default: {}
|
|
|
|
description: Dictionary packing service data
|
|
|
|
type: json
|
2016-08-11 23:07:46 +02:00
|
|
|
ServiceNetMap:
|
|
|
|
default: {}
|
|
|
|
description: Mapping of service_name -> network name. Typically set
|
|
|
|
via parameter_defaults in the resource registry. This
|
|
|
|
mapping overrides those in ServiceNetMapDefaults.
|
|
|
|
type: json
|
2016-08-17 09:26:05 -04:00
|
|
|
DefaultPasswords:
|
|
|
|
default: {}
|
|
|
|
type: json
|
2017-02-24 06:27:58 -05:00
|
|
|
RoleName:
|
|
|
|
default: ''
|
|
|
|
description: Role name on which the service is applied
|
|
|
|
type: string
|
|
|
|
RoleParameters:
|
|
|
|
default: {}
|
|
|
|
description: Parameters specific to the role
|
|
|
|
type: json
|
2016-05-05 07:55:09 -04:00
|
|
|
EndpointMap:
|
|
|
|
default: {}
|
|
|
|
description: Mapping of service endpoint -> protocol. Typically set
|
|
|
|
via parameter_defaults in the resource registry.
|
|
|
|
type: json
|
|
|
|
HeatEnableDBPurge:
|
|
|
|
type: boolean
|
|
|
|
default: true
|
|
|
|
description: |
|
|
|
|
Whether to create cron job for purging soft deleted rows in the Heat database.
|
|
|
|
HeatWorkers:
|
|
|
|
default: 0
|
|
|
|
description: Number of workers for Heat service.
|
|
|
|
type: number
|
|
|
|
HeatPassword:
|
|
|
|
description: The password for the Heat service and db account, used by the Heat services.
|
|
|
|
type: string
|
|
|
|
hidden: true
|
|
|
|
HeatStackDomainAdminPassword:
|
|
|
|
description: Password for heat_stack_domain_admin user.
|
|
|
|
type: string
|
|
|
|
hidden: true
|
2016-08-24 14:02:13 -04:00
|
|
|
HeatAuthEncryptionKey:
|
|
|
|
description: Auth encryption key for heat-engine
|
|
|
|
type: string
|
|
|
|
hidden: true
|
|
|
|
default: ''
|
2016-06-09 15:39:22 +02:00
|
|
|
MonitoringSubscriptionHeatEngine:
|
|
|
|
default: 'overcloud-heat-engine'
|
|
|
|
type: string
|
2016-08-09 16:20:18 -04:00
|
|
|
HeatEngineLoggingSource:
|
|
|
|
type: json
|
|
|
|
default:
|
|
|
|
tag: openstack.heat.engine
|
|
|
|
path: /var/log/heat/heat-engine.log
|
2017-01-04 09:47:56 -05:00
|
|
|
HeatConvergenceEngine:
|
|
|
|
type: boolean
|
|
|
|
default: true
|
|
|
|
description: Enables the heat engine with the convergence architecture.
|
|
|
|
HeatMaxResourcesPerStack:
|
|
|
|
type: number
|
|
|
|
default: 1000
|
|
|
|
description: Maximum resources allowed per top-level stack. -1 stands for unlimited.
|
|
|
|
|
2017-07-06 16:58:38 -04:00
|
|
|
conditions:
|
|
|
|
heat_workers_unset: {equals : [{get_param: HeatWorkers}, 0]}
|
2016-05-05 07:55:09 -04:00
|
|
|
|
|
|
|
resources:
|
|
|
|
HeatBase:
|
|
|
|
type: ./heat-base.yaml
|
2016-08-11 23:07:46 +02:00
|
|
|
properties:
|
2017-06-22 17:25:03 +02:00
|
|
|
ServiceData: {get_param: ServiceData}
|
2016-08-11 23:07:46 +02:00
|
|
|
ServiceNetMap: {get_param: ServiceNetMap}
|
2016-08-17 09:26:05 -04:00
|
|
|
DefaultPasswords: {get_param: DefaultPasswords}
|
2016-08-11 23:07:46 +02:00
|
|
|
EndpointMap: {get_param: EndpointMap}
|
2017-02-24 06:27:58 -05:00
|
|
|
RoleName: {get_param: RoleName}
|
|
|
|
RoleParameters: {get_param: RoleParameters}
|
2016-05-05 07:55:09 -04:00
|
|
|
|
|
|
|
outputs:
|
|
|
|
role_data:
|
|
|
|
description: Role data for the Heat Engine role.
|
|
|
|
value:
|
2016-07-28 10:30:10 +01:00
|
|
|
service_name: heat_engine
|
2016-06-09 15:39:22 +02:00
|
|
|
monitoring_subscription: {get_param: MonitoringSubscriptionHeatEngine}
|
2016-08-09 16:20:18 -04:00
|
|
|
logging_source: {get_param: HeatEngineLoggingSource}
|
|
|
|
logging_groups:
|
|
|
|
- heat
|
2016-05-05 07:55:09 -04:00
|
|
|
config_settings:
|
|
|
|
map_merge:
|
|
|
|
- get_attr: [HeatBase, role_data, config_settings]
|
2017-07-06 16:58:38 -04:00
|
|
|
- heat::engine::configure_delegated_roles: false
|
2016-07-13 11:29:43 -04:00
|
|
|
heat::engine::trusts_delegated_roles: []
|
2017-01-04 09:47:56 -05:00
|
|
|
heat::engine::max_nested_stack_depth: 6
|
|
|
|
heat::engine::max_resources_per_stack: {get_param: HeatMaxResourcesPerStack}
|
2017-01-04 09:41:02 -05:00
|
|
|
heat::engine::heat_metadata_server_url:
|
2017-05-05 14:43:11 -04:00
|
|
|
make_url:
|
|
|
|
scheme: {get_param: [EndpointMap, HeatCfnPublic, protocol]}
|
|
|
|
host: {get_param: [EndpointMap, HeatCfnPublic, host]}
|
|
|
|
port: {get_param: [EndpointMap, HeatCfnPublic, port]}
|
2017-01-04 09:41:02 -05:00
|
|
|
heat::engine::heat_waitcondition_server_url:
|
2017-05-05 14:43:11 -04:00
|
|
|
make_url:
|
|
|
|
scheme: {get_param: [EndpointMap, HeatCfnPublic, protocol]}
|
|
|
|
host: {get_param: [EndpointMap, HeatCfnPublic, host]}
|
|
|
|
port: {get_param: [EndpointMap, HeatCfnPublic, port]}
|
|
|
|
path: /v1/waitcondition
|
2017-01-04 09:47:56 -05:00
|
|
|
heat::engine::convergence_engine: {get_param: HeatConvergenceEngine}
|
2016-05-05 07:55:09 -04:00
|
|
|
tripleo::profile::base::heat::manage_db_purge: {get_param: HeatEnableDBPurge}
|
2016-05-19 00:13:11 +02:00
|
|
|
heat::database_connection:
|
2017-05-05 14:43:11 -04:00
|
|
|
make_url:
|
|
|
|
scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
|
|
|
|
username: heat
|
|
|
|
password: {get_param: HeatPassword}
|
|
|
|
host: {get_param: [EndpointMap, MysqlInternal, host]}
|
|
|
|
path: /heat
|
|
|
|
query:
|
|
|
|
read_default_file: /etc/my.cnf.d/tripleo.cnf
|
|
|
|
read_default_group: tripleo
|
2017-03-31 14:14:01 +03:00
|
|
|
heat::keystone_ec2_uri:
|
|
|
|
list_join:
|
|
|
|
- ''
|
|
|
|
- - {get_param: [EndpointMap, KeystoneV3Internal, uri]}
|
|
|
|
- '/ec2tokens'
|
2016-05-05 07:55:09 -04:00
|
|
|
heat::keystone::domain::domain_password: {get_param: HeatStackDomainAdminPassword}
|
2016-08-24 14:02:13 -04:00
|
|
|
heat::engine::auth_encryption_key:
|
|
|
|
yaql:
|
|
|
|
expression: $.data.passwords.where($ != '').first()
|
|
|
|
data:
|
|
|
|
passwords:
|
|
|
|
- {get_param: HeatAuthEncryptionKey}
|
|
|
|
- {get_param: [DefaultPasswords, heat_auth_encryption_key]}
|
2017-07-06 16:58:38 -04:00
|
|
|
-
|
|
|
|
if:
|
|
|
|
- heat_workers_unset
|
|
|
|
- {}
|
|
|
|
- heat::engine::num_engine_workers: {get_param: HeatWorkers}
|
2016-05-05 07:55:09 -04:00
|
|
|
step_config: |
|
|
|
|
include ::tripleo::profile::base::heat::engine
|
2016-09-26 13:52:46 -04:00
|
|
|
|
|
|
|
service_config_settings:
|
|
|
|
mysql:
|
|
|
|
heat::db::mysql::password: {get_param: HeatPassword}
|
|
|
|
heat::db::mysql::user: heat
|
|
|
|
heat::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
|
|
|
|
heat::db::mysql::dbname: heat
|
|
|
|
heat::db::mysql::allowed_hosts:
|
|
|
|
- '%'
|
|
|
|
- "%{hiera('mysql_bind_host')}"
|
2016-10-13 19:00:09 +01:00
|
|
|
keystone:
|
|
|
|
# This is needed because the keystone profile handles creating the domain
|
2016-11-16 08:32:26 +02:00
|
|
|
tripleo::profile::base::keystone::heat_admin_password: {get_param: HeatStackDomainAdminPassword}
|
2016-12-01 10:04:09 +00:00
|
|
|
upgrade_tasks:
|
2017-02-27 13:04:08 -05:00
|
|
|
- name: Check if heat_engine is deployed
|
|
|
|
command: systemctl is-enabled openstack-heat-engine
|
|
|
|
tags: common
|
|
|
|
ignore_errors: True
|
|
|
|
register: heat_engine_enabled
|
2016-12-23 16:07:44 +02:00
|
|
|
- name: "PreUpgrade step0,validation: Check service openstack-heat-engine is running"
|
2017-02-21 16:08:27 +02:00
|
|
|
shell: /usr/bin/systemctl show 'openstack-heat-engine' --property ActiveState | grep '\bactive\b'
|
2017-02-27 13:04:08 -05:00
|
|
|
when: heat_engine_enabled.rc == 0
|
2016-12-23 16:07:44 +02:00
|
|
|
tags: step0,validation
|
2016-12-01 10:04:09 +00:00
|
|
|
- name: Stop heat_engine service
|
2017-02-24 22:31:29 +01:00
|
|
|
tags: step1
|
2017-02-27 13:04:08 -05:00
|
|
|
when: heat_engine_enabled.rc == 0
|
2016-12-01 10:04:09 +00:00
|
|
|
service: name=openstack-heat-engine state=stopped
|