2009-09-29 19:53:04 +02:00
|
|
|
class sshd::debian inherits sshd::linux {
|
|
|
|
|
|
|
|
# the templates for Debian need lsbdistcodename
|
2009-12-10 23:49:32 +01:00
|
|
|
require lsb
|
2009-09-29 19:53:04 +02:00
|
|
|
|
2009-10-30 22:07:23 +01:00
|
|
|
Package[openssh]{
|
|
|
|
name => 'openssh-server',
|
|
|
|
}
|
2009-12-10 23:15:07 +01:00
|
|
|
|
2012-06-05 23:23:03 +02:00
|
|
|
$sshd_restartandstatus = $::lsbdistcodename ? {
|
2013-02-03 00:30:54 +01:00
|
|
|
etch => false,
|
2010-10-13 23:48:39 +02:00
|
|
|
default => true
|
2009-12-10 23:15:07 +01:00
|
|
|
}
|
|
|
|
|
2009-10-30 22:07:23 +01:00
|
|
|
Service[sshd]{
|
2013-02-03 00:30:54 +01:00
|
|
|
name => 'ssh',
|
|
|
|
pattern => 'sshd',
|
|
|
|
hasstatus => $sshd_restartandstatus,
|
2009-12-10 23:15:07 +01:00
|
|
|
hasrestart => $sshd_restartandstatus,
|
2009-10-30 22:07:23 +01:00
|
|
|
}
|
2009-09-29 19:53:04 +02:00
|
|
|
}
|