From 6878e0a98ed5922b2a76f2e6f5bfb4d0df611762 Mon Sep 17 00:00:00 2001 From: Tomas Edwardsson Date: Sun, 1 Sep 2013 10:10:15 +0000 Subject: samba-common winbind package for rhel5 --- manifests/server/ads.pp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/manifests/server/ads.pp b/manifests/server/ads.pp index ea6523d..8ca8d45 100644 --- a/manifests/server/ads.pp +++ b/manifests/server/ads.pp @@ -29,9 +29,15 @@ class samba::server::ads($ensure = present, 'RedHat' => 'krb5-workstation', default => 'krb5-user', } - $winbind_package = $osfamily ? { - 'RedHat' => 'samba-winbind', - default => 'winbind', + + if $osfamily == "RedHat" { + if $operatingsystemrelease =~ /^6\./) { + $winbind_package = 'samba-winbind' + } else { + $winbind_package = 'samba-common' + } + } else { + $winbind_package = 'winbind' } package{ -- cgit v1.2.3