From: Stephen Gran Date: Sun, 2 Aug 2009 00:18:08 +0000 (+0100) Subject: Restart ssh when config file changes X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=160b78150b3f5a2d16c9e67bf5c5a991598bd6c2;hp=e9e8a3bf8cdacd38939230fc0f265c3626efe1c9;p=mirror%2Fdsa-puppet.git Restart ssh when config file changes Signed-off-by: Stephen Gran --- diff --git a/modules/ssh/manifests/init.pp b/modules/ssh/manifests/init.pp index 75fb47597..d981047d6 100644 --- a/modules/ssh/manifests/init.pp +++ b/modules/ssh/manifests/init.pp @@ -10,7 +10,13 @@ class ssh { ; "/etc/ssh/sshd_config": content => template("ssh/sshd_config.erb"), - require => Package["openssh-server"] + require => Package["openssh-server"], + notify => Exec["ssh restart"] ; } + + exec { "ssh restart": + path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin", + refreshonly => true, + } }