/etc/init.d/ssh, which means that name needs to be set to 'ssh', and
pattern needs to be set to 'sshd', and then we set the hassstatus and
hasrestart depending on the lsbdistcodename
name => 'openssh-server',
}
- $ssh_hasrestart = $lsbdistcodename ? {
+ $sshd_restartandstatus = $lsbdistcodename ? {
etch => false,
lenny => true,
default => false
Service[sshd]{
name => 'ssh',
- hasstatus => true,
- hasrestart => $ssh_hasrestart,
+ pattern => 'sshd',
+ hasstatus => $sshd_restartandstatus,
+ hasrestart => $sshd_restartandstatus,
}
}
class sshd::ubuntu inherits sshd::debian {}