]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
change the debian 'hasrestart' option to a selector based on which $debian_version...
authorMicah Anderson <micah@riseup.net>
Sun, 26 Oct 2008 16:39:45 +0000 (12:39 -0400)
committerMicah Anderson <micah@riseup.net>
Sun, 26 Oct 2008 16:39:45 +0000 (12:39 -0400)
etch does not have a ssh restart option in the initscript, but lenny does

manifests/init.pp

index 02f5e4535eca5601ced61bc45d6bd9842737315d..d4d775f808ea6a2bbdccd52221126e052fda7f12 100644 (file)
@@ -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 {}