Modificato setup di vagrant per indirizzo di rete iniziale (= quello finale). Corretta applicazione delle configurazioni per tftp. Sistemato il file di configurazione di default di pxelinux per avere riferimenti assoluti. Corretto il template lanciato nel boot.

This commit is contained in:
Emiliano Vavassori 2015-06-14 20:52:42 +02:00
parent 89db21fab3
commit b428124ea9
6 changed files with 21 additions and 19 deletions

2
hosts
View File

@ -2,4 +2,4 @@
host_key_checking=false host_key_checking=false
[server] [server]
10.0.0.1 ansible_ssh_user=amgmt 192.168.0.1 ansible_ssh_user=amgmt

View File

@ -4,17 +4,18 @@
- name: Verifica configurazione tftp - name: Verifica configurazione tftp
shell: /sbin/e-smith/db configuration getprop dnsmasq dhcp-boot shell: /sbin/e-smith/db configuration getprop dnsmasq dhcp-boot
register: chk_tftp_enabled register: chk_tftp_enabled
changed_when: "'pxelinux.0' not in chk_tftp_enabled.stdout"
ignore_errors: yes ignore_errors: yes
sudo: yes sudo: yes
- name: Configuro tftp - name: Configuro tftp
shell: /sbin/e-smith/db configuration setprop dnsmasq tftp-status enabled dhcp-boot pxelinux.0 shell: /sbin/e-smith/db configuration setprop dnsmasq tftp-status enabled dhcp-boot pxelinux.0
when: chk_tftp_enabled|failed when: chk_tftp_enabled|changed
sudo: yes sudo: yes
- name: Attivo tftp - name: Attivo tftp
shell: /sbin/e-smith/signal-event nethserver-dnsmasq-save shell: /sbin/e-smith/signal-event nethserver-dnsmasq-save
when: chk_tftp_enabled|failed when: chk_tftp_enabled|changed
sudo: yes sudo: yes
- name: Verifica configurazione ibay kickstart - name: Verifica configurazione ibay kickstart

View File

@ -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://{{ mirrorpath }}it.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

View File

@ -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://{{ mirrorpath }}it.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

View File

@ -1,19 +1,19 @@
UI utils/vesamenu.c32 UI /utils/vesamenu.c32
DEFAULT edu64 DEFAULT edu64
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 edu64
MENU LABEL Installa Edubuntu a ^64 bit MENU LABEL Installa Edubuntu a ^64 bit
KERNEL ubuntu/14.04/amd64/linux KERNEL /ubuntu/14.04/amd64/linux
APPEND vga=normal initrd=ubuntu/14.04/amd64/initrd.gz ks=http://{{ serverfqdn }}/ks/ubuntu-trusty.cfg -- quiet APPEND vga=normal initrd=/ubuntu/14.04/amd64/initrd.gz ks=http://{{ serverfqdn }}/ks/eduubuntu-trusty.cfg -- quiet
LABEL edu32 LABEL edu32
MENU LABEL Installa Edubuntu a ^32 bit MENU LABEL Installa Edubuntu a ^32 bit
KERNEL ubuntu/14.04/amd64/linux KERNEL /ubuntu/14.04/amd64/linux
APPEND vga=normal initrd=ubuntu/14.04/amd64/initrd.gz ks=http://{{ serverfqdn }}/ks/ubuntu-trusty.cfg -- quiet APPEND vga=normal initrd=/ubuntu/14.04/amd64/initrd.gz ks=http://{{ serverfqdn }}/ks/edubuntu-trusty.cfg -- quiet
MENU SEPARATOR MENU SEPARATOR
@ -28,24 +28,25 @@ MENU TITLE Utilities
LABEL aida LABEL aida
MENU LABEL ^AIDA - Old Hardware Diagnostic Tool MENU LABEL ^AIDA - Old Hardware Diagnostic Tool
KERNEL utils/memdisk KERNEL /utils/memdisk
INITRD utils/aida.img INITRD /utils/aida.img
APPEND floppy APPEND floppy
LABEL hdt LABEL hdt
MENU LABEL ^HDT - Hardware Diagnostic Tool MENU LABEL ^HDT - Hardware Diagnostic Tool
KERNEL utils/memdisk KERNEL /utils/memdisk
INITRD utils/hdt.img INITRD /utils/hdt.img
APPEND floppy APPEND floppy
LABEL memtest LABEL memtest
MENU LABEL ^memtest86 - Test della RAM MENU LABEL ^memtest86 - Test della RAM
KERNEL utils/memtest86/vmlinuz KERNEL /utils/memtest86/vmlinuz
LABEL ranish LABEL ranish
MENU LABEL ^Ranish - Partition Management Tool MENU LABEL ^Ranish - Partition Management Tool
KERNEL utils/memdisk KERNEL /utils/memdisk
APPEND initrd=/utils/ranish.img floppy INITRD /utils/ranish.img
APPEND floppy
MENU SEPARATOR MENU SEPARATOR

View File

@ -7,7 +7,7 @@
sudo: yes sudo: yes
- name: Configuro la scheda secondaria - name: Configuro la scheda secondaria
shell: /sbin/e-smith/db networks setprop eth1 bootproto none device eth1 ipaddr 10.0.0.1 netmask 255.255.255.0 onboot yes role green shell: /sbin/e-smith/db networks setprop eth1 bootproto none device eth1 ipaddr 192.168.0.1 netmask 255.255.255.0 onboot yes role green
when: "'NethServer' in chk_nethserver.stdout" when: "'NethServer' in chk_nethserver.stdout"
sudo: yes sudo: yes
notify: notify: