aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-10-26 12:39:45 -0400
committerMicah Anderson <micah@riseup.net>2008-10-26 12:39:45 -0400
commit98ddbe8ef56d5a3552e4dd812d1a01cbae211eaf (patch)
tree708c55a6ba25af45106a8714b0a5e4c71212fe89 /manifests/init.pp
parent1b2dcaf51031582fbd30185a7384f7816ad35eb1 (diff)
downloadpuppet-sshd-98ddbe8ef56d5a3552e4dd812d1a01cbae211eaf.tar.gz
puppet-sshd-98ddbe8ef56d5a3552e4dd812d1a01cbae211eaf.tar.bz2
change the debian 'hasrestart' option to a selector based on which $debian_version is detected,
etch does not have a ssh restart option in the initscript, but lenny does
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp9
1 files changed, 8 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 02f5e45..d4d775f 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -253,10 +253,17 @@ class sshd::debian inherits sshd::linux {
Package[openssh]{
name => 'openssh-server',
}
+
+ $ssh_hasrestart = $debian_version ? {
+ etch => false,
+ lenny => true,
+ default => false
+ }
+
Service[sshd]{
name => 'ssh',
hasstatus => true,
- hasrestart => true,
+ hasrestart => $ssh_hasrestart,
}
}
class sshd::ubuntu inherits sshd::debian {}