module-sshd/manifests/debian.pp

22 lines
423 B
Puppet

class sshd::debian inherits sshd::linux {
# the templates for Debian need lsbdistcodename
require lsb
Package[openssh]{
name => 'openssh-server',
}
$sshd_restartandstatus = $lsbdistcodename ? {
etch => false,
lenny => true,
default => false
}
Service[sshd]{
name => 'ssh',
pattern => 'sshd',
hasstatus => $sshd_restartandstatus,
hasrestart => $sshd_restartandstatus,
}
}