summaryrefslogtreecommitdiff
path: root/manifests/debian.pp
blob: 45eb9018957c903ad45a0bf7dc4caa165bcb3f95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class sshd::debian inherits sshd::linux {

  # the templates for Debian need lsbdistcodename
  require lsb

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

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

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