{{ hostname }} {{ hostvars[hostname].install_cooked.mem * 1024 }} {{ hostvars[hostname].install_cooked.mem * 1024 }} {{ hostvars[hostname].install_cooked.numcpu }} hvm {% if vm_define_installer %} {% if install_distro == 'debian' or install_distro == 'ubuntu' %} {{ installer_path }}/{{ install_distro }}-{{ install_codename }}/{{ hostvars[hostname].install_cooked.arch | default('amd64') }}/linux {{ preseed_tmpdir }}/initrd.preseed.gz console=ttyS0,115200n8 {% 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 hostvars[hostname].install_cooked.disks %} {% for device, src in hostvars[hostname].install_cooked.disks.virtio.items() %} {% if src.type == 'lvm' %} {% elif src.type == 'zfs' %} {% endif %} {% endfor %} {% endif %} {% if 'scsi' in hostvars[hostname].install_cooked.disks %} {% for device, src in hostvars[hostname].install_cooked.disks.scsi.items() %} {% if src.type == 'lvm' %} {% elif src.type == 'zfs' %} {% endif %} {% endfor %} {% endif %} {% if hostvars[hostname].install_cooked.interfaces %} {% for if in hostvars[hostname].install_cooked.interfaces %} {% if 'mac' in if %} {% endif %}
{% endfor %} {% endif %}