fcb78e166b
When using nova_network_type=calico without other qemu_conf_dict overrides defined, the template fails because qemu_conf_dict is not defined. Change-Id: Icf8c6b7b70a270b867b250b83bf9ab42b05a154d
23 lines
595 B
Django/Jinja
23 lines
595 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
{% if nova_network_type == 'calico' %}
|
|
# Calico specific qemu settings
|
|
# Information available at:
|
|
# http://docs.projectcalico.org/en/latest/ubuntu-opens-install.html
|
|
clear_emulator_capabilities = 0
|
|
user = "root"
|
|
group = "root"
|
|
cgroup_device_acl = [
|
|
"/dev/null", "/dev/full", "/dev/zero",
|
|
"/dev/random", "/dev/urandom",
|
|
"/dev/ptmx", "/dev/kvm", "/dev/kqemu",
|
|
"/dev/rtc", "/dev/hpet", "/dev/net/tun",
|
|
]
|
|
{% endif %}
|
|
|
|
{% if qemu_conf_dict is defined %}
|
|
{% for key, value in qemu_conf_dict.iteritems() %}
|
|
{{ key }} = {{ value }}
|
|
{% endfor %}
|
|
{% endif %}
|