{{ inventory_hostname }}
{{ ((install_cooked.vm.memory | human_to_bytes) / 1024) | int }}
{{ ((install_cooked.vm.memory | human_to_bytes) / 1024) | int }}
{{ install_cooked.vm.numcpus }}
hvm
{% if vm_define_installer %}
{% if install_distro == 'debian' or install_distro == 'ubuntu' %}
{{ installer_tmpdir }}/linux
{{ installer_tmpdir }}/initrd.gz
console=ttyS0,115200n8 auto
{% elif install_distro == 'openbsd' %}
{% endif %}
{% else %}
{% endif %}
destroy
{% if vm_define_installer %}
destroy
destroy
{% else %}
restart
restart
{% endif %}
/usr/bin/kvm
/dev/random
{% if vm_define_installer and install_distro == 'openbsd' %}
{% endif %}
{% if 'virtio' in install_cooked.disks %}
{% for device, src in install_cooked.disks.virtio.items() %}
{% if src.type == 'lvm' %}
{% elif src.type == 'zfs' %}
{% endif %}
{% endfor %}
{% endif %}
{% if 'scsi' in install_cooked.disks %}
{% for device, src in install_cooked.disks.scsi.items() %}
{% if src.type == 'lvm' %}
{% elif src.type == 'zfs' %}
{% endif %}
{% endfor %}
{% endif %}
{% if install_cooked.interfaces %}
{% for if in install_cooked.interfaces %}
{% if 'mac' in if %}
{% endif %}
{% endfor %}
{% endif %}