Using quoted strings for release comparison
This commit is contained in:
parent
85b43a2379
commit
1baecb9c4a
1 changed files with 7 additions and 7 deletions
|
@ -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 }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue