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.
31 description: Role name on which the service is applied
35 description: Parameters specific to the role
41 type: ./containers-common.yaml
44 type: ../../puppet/services/heat-engine.yaml
46 EndpointMap: {get_param: EndpointMap}
47 ServiceNetMap: {get_param: ServiceNetMap}
48 DefaultPasswords: {get_param: DefaultPasswords}
49 RoleName: {get_param: RoleName}
50 RoleParameters: {get_param: RoleParameters}
54 description: Role data for the Heat Engine role.
56 service_name: {get_attr: [HeatBase, role_data, service_name]}
59 - get_attr: [HeatBase, role_data, config_settings]
60 - apache::default_vhost: false
61 step_config: &step_config
62 get_attr: [HeatBase, role_data, step_config]
63 service_config_settings: {get_attr: [HeatBase, role_data, service_config_settings]}
64 # BEGIN DOCKER SETTINGS
67 puppet_tags: heat_config,file,concat,file_line
68 step_config: *step_config
69 config_image: &heat_engine_image
72 - [ {get_param: DockerNamespace}, {get_param: DockerHeatEngineImage} ]
74 /var/lib/kolla/config_files/heat_engine.json:
75 command: /usr/bin/heat-engine --config-file /usr/share/heat/heat-dist.conf --config-file /etc/heat/heat.conf
81 # db sync runs before permissions set by kolla_config
85 image: *heat_engine_image
88 - /var/log/containers/heat:/var/log/heat
89 command: ['/bin/bash', '-c', 'chown -R heat:heat /var/log/heat']
92 image: *heat_engine_image
98 - {get_attr: [ContainersCommon, volumes]}
100 - /var/lib/config-data/heat/etc/heat/:/etc/heat/:ro
101 - /var/log/containers/heat:/var/log/heat
102 command: ['heat-manage', 'db_sync']
105 image: *heat_engine_image
111 - {get_attr: [ContainersCommon, volumes]}
113 - /var/lib/kolla/config_files/heat_engine.json:/var/lib/kolla/config_files/config.json:ro
114 - /var/lib/config-data/heat/etc/heat/:/etc/heat/:ro
115 - /var/log/containers/heat:/var/log/heat
117 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
119 - name: create persistent logs directory
121 path: /var/log/containers/heat
124 - name: Stop and disable heat_engine service
126 service: name=openstack-heat-engine state=stopped enabled=no