aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/nova-cell/templates/nova-libvirt.json.j2
blob: f640987073b0f730d3b49dbd5d5e81c4165720f6 (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
78
{
    "command": "/usr/sbin/libvirtd --listen",
    "config_files": [
        {
            "source": "{{ container_config_directory }}/libvirtd.conf",
            "dest": "/etc/libvirt/libvirtd.conf",
            "owner": "root",
            "perm": "0600"
        },
        {
            "source": "{{ container_config_directory }}/qemu.conf",
            "dest": "/etc/libvirt/qemu.conf",
            "owner": "root",
            "perm": "0600"
        }{% if libvirt_tls | bool %},
        {
            "source": "{{ container_config_directory }}/serverkey.pem",
            "dest": "/etc/pki/libvirt/private/serverkey.pem",
            "owner": "root",
            "perm": "0600"
        },
        {
            "source": "{{ container_config_directory }}/servercert.pem",
            "dest": "/etc/pki/libvirt/servercert.pem",
            "owner": "root",
            "perm": "0600"
        },
        {
            "source": "{{ container_config_directory }}/clientkey.pem",
            "dest": "/etc/pki/libvirt/private/clientkey.pem",
            "owner": "root",
            "perm": "0600"
        },
        {
            "source": "{{ container_config_directory }}/clientcert.pem",
            "dest": "/etc/pki/libvirt/clientcert.pem",
            "owner": "root",
            "perm": "0600"
        },
        {
            "source": "{{ container_config_directory }}/cacert.pem",
            "dest": "/etc/pki/CA/cacert.pem",
            "owner": "root",
            "perm": "0600"
        }{% endif %}{% if nova_backend == "rbd" or cinder_backend_ceph | bool %},
        {
            "source": "{{ container_config_directory }}/secrets",
            "dest": "/etc/libvirt/secrets",
            "owner": "root",
            "perm": "0600",
            "merge": true
        }{% endif %}{% if nova_backend == "rbd" %},
        {
            "source": "{{ container_config_directory }}/{{ nova_cell_ceph_backend['cluster'] }}.conf",
            "dest": "/etc/ceph/{{ nova_cell_ceph_backend['cluster'] }}.conf",
            "owner": "nova",
            "perm": "0600"
        }{% endif %}{% if libvirt_enable_sasl | bool %},
        {
            "source": "{{ container_config_directory }}/sasl.conf",
            "dest": "/etc/sasl2/libvirt.conf",
            "owner": "root",
            "perm": "0600"
        },
        {
            "source": "{{ container_config_directory }}/auth.conf",
            "dest": "/root/.config/libvirt/auth.conf",
            "owner": "root",
            "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 %}
    ]
}