From 79c40fec07d7ea906cf1375fa93a4b202766ba79 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 24 May 2018 23:40:30 +0200 Subject: move vm roles to subdir --- roles/vm-install/templates/libvirt-domain.xml.j2 | 70 ------------------------ 1 file changed, 70 deletions(-) delete mode 100644 roles/vm-install/templates/libvirt-domain.xml.j2 (limited to 'roles/vm-install/templates/libvirt-domain.xml.j2') 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 c84b1045..00000000 --- a/roles/vm-install/templates/libvirt-domain.xml.j2 +++ /dev/null @@ -1,70 +0,0 @@ - - {{ inventory_hostname }} - {{ vm_install.mem * 1024 }} - {{ vm_install.mem * 1024 }} - {{ vm_install.numcpu }} - - hvm -{% if run_installer %} - {{ hostvars[vm_install.host].vm_host.installer.path }}/{{ vmdistro }}-{{ vmdistcodename }}/{{ vm_install.arch | default('amd64') }}/linux - {{ hostvars[vm_install.host].vm_host.installer.path }}/{{ vmdistro }}-{{ vmdistcodename }}/{{ vm_install.arch | default('amd64') }}/initrd.gz - console=ttyS0,115200n8 auto=true interface=auto url=tftp://{{ hostvars[vm_install.host]['ansible_' + hostvars[vm_install.host].vm_host.installer.net_if].ipv4.address }}/vm-{{ inventory_hostname }}-{{ vmdistro }}-{{ vmdistcodename }}.cfg netcfg/choose_interface=enp1s1 netcfg/disable_autoconfig=true netcfg/get_ipaddress={{ vm_network.primary.ip }} netcfg/get_netmask={{ vm_network.primary.mask }} netcfg/get_gateway={{ vm_network.primary.gateway }} netcfg/get_nameservers="{{ vm_network.primary.nameservers | join(' ') }}" netcfg/confirm_static=true netcfg/get_hostname={{ inventory_hostname }} netcfg/get_domain={{ vm_network.primary.domain }} -{% endif %} - - - - - - - - - destroy -{% if run_installer %} - destroy - destroy -{% else %} - restart - restart -{% endif %} - - /usr/bin/kvm - -{% if 'virtio' in vm_install.disks %} -{% for device, lv in vm_install.disks.virtio.items() %} - - - - - -{% endfor %} -{% endif %} - -{% if 'scsi' in vm_install.disks %} - -{% for device, lv in vm_install.disks.scsi.items() %} - - - - - -{% endfor %} -{% endif %} - -{% if vm_install.interfaces %} -{% for if in vm_install.interfaces %} - - - -
- -{% endfor %} -{% endif %} - - - - - - - - - -- cgit v1.2.3