blob: baacbba2063329153828a69f8ca30158104be68e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
class sshd::debian inherits sshd::linux {
# the templates for Debian need lsbdistcodename
ensure_resource('package', 'lsb-release', {'ensure' => 'present' })
#requires stdlib >= 3.2
#ensure_packages(['lsb-release'])
Package[openssh]{
name => 'openssh-server',
}
$sshd_restartandstatus = $::lsbdistcodename ? {
etch => false,
default => true
}
Service[sshd]{
name => 'ssh',
pattern => 'sshd',
hasstatus => $sshd_restartandstatus,
hasrestart => $sshd_restartandstatus,
}
}
|