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.
36 description: Role name on which the service is applied
40 description: Parameters specific to the role
47 internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
52 type: ./containers-common.yaml
55 type: ../../puppet/services/heat-api.yaml
57 EndpointMap: {get_param: EndpointMap}
58 ServiceNetMap: {get_param: ServiceNetMap}
59 DefaultPasswords: {get_param: DefaultPasswords}
60 RoleName: {get_param: RoleName}
61 RoleParameters: {get_param: RoleParameters}
65 description: Role data for the Heat API role.
67 service_name: {get_attr: [HeatBase, role_data, service_name]}
70 - get_attr: [HeatBase, role_data, config_settings]
71 - apache::default_vhost: false
72 step_config: &step_config
73 get_attr: [HeatBase, role_data, step_config]
74 service_config_settings: {get_attr: [HeatBase, role_data, service_config_settings]}
75 # BEGIN DOCKER SETTINGS
77 config_volume: heat_api
78 puppet_tags: heat_config,file,concat,file_line
79 step_config: *step_config
83 - [ {get_param: DockerNamespace}, {get_param: DockerHeatConfigImage} ]
85 /var/lib/kolla/config_files/heat_api.json:
86 command: /usr/sbin/httpd -DFOREGROUND
97 - [ {get_param: DockerNamespace}, {get_param: DockerHeatApiImage} ]
101 # NOTE(mandre) kolla image changes the user to 'heat', we need it
102 # to be root to run httpd
106 - {get_attr: [ContainersCommon, volumes]}
108 - /var/lib/kolla/config_files/heat_api.json:/var/lib/kolla/config_files/config.json:ro
109 - /var/lib/config-data/heat_api/etc/heat/:/etc/heat/:ro
110 - /var/lib/config-data/heat_api/etc/httpd/:/etc/httpd/:ro
111 - /var/lib/config-data/heat_api/var/www/:/var/www/:ro
112 - /var/log/containers/heat:/var/log/heat
115 - internal_tls_enabled
116 - /etc/pki/tls/certs/httpd:/etc/pki/tls/certs/httpd:ro
120 - internal_tls_enabled
121 - /etc/pki/tls/private/httpd:/etc/pki/tls/private/httpd:ro
124 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
126 - name: create persistent logs directory
128 path: /var/log/containers/heat
131 - name: Stop and disable heat_api service
133 service: name=httpd state=stopped enabled=no