projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9e8a3b
)
Restart ssh when config file changes
author
Stephen Gran
<steve@lobefin.net>
Sun, 2 Aug 2009 00:18:08 +0000
(
01:18
+0100)
committer
Stephen Gran
<steve@lobefin.net>
Sun, 2 Aug 2009 00:18:08 +0000
(
01:18
+0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/ssh/manifests/init.pp
patch
|
blob
|
history
diff --git
a/modules/ssh/manifests/init.pp
b/modules/ssh/manifests/init.pp
index
75fb475
..
d981047
100644
(file)
--- 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,
+ }
}