1 heat_template_version: ocata
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.
33 type: ./containers-common.yaml
36 type: ../../puppet/services/gnocchi-api.yaml
38 EndpointMap: {get_param: EndpointMap}
39 ServiceNetMap: {get_param: ServiceNetMap}
40 DefaultPasswords: {get_param: DefaultPasswords}
44 description: Role data for the gnocchi API role.
46 service_name: {get_attr: [GnocchiApiPuppetBase, role_data, service_name]}
49 - get_attr: [GnocchiApiPuppetBase, role_data, config_settings]
50 - apache::default_vhost: false
51 step_config: &step_config
52 get_attr: [GnocchiApiPuppetBase, role_data, step_config]
53 service_config_settings: {get_attr: [GnocchiApiPuppetBase, role_data, service_config_settings]}
54 # BEGIN DOCKER SETTINGS
56 config_volume: gnocchi
57 puppet_tags: gnocchi_api_paste_ini,gnocchi_config
58 step_config: *step_config
59 config_image: &gnocchi_image
62 - [ {get_param: DockerNamespace}, {get_param: DockerGnocchiApiImage} ]
64 /var/lib/kolla/config_files/gnocchi-api.json:
65 command: /usr/sbin/httpd -DFOREGROUND
72 command: ['/bin/bash', '-c', 'mkdir -p /var/log/httpd && mkdir -p /var/log/gnocchi && chown gnocchi:gnocchi /var/log/gnocchi']
83 expression: $.data.common.concat($.data.service)
85 common: {get_attr: [ContainersCommon, volumes]}
87 - /var/lib/config-data/gnocchi/etc/gnocchi/:/etc/gnocchi/:ro
89 command: ["/usr/bin/gnocchi-upgrade", "--skip-storage"]
98 expression: $.data.common.concat($.data.service)
100 common: {get_attr: [ContainersCommon, volumes]}
102 - /var/lib/kolla/config_files/gnocchi-api.json:/var/lib/kolla/config_files/config.json:ro
103 - /var/lib/config-data/gnocchi/etc/gnocchi/:/etc/gnocchi/:ro
104 - /var/lib/config-data/gnocchi/etc/httpd/:/etc/httpd/:ro
105 - /var/lib/config-data/gnocchi/var/www/:/var/www/:ro
107 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
109 - name: Stop and disable httpd service
111 service: name=httpd state=stopped enabled=no