From d2fb525388757174343d3229592f917673da8c0b Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 6 Jul 2019 18:17:57 +0200 Subject: seperate vm/install and vm/define --- roles/vm/install/templates/libvirt-domain.xml.j2 | 76 ------------------------ 1 file changed, 76 deletions(-) delete mode 100644 roles/vm/install/templates/libvirt-domain.xml.j2 (limited to 'roles/vm/install/templates') diff --git a/roles/vm/install/templates/libvirt-domain.xml.j2 b/roles/vm/install/templates/libvirt-domain.xml.j2 deleted file mode 100644 index f3bdeae1..00000000 --- a/roles/vm/install/templates/libvirt-domain.xml.j2 +++ /dev/null @@ -1,76 +0,0 @@ - - {{ hostname }} - {{ hostvars[hostname].install_cooked.mem * 1024 }} - {{ hostvars[hostname].install_cooked.mem * 1024 }} - {{ hostvars[hostname].install_cooked.numcpu }} - - hvm -{% if run_installer %} - {{ debian_installer_path }}/{{ install_distro }}-{{ install_codename }}/{{ hostvars[hostname].install_cooked.arch | default('amd64') }}/linux - {{ preseed_tmpdir }}/initrd.preseed.gz - console=ttyS0,115200n8 -{% endif %} - - - - - - - - - destroy -{% if run_installer %} - destroy - destroy -{% else %} - restart - restart -{% endif %} - - /usr/bin/kvm - - - - - /dev/random - - -{% if 'virtio' in hostvars[hostname].install_cooked.disks %} -{% for device, lv in hostvars[hostname].install_cooked.disks.virtio.items() %} - - - - - -{% endfor %} -{% endif %} - -{% if 'scsi' in hostvars[hostname].install_cooked.disks %} - -{% for device, lv in hostvars[hostname].install_cooked.disks.scsi.items() %} - - - - - -{% endfor %} -{% endif %} - -{% if hostvars[hostname].install_cooked.interfaces %} -{% for if in hostvars[hostname].install_cooked.interfaces %} - - - -
- -{% endfor %} -{% endif %} - - - - - - - - - -- cgit v1.2.3