1 heat_template_version: pike
4 OpenStack containerized Heat Engine service
10 DockerHeatConfigImage:
11 description: The container image to use for the heat config_volume
15 description: Mapping of service endpoint -> protocol. Typically set
16 via parameter_defaults in the resource registry.
20 description: Dictionary packing service data
24 description: Mapping of service_name -> network name. Typically set
25 via parameter_defaults in the resource registry. This
26 mapping overrides those in ServiceNetMapDefaults.
33 description: Role name on which the service is applied
37 description: Parameters specific to the role
44 type: ./containers-common.yaml
47 type: ../../puppet/services/heat-engine.yaml
49 EndpointMap: {get_param: EndpointMap}
50 ServiceData: {get_param: ServiceData}
51 ServiceNetMap: {get_param: ServiceNetMap}
52 DefaultPasswords: {get_param: DefaultPasswords}
53 RoleName: {get_param: RoleName}
54 RoleParameters: {get_param: RoleParameters}
58 description: Role data for the Heat Engine role.
60 service_name: {get_attr: [HeatBase, role_data, service_name]}
63 - get_attr: [HeatBase, role_data, config_settings]
64 - apache::default_vhost: false
65 step_config: &step_config
66 get_attr: [HeatBase, role_data, step_config]
67 service_config_settings: {get_attr: [HeatBase, role_data, service_config_settings]}
68 # BEGIN DOCKER SETTINGS
71 puppet_tags: heat_config,file,concat,file_line
72 step_config: *step_config
73 config_image: {get_param: DockerHeatConfigImage}
75 /var/lib/kolla/config_files/heat_engine.json:
76 command: /usr/bin/heat-engine --config-file /usr/share/heat/heat-dist.conf --config-file /etc/heat/heat.conf
78 - source: "/var/lib/kolla/config_files/src/*"
81 preserve_properties: true
87 # db sync runs before permissions set by kolla_config
90 image: &heat_engine_image {get_param: DockerHeatEngineImage}
93 - /var/log/containers/heat:/var/log/heat
94 command: ['/bin/bash', '-c', 'chown -R heat:heat /var/log/heat']
97 image: *heat_engine_image
104 - {get_attr: [ContainersCommon, volumes]}
106 - /var/lib/config-data/heat/etc/heat/:/etc/heat/:ro
107 - /var/log/containers/heat:/var/log/heat
108 command: "/usr/bin/bootstrap_host_exec heat_engine su heat -s /bin/bash -c 'heat-manage db_sync'"
111 image: *heat_engine_image
117 - {get_attr: [ContainersCommon, volumes]}
119 - /var/lib/kolla/config_files/heat_engine.json:/var/lib/kolla/config_files/config.json:ro
120 - /var/lib/config-data/puppet-generated/heat/:/var/lib/kolla/config_files/src:ro
121 - /var/log/containers/heat:/var/log/heat
123 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
125 - name: create persistent logs directory
127 path: /var/log/containers/heat
130 - name: Stop and disable heat_engine service
132 service: name=openstack-heat-engine state=stopped enabled=no