From 98ddbe8ef56d5a3552e4dd812d1a01cbae211eaf Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Sun, 26 Oct 2008 12:39:45 -0400 Subject: 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 --- manifests/init.pp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'manifests') 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 {} -- cgit v1.2.3