diff options
author | mh <mh@immerda.ch> | 2009-12-10 23:15:07 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2009-12-10 23:15:07 +0100 |
commit | bdf7bd334ee6a6a07eb6cfab17dc9c7fc79ec1a8 (patch) | |
tree | dc1ec042b5609e9896570dcd32bd3d252cbf68f8 /manifests/debian.pp | |
parent | 81063ee57bdbdc1e888755ed74af795dfbcac611 (diff) | |
parent | 6601c382962824e7467fb00ea5a84894a901b937 (diff) | |
download | puppet-sshd-bdf7bd334ee6a6a07eb6cfab17dc9c7fc79ec1a8.tar.gz puppet-sshd-bdf7bd334ee6a6a07eb6cfab17dc9c7fc79ec1a8.tar.bz2 |
merged with riseup module, various cleaning up
Diffstat (limited to 'manifests/debian.pp')
-rw-r--r-- | manifests/debian.pp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/manifests/debian.pp b/manifests/debian.pp index 528779c..849d9f4 100644 --- a/manifests/debian.pp +++ b/manifests/debian.pp @@ -3,14 +3,23 @@ class sshd::debian inherits sshd::linux { # the templates for Debian need lsbdistcodename include lsb File['sshd_config']{ - require => Package['lsb'] + require +> Package['lsb'] } Package[openssh]{ name => 'openssh-server', } + + $sshd_restartandstatus = $lsbdistcodename ? { + etch => false, + lenny => true, + default => false + } + Service[sshd]{ name => 'ssh', - hasstatus => false, + pattern => 'sshd', + hasstatus => $sshd_restartandstatus, + hasrestart => $sshd_restartandstatus, } } |