summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp7
1 files changed, 4 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 32b7109..1ac65f5 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -254,7 +254,7 @@ class sshd::debian inherits sshd::linux {
name => 'openssh-server',
}
- $ssh_hasrestart = $lsbdistcodename ? {
+ $sshd_restartandstatus = $lsbdistcodename ? {
etch => false,
lenny => true,
default => false
@@ -262,8 +262,9 @@ class sshd::debian inherits sshd::linux {
Service[sshd]{
name => 'ssh',
- hasstatus => true,
- hasrestart => $ssh_hasrestart,
+ pattern => 'sshd',
+ hasstatus => $sshd_restartandstatus,
+ hasrestart => $sshd_restartandstatus,
}
}
class sshd::ubuntu inherits sshd::debian {}