aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/glance/templates/glance-api.json.j2
blob: 6ca397e7fa03bc26f554fb48a43d027fe86c5ad3 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
    "command": "uwsgi /etc/glance/glance-api-uwsgi.ini",
    "config_files": [
        {
            "source": "{{ container_config_directory }}/glance-api.conf",
            "dest": "/etc/glance/glance-api.conf",
            "owner": "glance",
            "perm": "0600"
        },
        {
            "source": "{{ container_config_directory }}/glance-api-uwsgi.ini",
            "dest": "/etc/glance/glance-api-uwsgi.ini",
            "owner": "glance",
            "perm": "0600"
        }{% if glance_policy_file is defined %},
        {
            "source": "{{ container_config_directory }}/{{ glance_policy_file }}",
            "dest": "/etc/glance/{{ glance_policy_file }}",
            "owner": "glance",
            "perm": "0600"
        }{% endif %}{% if glance_enable_tls_backend | bool %},
        {
            "source": "{{ container_config_directory }}/glance-cert.pem",
            "dest": "/etc/glance/certs/glance-cert.pem",
            "owner": "glance",
            "perm": "0600"
        },
        {
            "source": "{{ container_config_directory }}/glance-key.pem",
            "dest": "/etc/glance/certs/glance-key.pem",
            "owner": "glance",
            "perm": "0600"
        }{% endif %}{% if glance_backend_ceph | bool %},
        {
            "source": "{{ container_config_directory }}/ceph",
            "dest": "/etc/ceph",
            "owner": "glance",
            "perm": "0600"
        }{% endif %}{% if enable_glance_image_cache | bool %},
        {
            "source": "{{ container_config_directory }}/glance-cache.conf",
            "dest": "/etc/glance/glance-cache.conf",
            "owner": "glance",
            "perm": "0600"
        }{% endif %}{% if glance_enable_interoperable_image_import | bool %},
        {
            "source": "{{ container_config_directory }}/glance-image-import.conf",
            "dest": "/etc/glance/glance.conf.d/glance-image-import.conf",
            "owner": "glance",
            "perm": "0600"
        }{% endif %}{% if glance_enable_property_protection | bool %},
        {
            "source": "{{ container_config_directory }}/property-protections-rules.conf",
            "dest": "/etc/glance/property-protections-rules.conf",
            "owner": "glance",
            "perm": "0600"
        }{% endif %}{% if kolla_copy_ca_into_containers | bool %},
        {
            "source": "{{ container_config_directory }}/ca-certificates",
            "dest": "/var/lib/kolla/share/ca-certificates",
            "owner": "root",
            "perm": "0644"
        }{% endif %}
    ],
    "permissions": [
        {
            "path": "/var/lib/glance",
            "owner": "glance:glance",
            "recurse": true
        },
        {
            "path": "/var/log/kolla/glance",
            "owner": "glance:glance",
            "recurse": true
        }
    ]
}