Revisión 458
Añadido por Esteban M. Navas Martín hace más de 12 años
tareas_puppet/servidores_aula/squeeze/add-opciones-arranque-terminal/manifests/init.pp | ||
---|---|---|
class add-opciones-arranque-terminal {
|
||
|
||
file {
|
||
"/var/lib/tftpboot/ltsp/i386/memdisk" :
|
||
source => "puppet://puppetinstituto/add-opciones-arranque-terminal/memdisk",
|
||
owner => root, group => root, mode => 644
|
||
}
|
||
|
||
file {
|
||
"/var/lib/tftpboot/ltsp/i386/chain.c32" :
|
||
source => "puppet://puppetinstituto/add-opciones-arranque-terminal/chain.c32",
|
||
owner => root, group => root, mode => 644
|
||
}
|
||
|
||
file {
|
||
"/var/lib/tftpboot/ltsp/i386/plpbt.bin" :
|
||
source => "puppet://puppetinstituto/add-opciones-arranque-terminal/plpbt.bin",
|
||
owner => root, group => root, mode => 644
|
||
}
|
||
|
||
file {
|
||
"/var/lib/tftpboot/ltsp/i386/pxelinux.cfg/default" :
|
||
source => "puppet://puppetinstituto/add-opciones-arranque-terminal/default",
|
||
owner => root, group => root, mode => 644
|
||
}
|
||
|
||
file {
|
||
"/var/lib/tftpboot/ltsp/i386/Floppy" :
|
||
ensure => directory, owner => root, group => root, mode => 755,
|
||
}
|
||
|
||
file {
|
||
"/var/lib/tftpboot/ltsp/i386/Floppy/fbiosnec.img" :
|
||
source => "puppet://puppetinstituto/add-opciones-arranque-terminal/fbiosnec.img",
|
||
owner => root, group => root, mode => 644,
|
||
require => File["/var/lib/tftpboot/ltsp/i386/Floppy"];
|
||
}
|
||
|
||
file {
|
||
"/var/lib/tftpboot/ltsp/i386/clonezilla" :
|
||
ensure => directory, owner => root, group => root, mode => 755,
|
||
}
|
||
|
||
file {
|
||
"/var/lib/tftpboot/ltsp/i386/clonezilla/initrd.img" :
|
||
source => "puppet://puppetinstituto/add-opciones-arranque-terminal/initrd.img.clonezilla",
|
||
owner => root, group => root, mode => 644,
|
||
require => File["/var/lib/tftpboot/ltsp/i386/clonezilla"];
|
||
}
|
||
|
||
file {
|
||
"/var/lib/tftpboot/ltsp/i386/clonezilla/vmlinuz" :
|
||
source => "puppet://puppetinstituto/add-opciones-arranque-terminal/vmlinuz.clonezilla",
|
||
owner => root, group => root, mode => 644,
|
||
require => File["/var/lib/tftpboot/ltsp/i386/clonezilla"];
|
||
}
|
||
|
||
file {"/root/filesystem-clonezilla.sh":
|
||
owner=>root, group=>root, mode=>755,
|
||
source=>"puppet:///add-opciones-arranque-terminal/filesystem-clonezilla.sh",
|
||
notify => Exec["descarga-filesystem-clonezilla"],
|
||
}
|
||
|
||
exec {"descarga-filesystem-clonezilla":
|
||
command => "/root/filesystem-clonezilla.sh",
|
||
require => File["/root/filesystem-clonezilla.sh"],
|
||
refreshonly => true,
|
||
}
|
||
|
||
}
|
tareas_puppet/servidores_aula/squeeze/add-opciones-arranque-terminal/files/default | ||
---|---|---|
DEFAULT ltsp
|
||
|
||
# Para usar ltsp
|
||
LABEL ltsp
|
||
kernel vmlinuz
|
||
#append ro initrd=initrd.img quiet splash keeppxe nbdport=2000
|
||
append ro initrd=initrd.img quiet keeppxe nbdport=2000
|
||
|
||
|
||
# Para flashear la BIOS del terminal
|
||
LABEL flashbios
|
||
kernel memdisk
|
||
append initrd=Floppy/fbiosnec.img
|
||
|
||
# PLOP Boot Manager
|
||
LABEL plp
|
||
linux plpbt.bin
|
||
|
||
# Clonezilla live
|
||
LABEL clonezilla
|
||
kernel clonezilla/vmlinuz
|
||
append initrd=clonezilla/initrd.img boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="" ocs_live_batch="no" ocs_lang="" vga=788 nosplash fetch=tftp://192.168.0.254/ltsp/i386/clonezilla/filesystem.squashfs
|
||
|
||
# Arrancar desde el disco duro
|
||
LABEL local
|
||
kernel chain.c32
|
||
append hd0 0
|
||
|
tareas_puppet/servidores_aula/squeeze/add-opciones-arranque-terminal/files/filesystem-clonezilla.sh | ||
---|---|---|
#!/bin/sh
|
||
|
||
if [ ! -e /root/descargas ]; then mkdir /root/descargas; fi
|
||
cd /root/descargas
|
||
|
||
wget -q http://servidor/ficheros/filesystem.squashfs.clonezilla
|
||
|
||
# Instala en profesor
|
||
if [ -e filesystem.squashfs.clonezilla ]; then
|
||
mv filesystem.squashfs.clonezilla /var/lib/tftpboot/ltsp/i386/clonezilla/filesystem.squashfs
|
||
fi
|
||
Exportar a: Unified diff
Tarea add-opciones-arranque-terminal que añade otros modos de arranque del terminal utilizables por administradores