1 heat_template_version: pike
4 OpenStack containerized Heat Engine service
9 default: 'tripleoupstream'
11 DockerHeatEngineImage:
13 default: 'centos-binary-heat-engine:latest'
15 DockerHeatConfigImage:
16 description: The container image to use for the heat config_volume
17 default: 'centos-binary-heat-api:latest'
21 description: Mapping of service endpoint -> protocol. Typically set
22 via parameter_defaults in the resource registry.
26 description: Mapping of service_name -> network name. Typically set
27 via parameter_defaults in the resource registry. This
28 mapping overrides those in ServiceNetMapDefaults.
35 description: Role name on which the service is applied
39 description: Parameters specific to the role
46 type: ./containers-common.yaml
49 type: ../../puppet/services/heat-engine.yaml
51 EndpointMap: {get_param: EndpointMap}
52 ServiceNetMap: {get_param: ServiceNetMap}
53 DefaultPasswords: {get_param: DefaultPasswords}
54 RoleName: {get_param: RoleName}
55 RoleParameters: {get_param: RoleParameters}
59 description: Role data for the Heat Engine role.
61 service_name: {get_attr: [HeatBase, role_data, service_name]}
64 - get_attr: [HeatBase, role_data, config_settings]
65 - apache::default_vhost: false
66 step_config: &step_config
67 get_attr: [HeatBase, role_data, step_config]
68 service_config_settings: {get_attr: [HeatBase, role_data, service_config_settings]}
69 # BEGIN DOCKER SETTINGS
72 puppet_tags: heat_config,file,concat,file_line
73 step_config: *step_config
77 - [ {get_param: DockerNamespace}, {get_param: DockerHeatConfigImage} ]
79 /var/lib/kolla/config_files/heat_engine.json:
80 command: /usr/bin/heat-engine --config-file /usr/share/heat/heat-dist.conf --config-file /etc/heat/heat.conf
82 - source: "/var/lib/kolla/config_files/src/*"
85 preserve_properties: true
91 # db sync runs before permissions set by kolla_config
94 image: &heat_engine_image
97 - [ {get_param: DockerNamespace}, {get_param: DockerHeatEngineImage} ]
100 - /var/log/containers/heat:/var/log/heat
101 command: ['/bin/bash', '-c', 'chown -R heat:heat /var/log/heat']
104 image: *heat_engine_image
111 - {get_attr: [ContainersCommon, volumes]}
113 - /var/lib/config-data/heat/etc/heat/:/etc/heat/:ro
114 - /var/log/containers/heat:/var/log/heat
115 command: "/usr/bin/bootstrap_host_exec heat_engine su heat -s /bin/bash -c 'heat-manage db_sync'"
118 image: *heat_engine_image
124 - {get_attr: [ContainersCommon, volumes]}
126 - /var/lib/kolla/config_files/heat_engine.json:/var/lib/kolla/config_files/config.json:ro
127 - /var/lib/config-data/puppet-generated/heat/:/var/lib/kolla/config_files/src:ro
128 - /var/log/containers/heat:/var/log/heat
130 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
132 - name: create persistent logs directory
134 path: /var/log/containers/heat
137 - name: Stop and disable heat_engine service
139 service: name=openstack-heat-engine state=stopped enabled=no