$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',
$sshkey_ipaddress = $::ipaddress,
$manage_client = true,
$hostkey_type = versioncmp($::ssh_version, '6.5') ? {
- /(^1|0)/ => [ 'rsa', 'ed25519' ],
- /-1/ => [ 'rsa', 'dsa' ]
+ 0 => [ 'rsa', 'ed25519' ],
+ 1 => [ 'rsa', 'ed25519' ],
+ -1 => [ 'rsa', 'dsa' ]
},
$use_storedconfigs = true
) {