Proyecto

General

Perfil

« Anterior | Siguiente » 

Revisión 285

Modificada tarea apagado-terminales para que funcione con el nuevo servidor puppet

Ver diferencias:

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