From 6eacc2ad5539abf37dc90cd378b44320f7758869 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 7 Jul 2020 22:09:19 +0200 Subject: refactor vm role names --- roles/vm/define/templates/libvirt-domain.xml.j2 | 102 ------------------------ 1 file changed, 102 deletions(-) delete mode 100644 roles/vm/define/templates/libvirt-domain.xml.j2 (limited to 'roles/vm/define/templates') diff --git a/roles/vm/define/templates/libvirt-domain.xml.j2 b/roles/vm/define/templates/libvirt-domain.xml.j2 deleted file mode 100644 index ba0dcd5a..00000000 --- a/roles/vm/define/templates/libvirt-domain.xml.j2 +++ /dev/null @@ -1,102 +0,0 @@ - - {{ install_hostname }} - {{ ((hostvars[install_hostname].install_cooked.vm.memory | human_to_bytes) / 1024) | int }} - {{ ((hostvars[install_hostname].install_cooked.vm.memory | human_to_bytes) / 1024) | int }} - {{ hostvars[install_hostname].install_cooked.vm.numcpus }} - - hvm -{% if vm_define_installer %} -{% if install_distro == 'debian' or install_distro == 'ubuntu' %} - {{ installer_base_path }}/{{ install_distro }}-{{ install_codename }}/{{ hostvars[install_hostname].install_cooked.arch | default('amd64') }}-netboot/linux - {{ installer_tmpdir }}/initrd.{{ install_hostname }}.gz - console=ttyS0,115200n8 DEBCONF_DEBUG=5 - -{% 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[install_hostname].install_cooked.disks %} -{% for device, src in hostvars[install_hostname].install_cooked.disks.virtio.items() %} - - -{% if src.type == 'lvm' %} - -{% elif src.type == 'zfs' %} - -{% endif %} - - -{% endfor %} -{% endif %} - -{% if 'scsi' in hostvars[install_hostname].install_cooked.disks %} - -{% for device, src in hostvars[install_hostname].install_cooked.disks.scsi.items() %} - - -{% if src.type == 'lvm' %} - -{% elif src.type == 'zfs' %} - -{% endif %} - - -{% endfor %} -{% endif %} - -{% if hostvars[install_hostname].install_cooked.interfaces %} -{% for if in hostvars[install_hostname].install_cooked.interfaces %} - -{% if 'mac' in if %} - -{% endif %} - - -
- -{% endfor %} -{% endif %} - - - - - - - - - -- cgit v1.2.3