]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
In debian, the daemon is run as 'sshd', but the initscript is
authorMicah Anderson <micah@riseup.net>
Mon, 27 Oct 2008 21:00:39 +0000 (17:00 -0400)
committerMicah Anderson <micah@riseup.net>
Mon, 27 Oct 2008 21:00:39 +0000 (17:00 -0400)
/etc/init.d/ssh, which means that name needs to be set to 'ssh', and
pattern needs to be set to 'sshd', and then we set the hassstatus and
hasrestart depending on the lsbdistcodename

manifests/init.pp

index 32b71094507014cedb3a99dd6a3704dfede08f93..1ac65f58106653764c865e431a21d9384819e3fb 100644 (file)
@@ -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 {}