aboutsummaryrefslogtreecommitdiff
path: root/manifests/debian.pp
blob: 849d9f4671fe20379a236b761110bf3fcb8b5189 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class sshd::debian inherits sshd::linux {

  # the templates for Debian need lsbdistcodename
  include lsb
  File['sshd_config']{
    require +> Package['lsb']
  }

  Package[openssh]{
    name => 'openssh-server',
  }

  $sshd_restartandstatus = $lsbdistcodename ? {
    etch => false,
    lenny => true,
    default => false
  }

  Service[sshd]{
    name => 'ssh',
    pattern => 'sshd',
    hasstatus => $sshd_restartandstatus,
    hasrestart => $sshd_restartandstatus,
  }
}