1 heat_template_version: pike
4 OpenStack containerized Heat Engine service
9 default: 'tripleoupstream'
11 DockerHeatEngineImage:
13 default: 'centos-binary-heat-engine:latest'
17 description: Mapping of service endpoint -> protocol. Typically set
18 via parameter_defaults in the resource registry.
22 description: Mapping of service_name -> network name. Typically set
23 via parameter_defaults in the resource registry. This
24 mapping overrides those in ServiceNetMapDefaults.
34 type: ./containers-common.yaml
37 type: ../../puppet/services/heat-engine.yaml
39 EndpointMap: {get_param: EndpointMap}
40 ServiceNetMap: {get_param: ServiceNetMap}
41 DefaultPasswords: {get_param: DefaultPasswords}
45 description: Role data for the Heat Engine role.
47 service_name: {get_attr: [HeatBase, role_data, service_name]}
50 - get_attr: [HeatBase, role_data, config_settings]
51 - apache::default_vhost: false
52 step_config: &step_config
53 get_attr: [HeatBase, role_data, step_config]
54 service_config_settings: {get_attr: [HeatBase, role_data, service_config_settings]}
55 # BEGIN DOCKER SETTINGS
58 puppet_tags: heat_config,file,concat,file_line
59 step_config: *step_config
60 config_image: &heat_engine_image
63 - [ {get_param: DockerNamespace}, {get_param: DockerHeatEngineImage} ]
65 /var/lib/kolla/config_files/heat_engine.json:
66 command: /usr/bin/heat-engine --config-file /usr/share/heat/heat-dist.conf --config-file /etc/heat/heat.conf
72 # db sync runs before permissions set by kolla_config
76 image: *heat_engine_image
79 - /var/log/containers/heat:/var/log/heat
80 command: ['/bin/bash', '-c', 'chown -R heat:heat /var/log/heat']
83 image: *heat_engine_image
89 - {get_attr: [ContainersCommon, volumes]}
91 - /var/lib/config-data/heat/etc/heat/:/etc/heat/:ro
92 - /var/log/containers/heat:/var/log/heat
93 command: ['heat-manage', 'db_sync']
96 image: *heat_engine_image
102 - {get_attr: [ContainersCommon, volumes]}
104 - /var/lib/kolla/config_files/heat_engine.json:/var/lib/kolla/config_files/config.json:ro
105 - /var/lib/config-data/heat/etc/heat/:/etc/heat/:ro
106 - /var/log/containers/heat:/var/log/heat
108 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
110 - name: create persistent logs directory
112 path: /var/log/containers/heat
115 - name: Stop and disable heat_engine service
117 service: name=openstack-heat-engine state=stopped enabled=no