1 heat_template_version: pike
4 OpenStack containerized Heat API service
9 default: 'tripleoupstream'
13 default: 'centos-binary-heat-api:latest'
15 # puppet needs the heat-wsgi-api binary from centos-binary-heat-api
16 DockerHeatConfigImage:
18 default: 'centos-binary-heat-api:latest'
22 description: Mapping of service endpoint -> protocol. Typically set
23 via parameter_defaults in the resource registry.
27 description: Mapping of service_name -> network name. Typically set
28 via parameter_defaults in the resource registry. This
29 mapping overrides those in ServiceNetMapDefaults.
39 type: ./containers-common.yaml
42 type: ../../puppet/services/heat-api.yaml
44 EndpointMap: {get_param: EndpointMap}
45 ServiceNetMap: {get_param: ServiceNetMap}
46 DefaultPasswords: {get_param: DefaultPasswords}
50 description: Role data for the Heat API role.
52 service_name: {get_attr: [HeatBase, role_data, service_name]}
55 - get_attr: [HeatBase, role_data, config_settings]
56 - apache::default_vhost: false
57 step_config: &step_config
58 get_attr: [HeatBase, role_data, step_config]
59 service_config_settings: {get_attr: [HeatBase, role_data, service_config_settings]}
60 # BEGIN DOCKER SETTINGS
62 config_volume: heat_api
63 puppet_tags: heat_config,file,concat,file_line
64 step_config: *step_config
68 - [ {get_param: DockerNamespace}, {get_param: DockerHeatConfigImage} ]
70 /var/lib/kolla/config_files/heat_api.json:
71 command: /usr/sbin/httpd -DFOREGROUND
82 - [ {get_param: DockerNamespace}, {get_param: DockerHeatApiImage} ]
86 # NOTE(mandre) kolla image changes the user to 'heat', we need it
87 # to be root to run httpd
91 - {get_attr: [ContainersCommon, volumes]}
93 - /var/lib/kolla/config_files/heat_api.json:/var/lib/kolla/config_files/config.json:ro
94 - /var/lib/config-data/heat_api/etc/heat/:/etc/heat/:ro
95 - /var/lib/config-data/heat_api/etc/httpd/:/etc/httpd/:ro
96 - /var/lib/config-data/heat_api/var/www/:/var/www/:ro
97 - /var/log/containers/heat:/var/log/heat
99 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
101 - name: create persistent logs directory
103 path: /var/log/containers/heat
106 - name: Stop and disable heat_api service
108 service: name=httpd state=stopped enabled=no