Revisión 286
Añadido por Esteban M. Navas Martín hace alrededor de 13 años
tareas_puppet/servidores_aula/apagado-terminales/manifests/init.pp | ||
---|---|---|
}
|
||
|
||
exec { "copy-publickey":
|
||
command => "/bin/cat /root/.ssh/id_rsa.pub >> /opt/ltsp/i386/root/.ssh/$
|
||
require => [File["/root/.ssh/id_rsa.pub"], File["/opt/ltsp/i386/root/.s$
|
||
unless => '/bin/grep "$fqdn" /opt/ltsp/i386/root/.ssh/authorized_keys 2$
|
||
command => "/bin/cat /root/.ssh/id_rsa.pub >> /opt/ltsp/i386/root/.ssh/authorized_keys",
|
||
require => [File["/root/.ssh/id_rsa.pub"], File["/opt/ltsp/i386/root/.ssh"]],
|
||
unless => '/bin/grep "$fqdn" /opt/ltsp/i386/root/.ssh/authorized_keys 2>/dev/null',
|
||
notify => Exec["update-image"]
|
||
}
|
||
|
Exportar a: Unified diff
Revisada tarea apagado-terminales para que funcione con el nuevo servidor puppet