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 DockerHeatApiConfigImage:
17 description: The container image to use for the heat_api config_volume
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
48 internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
53 type: ./containers-common.yaml
56 type: ../../puppet/services/heat-api.yaml
58 EndpointMap: {get_param: EndpointMap}
59 ServiceNetMap: {get_param: ServiceNetMap}
60 DefaultPasswords: {get_param: DefaultPasswords}
61 RoleName: {get_param: RoleName}
62 RoleParameters: {get_param: RoleParameters}
66 description: Role data for the Heat API role.
68 service_name: {get_attr: [HeatBase, role_data, service_name]}
71 - get_attr: [HeatBase, role_data, config_settings]
72 - apache::default_vhost: false
73 step_config: &step_config
74 get_attr: [HeatBase, role_data, step_config]
75 service_config_settings: {get_attr: [HeatBase, role_data, service_config_settings]}
76 # BEGIN DOCKER SETTINGS
78 config_volume: heat_api
79 puppet_tags: heat_config,file,concat,file_line
80 step_config: *step_config
84 - [ {get_param: DockerNamespace}, {get_param: DockerHeatApiConfigImage} ]
86 /var/lib/kolla/config_files/heat_api.json:
87 command: /usr/sbin/httpd -DFOREGROUND
89 - source: "/var/lib/kolla/config_files/src/*"
92 preserve_properties: true
103 - [ {get_param: DockerNamespace}, {get_param: DockerHeatApiImage} ]
107 # NOTE(mandre) kolla image changes the user to 'heat', we need it
108 # to be root to run httpd
112 - {get_attr: [ContainersCommon, volumes]}
114 - /var/lib/kolla/config_files/heat_api.json:/var/lib/kolla/config_files/config.json:ro
115 - /var/lib/config-data/puppet-generated/heat_api/:/var/lib/kolla/config_files/src:ro
116 - /var/log/containers/heat:/var/log/heat
119 - internal_tls_enabled
120 - /etc/pki/tls/certs/httpd:/etc/pki/tls/certs/httpd:ro
124 - internal_tls_enabled
125 - /etc/pki/tls/private/httpd:/etc/pki/tls/private/httpd:ro
128 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
130 - name: create persistent logs directory
132 path: /var/log/containers/heat
135 - name: Stop and disable heat_api service
137 service: name=httpd state=stopped enabled=no
139 get_attr: [HeatBase, role_data, metadata_settings]