From: Jerome Charaoui Date: Thu, 15 Jan 2015 21:49:35 +0000 (-0500) Subject: Debian squeeze and wheezy do not support the operatingsystemmajrelease fact (they... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=45892056cd0d33dd652429cc4ab82a893d444ef7;p=puppet-sshd.git Debian squeeze and wheezy do not support the operatingsystemmajrelease fact (they ship facter 1.6.x) --- diff --git a/manifests/init.pp b/manifests/init.pp index 5a38293..666b5ac 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -28,7 +28,7 @@ class sshd( $hostbased_authentication = 'no', $permit_empty_passwords = 'no', $authorized_keys_file = $::osfamily ? { - Debian => $::operatingsystemmajrelease ? { + Debian => $::lsbmajdistrelease ? { 6 => '%h/.ssh/authorized_keys', default => '%h/.ssh/authorized_keys %h/.ssh/authorized_keys2', },