aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/gnocchi/templates/gnocchi-api.json.j2
blob: 583e6e9a29b558ba261b7b1728c1a25b23361800 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{% set gnocchi_cmd = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
{% set gnocchi_dir = 'apache2/conf-enabled' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd/conf.d' %}
{
    "command": "{{ gnocchi_cmd }} -DFOREGROUND",
    "config_files": [
        {
            "source": "{{ container_config_directory }}/gnocchi.conf",
            "dest": "/etc/gnocchi/gnocchi.conf",
            "owner": "gnocchi",
            "perm": "0600"
        },
        {
            "source": "{{ container_config_directory }}/api-paste.ini",
            "dest": "/etc/gnocchi/api-paste.ini",
            "owner": "gnocchi",
            "perm": "0600"
        },
        {
            "source": "{{ container_config_directory }}/wsgi-gnocchi.conf",
            "dest": "/etc/{{ gnocchi_dir }}/wsgi-gnocchi.conf",
            "owner": "gnocchi",
            "perm": "0644"
        }{% if gnocchi_backend_storage == 'ceph' %},
        {
            "source": "{{ container_config_directory }}/ceph.conf",
            "dest": "/etc/ceph/ceph.conf",
            "owner": "gnocchi",
            "perm": "0600"
        },
        {
            "source": "{{ container_config_directory }}/ceph.client.gnocchi.keyring",
            "dest": "/etc/ceph/ceph.client.gnocchi.keyring",
            "owner": "gnocchi",
            "perm": "0600"
        }{% endif %}

    ],
    "permissions": [
        {
            "path": "/var/lib/gnocchi",
            "owner": "gnocchi:gnocchi",
            "recurse": true
        },
        {
            "path": "/var/log/kolla/gnocchi",
            "owner": "gnocchi:kolla"
        }
    ]
}