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
|
# Create a private network, which allows host-only access to the machine
|
||||||
# using a specific IP.
|
# using a specific IP.
|
||||||
# config.vm.network "private_network", ip: "192.168.33.10"
|
# 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.
|
# Create a public network, which generally matched to bridged network.
|
||||||
# Bridged networks make the machine appear as another physical device on
|
# Bridged networks make the machine appear as another physical device on
|
||||||
# your network.
|
# your network.
|
||||||
# config.vm.network "public_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.
|
# If true, then any SSH connections made will enable agent forwarding.
|
||||||
# Default value: false
|
# Default value: false
|
||||||
|
@ -117,10 +117,18 @@
|
|||||||
dest: /var/lib/tftpboot/utils/hdt.img
|
dest: /var/lib/tftpboot/utils/hdt.img
|
||||||
sudo: yes
|
sudo: yes
|
||||||
|
|
||||||
- name: Copia configurazione kickstart - Edubuntu
|
- name: Sovrascrivo la variabile mirrorpath se è su Virtualbox
|
||||||
template: src=ks/edubuntu-trusty.cfg dest=/var/lib/nethserver/ibay/ks/edubuntu-trusty.cfg
|
set_fact: oldmirrorpath="{{ mirrorpath }}" mirrorpath=""
|
||||||
sudo: yes
|
when: ansible_bios_version == "VirtualBox"
|
||||||
|
|
||||||
- name: Copia configurazione kickstart - Ubuntu
|
- name: Copia configurazioni kickstart
|
||||||
template: src=ks/ubuntu-trusty.cfg dest=/var/lib/nethserver/ibay/ks/ubuntu-trusty.cfg
|
template: src=ks/{{ item }} dest=/var/lib/nethserver/ibay/ks/{{ item }}
|
||||||
sudo: yes
|
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
|
install
|
||||||
#Use Web installation
|
#Use Web installation
|
||||||
#url --url http://archive.ubuntu.com/ubuntu
|
#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
|
#System bootloader configuration
|
||||||
bootloader --location=mbr
|
bootloader --location=mbr
|
||||||
#Clear the Master Boot Record
|
#Clear the Master Boot Record
|
||||||
|
@ -1,21 +1,21 @@
|
|||||||
UI /utils/vesamenu.c32
|
UI /utils/vesamenu.c32
|
||||||
DEFAULT edu64
|
DEFAULT client
|
||||||
TIMEOUT 30
|
TIMEOUT 30
|
||||||
|
|
||||||
MENU TITLE BgLUG PXE Boot
|
MENU TITLE BgLUG PXE Boot
|
||||||
MENU BACKGROUND /utils/bglug.png
|
MENU BACKGROUND /utils/bglug.png
|
||||||
|
|
||||||
LABEL edu64
|
LABEL client
|
||||||
MENU LABEL Installa Edubuntu a ^64 bit
|
MENU LABEL Installa nuova macchina CLIENT
|
||||||
LINUX /ubuntu/14.04/amd64/linux
|
LINUX /ubuntu/14.04/amd64/linux
|
||||||
INITRD /ubuntu/14.04/amd64/initrd.gz
|
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
|
LABEL docenti
|
||||||
MENU LABEL Installa Edubuntu a ^32 bit
|
MENU LABEL Installa nuova macchina DOCENTI
|
||||||
LINUX /ubuntu/14.04/i386/linux
|
LINUX /ubuntu/14.04/amd64/linux
|
||||||
INITRD /ubuntu/14.04/i386/initrd.gz
|
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/docenti-trusty.cfg -- quiet
|
||||||
|
|
||||||
MENU SEPARATOR
|
MENU SEPARATOR
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user