Using quoted strings for release comparison

This commit is contained in:
jigen 2016-08-16 15:26:03 +02:00
parent 85b43a2379
commit 1baecb9c4a

View file

@ -28,16 +28,16 @@ class sshd(
$hostbased_authentication = 'no',
$permit_empty_passwords = 'no',
$authorized_keys_file = $::osfamily ? {
Debian => $::lsbmajdistrelease ? {
'Debian' => $::lsbmajdistrelease ? {
6 => '%h/.ssh/authorized_keys',
default => '%h/.ssh/authorized_keys %h/.ssh/authorized_keys2',
},
RedHat => $::operatingsystemmajrelease ? {
'RedHat' => $::operatingsystemmajrelease ? {
5 => '%h/.ssh/authorized_keys',
6 => '%h/.ssh/authorized_keys',
default => '%h/.ssh/authorized_keys %h/.ssh/authorized_keys2',
},
OpenBSD => '%h/.ssh/authorized_keys',
'OpenBSD' => '%h/.ssh/authorized_keys',
default => '%h/.ssh/authorized_keys %h/.ssh/authorized_keys2',
},
$hardened = 'no',
@ -70,10 +70,10 @@ class sshd(
}
case $::operatingsystem {
gentoo: { include sshd::gentoo }
redhat,centos: { include sshd::redhat }
openbsd: { include sshd::openbsd }
debian,ubuntu: { include sshd::debian }
'gentoo': { include sshd::gentoo }
'redhat','centos': { include sshd::redhat }
'openbsd': { include sshd::openbsd }
'debian','ubuntu': { include sshd::debian }
default: { include sshd::base }
}