1 heat_template_version: pike
4 OpenStack Panko service configured with docker.
5 Note, this service is deprecated in Pike release and
6 will be disabled in future releases.
12 DockerPankoConfigImage:
13 description: The container image to use for the panko config_volume
17 description: Mapping of service endpoint -> protocol. Typically set
18 via parameter_defaults in the resource registry.
22 description: Dictionary packing service data
26 description: Mapping of service_name -> network name. Typically set
27 via parameter_defaults in the resource registry. This
28 mapping overrides those in ServiceNetMapDefaults.
35 description: Role name on which the service is applied
39 description: Parameters specific to the role
47 internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
52 type: ./containers-common.yaml
55 type: ../../puppet/services/database/mysql-client.yaml
58 type: ../../puppet/services/panko-api.yaml
60 EndpointMap: {get_param: EndpointMap}
61 ServiceData: {get_param: ServiceData}
62 ServiceNetMap: {get_param: ServiceNetMap}
63 DefaultPasswords: {get_param: DefaultPasswords}
64 RoleName: {get_param: RoleName}
65 RoleParameters: {get_param: RoleParameters}
69 description: Role data for the Panko API role.
71 service_name: {get_attr: [PankoApiPuppetBase, role_data, service_name]}
74 - get_attr: [PankoApiPuppetBase, role_data, config_settings]
75 - apache::default_vhost: false
76 step_config: &step_config
79 - - {get_attr: [PankoApiPuppetBase, role_data, step_config]}
80 - {get_attr: [MySQLClient, role_data, step_config]}
81 service_config_settings: {get_attr: [PankoApiPuppetBase, role_data, service_config_settings]}
82 # BEGIN DOCKER SETTINGS #
85 puppet_tags: panko_api_paste_ini,panko_config
86 step_config: *step_config
87 config_image: {get_param: DockerPankoConfigImage}
89 /var/lib/kolla/config_files/panko_api.json:
90 command: /usr/sbin/httpd -DFOREGROUND
92 - source: "/var/lib/kolla/config_files/src/*"
95 preserve_properties: true
97 - path: /var/log/panko
103 image: &panko_api_image {get_param: DockerPankoApiImage}
106 - /var/log/containers/panko:/var/log/panko
107 command: ['/bin/bash', '-c', 'mkdir -p /var/log/httpd; chown -R panko:panko /var/log/panko']
110 image: *panko_api_image
117 - {get_attr: [ContainersCommon, volumes]}
119 - /var/lib/config-data/panko/etc/my.cnf.d/tripleo.cnf:/etc/my.cnf.d/tripleo.cnf:ro
120 - /var/lib/config-data/panko/etc/panko:/etc/panko:ro
121 - /var/log/containers/panko:/var/log/panko
122 command: "/usr/bin/bootstrap_host_exec panko_api su panko -s /bin/bash -c '/usr/bin/panko-dbsync'"
126 image: *panko_api_image
132 - {get_attr: [ContainersCommon, volumes]}
134 - /var/lib/kolla/config_files/panko_api.json:/var/lib/kolla/config_files/config.json:ro
135 - /var/lib/config-data/puppet-generated/panko/:/var/lib/kolla/config_files/src:ro
136 - /var/log/containers/panko:/var/log/panko
139 - internal_tls_enabled
140 - /etc/pki/tls/certs/httpd:/etc/pki/tls/certs/httpd:ro
144 - internal_tls_enabled
145 - /etc/pki/tls/private/httpd:/etc/pki/tls/private/httpd:ro
148 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
150 - name: create persistent logs directory
152 path: /var/log/containers/panko
155 get_attr: [PankoApiPuppetBase, role_data, metadata_settings]