diff --git a/manifests/init.pp b/manifests/init.pp index 145f166..ca7ec9d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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 } }