aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/neutron/templates/neutron-server.json.j2
blob: 8d27d7d69d61b4681a4313fc34c33dd9541b0d13 (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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
    "command": "uwsgi /etc/neutron/neutron-server-uwsgi.ini",
    "config_files": [
        {
            "source": "{{ container_config_directory }}/neutron.conf",
            "dest": "/etc/neutron/neutron.conf",
            "owner": "neutron",
            "perm": "0600"
        },
        {
            "source": "{{ container_config_directory }}/neutron-server-uwsgi.ini",
            "dest": "/etc/neutron/neutron-server-uwsgi.ini",
            "owner": "neutron",
            "perm": "0600"
        },
{% if enable_neutron_fwaas | bool %}
        {
            "source": "{{ container_config_directory }}/fwaas_driver.ini",
            "dest": "/etc/neutron/fwaas_driver.ini",
            "owner": "neutron",
            "perm": "0600"
        },
{% endif %}
{% if enable_neutron_vpnaas | bool %}
        {
            "source": "{{ container_config_directory }}/neutron_vpnaas.conf",
            "dest": "/etc/neutron/neutron_vpnaas.conf",
            "owner": "neutron",
            "perm": "0600"
        },
{% endif %}
{% if enable_neutron_taas | bool %}
        {
            "source": "{{ container_config_directory }}/neutron_taas.conf",
            "dest": "/etc/neutron/neutron_taas.conf",
            "owner": "neutron",
            "perm": "0600"
        },
{% endif %}
{% if neutron_policy_file is defined %}
        {
            "source": "{{ container_config_directory }}/{{ neutron_policy_file }}",
            "dest": "/etc/neutron/{{ neutron_policy_file }}",
            "owner": "neutron",
            "perm": "0600"
        },
{% endif %}
{% if check_extra_ml2_plugins is defined and check_extra_ml2_plugins.matched > 0 %}{% for plugin in check_extra_ml2_plugins.files %}
        {
            "source": "{{ container_config_directory }}/{{ plugin.path | basename }}",
            "dest": "/etc/neutron/plugins/ml2/{{ plugin.path | basename }}",
            "owner": "neutron",
            "perm": "0600"
        },{% endfor %}{% endif %}
        {
            "source": "{{ container_config_directory }}/ml2_conf.ini",
            "dest": "/etc/neutron/plugins/ml2/ml2_conf.ini",
            "owner": "neutron",
            "perm": "0600"
        },
        {
            "source": "{{ container_config_directory }}/id_rsa",
            "dest": "/var/lib/neutron/.ssh/id_rsa",
            "owner": "neutron",
            "perm": "0600"
        }{% if neutron_enable_tls_backend | bool %},
        {
            "source": "{{ container_config_directory }}/neutron-cert.pem",
            "dest": "/etc/neutron/certs/neutron-cert.pem",
            "owner": "neutron",
            "perm": "0600"
        },
        {
            "source": "{{ container_config_directory }}/neutron-key.pem",
            "dest": "/etc/neutron/certs/neutron-key.pem",
            "owner": "neutron",
            "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/log/kolla/neutron",
            "owner": "neutron:neutron",
            "recurse": true
        }
    ]
}