From 45892056cd0d33dd652429cc4ab82a893d444ef7 Mon Sep 17 00:00:00 2001 From: Jerome Charaoui Date: Thu, 15 Jan 2015 16:49:35 -0500 Subject: Debian squeeze and wheezy do not support the operatingsystemmajrelease fact (they ship facter 1.6.x) --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', }, -- cgit v1.2.3