openstack-ansible-os_nova/templates/qemu.conf.j2
Logan V fcb78e166b Fix qemu_conf_dict not defined
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
2016-11-12 19:05:02 -06:00

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 %}