aboutsummaryrefslogtreecommitdiff
path: root/manifests/debian.pp
blob: ced5db7380a7d5ead1e77020e254d767303d123f (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,
  }
}