1 heat_template_version: pike
4 OpenStack containerized Heat API service
10 # puppet needs the heat-wsgi-api binary from centos-binary-heat-api
11 DockerHeatApiConfigImage:
12 description: The container image to use for the heat_api config_volume
16 description: Mapping of service endpoint -> protocol. Typically set
17 via parameter_defaults in the resource registry.
21 description: Mapping of service_name -> network name. Typically set
22 via parameter_defaults in the resource registry. This
23 mapping overrides those in ServiceNetMapDefaults.
30 description: Role name on which the service is applied
34 description: Parameters specific to the role
42 internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
47 type: ./containers-common.yaml
50 type: ../../puppet/services/heat-api.yaml
52 EndpointMap: {get_param: EndpointMap}
53 ServiceNetMap: {get_param: ServiceNetMap}
54 DefaultPasswords: {get_param: DefaultPasswords}
55 RoleName: {get_param: RoleName}
56 RoleParameters: {get_param: RoleParameters}
60 description: Role data for the Heat API role.
62 service_name: {get_attr: [HeatBase, role_data, service_name]}
65 - get_attr: [HeatBase, role_data, config_settings]
66 - apache::default_vhost: false
67 step_config: &step_config
68 get_attr: [HeatBase, role_data, step_config]
69 service_config_settings: {get_attr: [HeatBase, role_data, service_config_settings]}
70 # BEGIN DOCKER SETTINGS
72 config_volume: heat_api
73 puppet_tags: heat_config,file,concat,file_line
74 step_config: *step_config
75 config_image: {get_param: DockerHeatApiConfigImage}
77 /var/lib/kolla/config_files/heat_api.json:
78 command: /usr/sbin/httpd -DFOREGROUND
80 - source: "/var/lib/kolla/config_files/src/*"
83 preserve_properties: true
91 image: {get_param: DockerHeatApiImage}
95 # NOTE(mandre) kolla image changes the user to 'heat', we need it
96 # to be root to run httpd
100 - {get_attr: [ContainersCommon, volumes]}
102 - /var/lib/kolla/config_files/heat_api.json:/var/lib/kolla/config_files/config.json:ro
103 - /var/lib/config-data/puppet-generated/heat_api/:/var/lib/kolla/config_files/src:ro
104 - /var/log/containers/heat:/var/log/heat
107 - internal_tls_enabled
108 - /etc/pki/tls/certs/httpd:/etc/pki/tls/certs/httpd:ro
112 - internal_tls_enabled
113 - /etc/pki/tls/private/httpd:/etc/pki/tls/private/httpd:ro
116 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
118 - name: create persistent logs directory
120 path: /var/log/containers/heat
123 - name: Stop and disable heat_api service
125 service: name=httpd state=stopped enabled=no
127 get_attr: [HeatBase, role_data, metadata_settings]