1 heat_template_version: pike
4 OpenStack containerized gnocchi service
9 default: 'tripleoupstream'
11 DockerGnocchiApiImage:
13 default: 'centos-binary-gnocchi-api:latest'
17 description: Mapping of service endpoint -> protocol. Typically set
18 via parameter_defaults in the resource registry.
22 description: Mapping of service_name -> network name. Typically set
23 via parameter_defaults in the resource registry. This
24 mapping overrides those in ServiceNetMapDefaults.
35 internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
40 type: ./containers-common.yaml
43 type: ../../puppet/services/gnocchi-api.yaml
45 EndpointMap: {get_param: EndpointMap}
46 ServiceNetMap: {get_param: ServiceNetMap}
47 DefaultPasswords: {get_param: DefaultPasswords}
51 description: Role data for the gnocchi API role.
53 service_name: {get_attr: [GnocchiApiPuppetBase, role_data, service_name]}
56 - get_attr: [GnocchiApiPuppetBase, role_data, config_settings]
57 - apache::default_vhost: false
58 step_config: &step_config
59 get_attr: [GnocchiApiPuppetBase, role_data, step_config]
60 service_config_settings: {get_attr: [GnocchiApiPuppetBase, role_data, service_config_settings]}
61 # BEGIN DOCKER SETTINGS
63 config_volume: gnocchi
64 puppet_tags: gnocchi_api_paste_ini,gnocchi_config
65 step_config: *step_config
66 config_image: &gnocchi_image
69 - [ {get_param: DockerNamespace}, {get_param: DockerGnocchiApiImage} ]
71 /var/lib/kolla/config_files/gnocchi-api.json:
72 command: /usr/sbin/httpd -DFOREGROUND
79 command: ['/bin/bash', '-c', 'mkdir -p /var/log/httpd && mkdir -p /var/log/gnocchi && chown gnocchi:gnocchi /var/log/gnocchi']
90 - {get_attr: [ContainersCommon, volumes]}
92 - /var/lib/config-data/gnocchi/etc/gnocchi/:/etc/gnocchi/:ro
94 command: ["/usr/bin/gnocchi-upgrade", "--skip-storage"]
103 - {get_attr: [ContainersCommon, volumes]}
105 - /var/lib/kolla/config_files/gnocchi-api.json:/var/lib/kolla/config_files/config.json:ro
106 - /var/lib/config-data/gnocchi/etc/gnocchi/:/etc/gnocchi/:ro
107 - /var/lib/config-data/gnocchi/etc/httpd/:/etc/httpd/:ro
108 - /var/lib/config-data/gnocchi/var/www/:/var/www/:ro
111 - internal_tls_enabled
112 - /etc/pki/tls/certs/httpd:/etc/pki/tls/certs/httpd:ro
116 - internal_tls_enabled
117 - /etc/pki/tls/private/httpd:/etc/pki/tls/private/httpd:ro
120 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
122 - name: Stop and disable httpd service
124 service: name=httpd state=stopped enabled=no
126 get_attr: [GnocchiApiPuppetBase, role_data, metadata_settings]