Revisión 288
Añadido por Esteban M. Navas Martín hace alrededor de 13 años
tareas_puppet/servidores_aula/ajuste-hora-fecha/files/hora_fecha.sh | ||
---|---|---|
/usr/sbin/ntpdate -su ntp
|
||
/sbin/hwclock --adjust
|
||
/sbin/hwclock --systohc
|
||
|
||
tareas_puppet/servidores_aula/ajuste-hora-fecha/leeme.txt | ||
---|---|---|
BREVE DESCRIPCION DE LA EJECUCION DEL MODULO
|
||
--------------------------------------------
|
||
|
||
Destino : Servidores de aula
|
||
Acción : Configura el ajuste de sincronización horaria de los terminales ligeros
|
||
|
||
|
||
|
||
INSTRUCCIONES DE INSTALACION DEL MODULO
|
||
---------------------------------------
|
||
|
||
Desempaquetar en /etc/puppet/modules
|
||
Incluir la linea include "ajuste-hora-fecha" en /etc/puppet/manifests/classes/clase-especifica.pp
|
||
|
||
------------------------------------------------
|
||
|
||
05-marzo-2012.
|
||
Esteban M. Navas Martín
|
||
Administrador Informático del IES Valle del Jerte.
|
||
tareas_puppet/servidores_aula/ajuste-hora-fecha/manifests/init.pp | ||
---|---|---|
class ajuste-hora-fecha {
|
||
|
||
file {"/opt/ltsp/i386/etc/init.d/hora_fecha.sh":
|
||
owner=>root, group=>root, mode=>755,
|
||
source=>"puppet:///ajuste-hora-fecha/hora_fecha.sh",
|
||
notify=> Exec["crear-imagen-hora-fecha"],
|
||
}
|
||
|
||
exec { "crear-imagen-hora-fecha":
|
||
path => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
|
||
command => "ltsp-update-image --arch i386",
|
||
refreshonly => true;
|
||
}
|
||
}
|
Exportar a: Unified diff
Subida tarea ajuste-hora-fecha para solucionar el problema de sincronización horaria de terminales