From 3f2be0b90ab97bb0e365a11c14a702949edaea82 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Thu, 1 Oct 2015 23:46:09 +0200 Subject: [PATCH] Changed pxe boot allowing fully automatized installation, removing also the warning on installer language support. Modified a little bit the preseed file to correctly respond to questions by d-i. --- roles/kickstart/tasks/kickstart.yml | 2 +- roles/kickstart/templates/preseed/edubuntu-vm.seed | 9 ++++----- roles/pxe/templates/pxelinux.cfg/default | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/roles/kickstart/tasks/kickstart.yml b/roles/kickstart/tasks/kickstart.yml index 74d9c6b..5f268a5 100644 --- a/roles/kickstart/tasks/kickstart.yml +++ b/roles/kickstart/tasks/kickstart.yml @@ -64,7 +64,7 @@ when: ansible_bios_version != "VirtualBox" sudo: yes - - name: Copia preseed - virtuale +- name: Copia preseed - virtuale template: src: preseed/edubuntu-vm.seed dest: /var/lib/nethserver/ibay/ks/preseed/edubuntu.seed diff --git a/roles/kickstart/templates/preseed/edubuntu-vm.seed b/roles/kickstart/templates/preseed/edubuntu-vm.seed index bfcbfca..044a902 100644 --- a/roles/kickstart/templates/preseed/edubuntu-vm.seed +++ b/roles/kickstart/templates/preseed/edubuntu-vm.seed @@ -2,16 +2,12 @@ debconf debconf/priority string critical # Localization - Italiano -d-i debian-installer/language string it d-i debian-installer/locale string it_IT.UTF-8 -d-i debian-installer/preferred-locale string it_IT.UTF-8 d-i debian-installer/supported-locales multiselect it_IT it_IT@euro en_US en_US.UTF-8 # Keyboard settings d-i console-setup/ask_detect boolean false -d-i console-setup/layoutcode string it d-i keyboard-configuration/layoutcode string it -d-i keyboard-configuration/variantcode string nodeadkeys # Network d-i netcfg/choose_interface select auto @@ -29,6 +25,9 @@ d-i mirror/protocol string http d-i mirror/http/hostname string {{ ansible_local.domain.serverfqdn }} d-i mirror/http/directory string /ks/mirror/archive.ubuntu.com/ubuntu d-i mirror/http/proxy string +d-i mirror/suite string trusty + +# Apt-setup additional repos d-i apt-setup/extras boolean true d-i apt-setup/restricted boolean true d-i apt-setup/universe boolean true @@ -51,7 +50,7 @@ d-i apt-setup/local1/key string http://keyserver.ubuntu.com:11371/pks/lookup?s # Time and date d-i clock-setup/utc boolean true -d-i time/zone string Europe/Rome +d-i time/zone string Europe/Rome d-i clock-setup/ntp boolean true d-i clock-setup/ntp-server string {{ ansible_local.domain.ntpserver }} diff --git a/roles/pxe/templates/pxelinux.cfg/default b/roles/pxe/templates/pxelinux.cfg/default index 7d09ffc..8aeaea4 100644 --- a/roles/pxe/templates/pxelinux.cfg/default +++ b/roles/pxe/templates/pxelinux.cfg/default @@ -26,7 +26,7 @@ LABEL edubuntu-64 MENU LABEL Installa Edubuntu 64 bit LINUX /ubuntu/14.04/amd64/linux INITRD /ubuntu/14.04/amd64/initrd.gz - APPEND locale=it_IT.UTF-8 keyboard-configuration/layoutcode=it url=http://{{ ansible_local.domain.serverfqdn }}/ks/preseed/edubuntu.seed + APPEND auto=true url=http://{{ ansible_local.domain.serverfqdn }}/ks/preseed/edubuntu.seed quiet LABEL edubuntu-32 MENU LABEL Installa Edubuntu 32 bit