aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/magnum/templates/magnum-conductor.json.j2
blob: 8d077396eb969fa7d3f86ab171cd6334a6b448a2 (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
{
    "command": "magnum-conductor --config-file /etc/magnum/magnum.conf",
    "config_files": [
        {
            "source": "{{ container_config_directory }}/magnum.conf",
            "dest": "/etc/magnum/magnum.conf",
            "owner": "magnum",
            "perm": "0600"
        }{% if magnum_kubeconfig_file_path is defined %},
        {
            "source": "{{ container_config_directory }}/kubeconfig",
            "dest": "/var/lib/magnum/.kube/config",
            "owner": "magnum",
            "perm": "0600"
        }{% endif %}
        {% if magnum_policy_file is defined %},
        {
            "source": "{{ container_config_directory }}/{{ magnum_policy_file }}",
            "dest": "/etc/magnum/{{ magnum_policy_file }}",
            "owner": "magnum",
            "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": "0600"
        }{% endif %}
    ],
    "permissions": [
        {
            "path": "/var/lib/magnum",
            "owner": "magnum:magnum",
            "recurse": true
        },
        {
            "path": "/var/log/kolla/magnum",
            "owner": "magnum:magnum",
            "recurse": true
        }
    ]
}