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.
31 description: Role name on which the service is applied
35 description: Parameters specific to the role
42 internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
47 type: ./containers-common.yaml
50 type: ../../puppet/services/gnocchi-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 gnocchi API role.
62 service_name: {get_attr: [GnocchiApiPuppetBase, role_data, service_name]}
65 - get_attr: [GnocchiApiPuppetBase, role_data, config_settings]
66 - apache::default_vhost: false
67 step_config: &step_config
68 get_attr: [GnocchiApiPuppetBase, role_data, step_config]
69 service_config_settings: {get_attr: [GnocchiApiPuppetBase, role_data, service_config_settings]}
70 # BEGIN DOCKER SETTINGS
72 config_volume: gnocchi
73 puppet_tags: gnocchi_api_paste_ini,gnocchi_config
74 step_config: *step_config
75 config_image: &gnocchi_image
78 - [ {get_param: DockerNamespace}, {get_param: DockerGnocchiApiImage} ]
80 /var/lib/kolla/config_files/gnocchi-api.json:
81 command: /usr/sbin/httpd -DFOREGROUND
83 - path: /var/log/gnocchi
84 owner: gnocchi:gnocchi
87 # db sync runs before permissions set by kolla_config
94 - /var/log/containers/gnocchi:/var/log/gnocchi
95 command: ['/bin/bash', '-c', 'mkdir -p /var/log/httpd; chown -R gnocchi:gnocchi /var/log/gnocchi']
104 - {get_attr: [ContainersCommon, volumes]}
106 - /var/lib/config-data/gnocchi/etc/gnocchi/:/etc/gnocchi/:ro
107 - /var/log/containers/gnocchi:/var/log/gnocchi
108 command: ["/usr/bin/gnocchi-upgrade", "--skip-storage"]
111 image: *gnocchi_image
117 - {get_attr: [ContainersCommon, volumes]}
119 - /var/lib/kolla/config_files/gnocchi-api.json:/var/lib/kolla/config_files/config.json:ro
120 - /var/lib/config-data/gnocchi/etc/gnocchi/:/etc/gnocchi/:ro
121 - /var/lib/config-data/gnocchi/etc/httpd/:/etc/httpd/:ro
122 - /var/lib/config-data/gnocchi/var/www/:/var/www/:ro
123 - /var/log/containers/gnocchi:/var/log/gnocchi
126 - internal_tls_enabled
127 - /etc/pki/tls/certs/httpd:/etc/pki/tls/certs/httpd:ro
131 - internal_tls_enabled
132 - /etc/pki/tls/private/httpd:/etc/pki/tls/private/httpd:ro
135 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
137 - name: create persistent logs directory
139 path: /var/log/containers/gnocchi
142 - name: Stop and disable httpd service
144 service: name=httpd state=stopped enabled=no
146 get_attr: [GnocchiApiPuppetBase, role_data, metadata_settings]