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