2016-12-23 11:43:39 +00:00
|
|
|
heat_template_version: ocata
|
2016-05-05 07:55:09 -04:00
|
|
|
|
|
|
|
description: >
|
|
|
|
Openstack Heat Engine service configured with Puppet
|
|
|
|
|
|
|
|
parameters:
|
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
|
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.
|
|
|
|
|
2016-05-05 07:55:09 -04:00
|
|
|
|
|
|
|
resources:
|
|
|
|
HeatBase:
|
|
|
|
type: ./heat-base.yaml
|
2016-08-11 23:07:46 +02:00
|
|
|
properties:
|
|
|
|
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}
|
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]
|
|
|
|
- heat::engine::num_engine_workers: {get_param: HeatWorkers}
|
2016-07-13 11:29:43 -04:00
|
|
|
heat::engine::configure_delegated_roles: false
|
|
|
|
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:
|
|
|
|
list_join:
|
|
|
|
- ''
|
|
|
|
- - {get_param: [EndpointMap, HeatCfnPublic, protocol]}
|
|
|
|
- '://'
|
|
|
|
- {get_param: [EndpointMap, HeatCfnPublic, host]}
|
|
|
|
- ':'
|
|
|
|
- {get_param: [EndpointMap, HeatCfnPublic, port]}
|
|
|
|
heat::engine::heat_waitcondition_server_url:
|
|
|
|
list_join:
|
|
|
|
- ''
|
|
|
|
- - {get_param: [EndpointMap, HeatCfnPublic, protocol]}
|
|
|
|
- '://'
|
|
|
|
- {get_param: [EndpointMap, HeatCfnPublic, host]}
|
|
|
|
- ':'
|
|
|
|
- {get_param: [EndpointMap, HeatCfnPublic, port]}
|
|
|
|
- '/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:
|
2016-05-05 07:55:09 -04:00
|
|
|
list_join:
|
|
|
|
- ''
|
2016-05-19 00:13:11 +02:00
|
|
|
- - {get_param: [EndpointMap, MysqlInternal, protocol]}
|
|
|
|
- '://heat:'
|
2016-05-05 07:55:09 -04:00
|
|
|
- {get_param: HeatPassword}
|
|
|
|
- '@'
|
2016-05-19 00:13:11 +02:00
|
|
|
- {get_param: [EndpointMap, MysqlInternal, host]}
|
2016-05-05 07:55:09 -04:00
|
|
|
- '/heat'
|
2016-12-23 17:57:48 +01:00
|
|
|
- '?bind_address='
|
|
|
|
- "%{hiera('tripleo::profile::base::database::mysql::client_bind_address')}"
|
2016-05-05 07:55:09 -04:00
|
|
|
heat::keystone_ec2_uri: {get_param: [EndpointMap, KeystoneEC2, uri]}
|
|
|
|
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]}
|
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:
|
|
|
|
- name: Stop heat_engine service
|
|
|
|
tags: step2
|
|
|
|
service: name=openstack-heat-engine state=stopped
|
|
|
|
- name: Sync heat_engine DB
|
|
|
|
tags: step5
|
|
|
|
command: heat-manage --config-file /etc/heat/heat.conf db_sync
|