From 6fb10939afd72a8e1243681f1ae9062abf0975fa Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Mon, 27 Oct 2008 17:00:39 -0400 Subject: In debian, the daemon is run as 'sshd', but the initscript is /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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'manifests') 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 {} -- cgit v1.2.3