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
42 type: ./containers-common.yaml
45 type: ../../puppet/services/heat-engine.yaml
47 EndpointMap: {get_param: EndpointMap}
48 ServiceNetMap: {get_param: ServiceNetMap}
49 DefaultPasswords: {get_param: DefaultPasswords}
50 RoleName: {get_param: RoleName}
51 RoleParameters: {get_param: RoleParameters}
55 description: Role data for the Heat Engine role.
57 service_name: {get_attr: [HeatBase, role_data, service_name]}
60 - get_attr: [HeatBase, role_data, config_settings]
61 - apache::default_vhost: false
62 step_config: &step_config
63 get_attr: [HeatBase, role_data, step_config]
64 service_config_settings: {get_attr: [HeatBase, role_data, service_config_settings]}
65 # BEGIN DOCKER SETTINGS
68 puppet_tags: heat_config,file,concat,file_line
69 step_config: *step_config
70 config_image: &heat_engine_image
73 - [ {get_param: DockerNamespace}, {get_param: DockerHeatEngineImage} ]
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
82 # db sync runs before permissions set by kolla_config
86 image: *heat_engine_image
89 - /var/log/containers/heat:/var/log/heat
90 command: ['/bin/bash', '-c', 'chown -R heat:heat /var/log/heat']
93 image: *heat_engine_image
99 - {get_attr: [ContainersCommon, volumes]}
101 - /var/lib/config-data/heat/etc/heat/:/etc/heat/:ro
102 - /var/log/containers/heat:/var/log/heat
103 command: ['heat-manage', 'db_sync']
106 image: *heat_engine_image
112 - {get_attr: [ContainersCommon, volumes]}
114 - /var/lib/kolla/config_files/heat_engine.json:/var/lib/kolla/config_files/config.json:ro
115 - /var/lib/config-data/heat/etc/heat/:/etc/heat/:ro
116 - /var/log/containers/heat:/var/log/heat
118 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
120 - name: create persistent logs directory
122 path: /var/log/containers/heat
125 - name: Stop and disable heat_engine service
127 service: name=openstack-heat-engine state=stopped enabled=no