X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fssh%2Fmanifests%2Finit.pp;h=c802efe831d8b8351b4c29a8c84bb8e51f685c53;hb=056eeb7efa04117d0bd9f2a0fdb095b4c4c2bb45;hp=75fb47597466e4c181b174559659154067eb0d98;hpb=0d5176e1034bd04ce9c76d790caa819f8b8d5341;p=mirror%2Fdsa-puppet.git diff --git a/modules/ssh/manifests/init.pp b/modules/ssh/manifests/init.pp index 75fb47597..c802efe83 100644 --- a/modules/ssh/manifests/init.pp +++ b/modules/ssh/manifests/init.pp @@ -10,7 +10,24 @@ class ssh { ; "/etc/ssh/sshd_config": content => template("ssh/sshd_config.erb"), - require => Package["openssh-server"] + require => Package["openssh-server"], + notify => Exec["ssh restart"] + ; + "/etc/ssh/userkeys": + ensure => directory, + owner => root, + group => root, + mode => 755, + ; + "/etc/ssh/userkeys/root": + content => template("ssh/authorized_keys.erb"), + mode => 444, + require => Package["openssh-server"] ; } + + exec { "ssh restart": + path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin", + refreshonly => true, + } }