Gestito cambio vagrant machine con rete host-only. Gestito scaricamento pacchetti per installazione da rete senza mirror per Virtualbox. Cambiato menu PXE per implementazione tipo client.
This commit is contained in:
parent
531b19809b
commit
5b47a0473a
2
Vagrantfile
vendored
2
Vagrantfile
vendored
@ -32,12 +32,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||
# Create a private network, which allows host-only access to the machine
|
||||
# using a specific IP.
|
||||
# config.vm.network "private_network", ip: "192.168.33.10"
|
||||
config.vm.network "private_network", ip: "192.168.1.1"
|
||||
|
||||
# Create a public network, which generally matched to bridged network.
|
||||
# Bridged networks make the machine appear as another physical device on
|
||||
# your network.
|
||||
# config.vm.network "public_network"
|
||||
config.vm.network "public_network", ip: "192.168.1.1"
|
||||
|
||||
# If true, then any SSH connections made will enable agent forwarding.
|
||||
# Default value: false
|
||||
|
@ -117,10 +117,18 @@
|
||||
dest: /var/lib/tftpboot/utils/hdt.img
|
||||
sudo: yes
|
||||
|
||||
- name: Copia configurazione kickstart - Edubuntu
|
||||
template: src=ks/edubuntu-trusty.cfg dest=/var/lib/nethserver/ibay/ks/edubuntu-trusty.cfg
|
||||
sudo: yes
|
||||
- name: Sovrascrivo la variabile mirrorpath se è su Virtualbox
|
||||
set_fact: oldmirrorpath="{{ mirrorpath }}" mirrorpath=""
|
||||
when: ansible_bios_version == "VirtualBox"
|
||||
|
||||
- name: Copia configurazione kickstart - Ubuntu
|
||||
template: src=ks/ubuntu-trusty.cfg dest=/var/lib/nethserver/ibay/ks/ubuntu-trusty.cfg
|
||||
- name: Copia configurazioni kickstart
|
||||
template: src=ks/{{ item }} dest=/var/lib/nethserver/ibay/ks/{{ item }}
|
||||
sudo: yes
|
||||
with_items:
|
||||
- client-trusty.cfg
|
||||
- docenti-trusty.cfg
|
||||
- ubuntu-trusty.cfg
|
||||
|
||||
- name: Ripristino impostazioni mirrorpath
|
||||
set_fact: mirrorpath="{{ oldmirrorpath }}"
|
||||
when: ansible_bios_version == "VirtualBox"
|
||||
|
57
roles/pxe/templates/ks/docenti-trusty.cfg
Normal file
57
roles/pxe/templates/ks/docenti-trusty.cfg
Normal file
@ -0,0 +1,57 @@
|
||||
#System language
|
||||
lang it_IT
|
||||
#Language modules to install
|
||||
langsupport it_IT
|
||||
#System keyboard
|
||||
keyboard it
|
||||
#System mouse
|
||||
mouse
|
||||
#System timezone
|
||||
timezone Europe/Rome
|
||||
#Root password
|
||||
rootpw --disabled
|
||||
#Initial user
|
||||
user bglug --fullname "BgLUG User" --iscrypted --password $1$9zGKOCDN$//dSCH70wDHZITGDDxdiv1
|
||||
#Reboot after installation
|
||||
reboot
|
||||
#Use text mode install
|
||||
text
|
||||
#Install OS instead of upgrade
|
||||
install
|
||||
#Use Web installation
|
||||
#url --url http://archive.ubuntu.com/ubuntu
|
||||
url --url http://{{ mirrorpath }}archive.ubuntu.com/ubuntu
|
||||
#System bootloader configuration
|
||||
bootloader --location=mbr
|
||||
#Clear the Master Boot Record
|
||||
zerombr yes
|
||||
#Partition clearing information
|
||||
clearpart --all --initlabel
|
||||
#Disk partitioning information
|
||||
part swap --recommended
|
||||
part / --fstype ext4 --size 1 --grow
|
||||
#System authorization infomation
|
||||
auth --useshadow --enablemd5
|
||||
#Network information
|
||||
network --bootproto=dhcp --device=eth0
|
||||
#Firewall configuration
|
||||
firewall --disabled
|
||||
#Do not configure the X Window System
|
||||
skipx
|
||||
# Services
|
||||
services --enabled=openssh
|
||||
#Install packages
|
||||
%packages
|
||||
@ ubuntu-desktop
|
||||
@ edubuntu-desktop
|
||||
@ ubuntu-edu-secondary
|
||||
vim
|
||||
screen
|
||||
cifs-utils
|
||||
openssh-server
|
||||
#Post installation commands
|
||||
%post --nochroot
|
||||
#the target filesystem in nochroot environment is in /target
|
||||
TARGETHOSTNAME=$(wget -qO- http://{{ serverfqdn }}:3000/whatsmyhostname)
|
||||
echo $TARGETHOSTNAME > /target/etc/hostname
|
||||
sed -i "s/kickseed/$TARGETHOSTNAME/g" /target/etc/hosts
|
@ -20,7 +20,7 @@ text
|
||||
install
|
||||
#Use Web installation
|
||||
#url --url http://archive.ubuntu.com/ubuntu
|
||||
url --url http://{{ mirrorpath }}archive.ubuntu.com/ubuntu
|
||||
url --url http://archive.ubuntu.com/ubuntu
|
||||
#System bootloader configuration
|
||||
bootloader --location=mbr
|
||||
#Clear the Master Boot Record
|
||||
|
@ -1,21 +1,21 @@
|
||||
UI /utils/vesamenu.c32
|
||||
DEFAULT edu64
|
||||
DEFAULT client
|
||||
TIMEOUT 30
|
||||
|
||||
MENU TITLE BgLUG PXE Boot
|
||||
MENU BACKGROUND /utils/bglug.png
|
||||
|
||||
LABEL edu64
|
||||
MENU LABEL Installa Edubuntu a ^64 bit
|
||||
LABEL client
|
||||
MENU LABEL Installa nuova macchina CLIENT
|
||||
LINUX /ubuntu/14.04/amd64/linux
|
||||
INITRD /ubuntu/14.04/amd64/initrd.gz
|
||||
APPEND vga=normal ks=http://{{ serverfqdn }}/ks/edubuntu-trusty.cfg -- quiet
|
||||
APPEND vga=normal ks=http://{{ serverfqdn }}/ks/client-trusty.cfg -- quiet
|
||||
|
||||
LABEL edu32
|
||||
MENU LABEL Installa Edubuntu a ^32 bit
|
||||
LINUX /ubuntu/14.04/i386/linux
|
||||
INITRD /ubuntu/14.04/i386/initrd.gz
|
||||
APPEND vga=normal ks=http://{{ serverfqdn }}/ks/edubuntu-trusty.cfg -- quiet
|
||||
LABEL docenti
|
||||
MENU LABEL Installa nuova macchina DOCENTI
|
||||
LINUX /ubuntu/14.04/amd64/linux
|
||||
INITRD /ubuntu/14.04/amd64/initrd.gz
|
||||
APPEND vga=normal ks=http://{{ serverfqdn }}/ks/docenti-trusty.cfg -- quiet
|
||||
|
||||
MENU SEPARATOR
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user