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