diff options
author | Tomas Edwardsson <tommi@ok.is> | 2013-09-01 10:10:15 +0000 |
---|---|---|
committer | Tomas Edwardsson <tommi@ok.is> | 2013-09-01 10:10:15 +0000 |
commit | 6878e0a98ed5922b2a76f2e6f5bfb4d0df611762 (patch) | |
tree | 25ec13b1d5c3e3a3057530c4b20b3be947d62e5f | |
parent | db21d4cdaedbe63674bb837ce7a70c310919cd0a (diff) | |
download | puppet-samba-6878e0a98ed5922b2a76f2e6f5bfb4d0df611762.tar.gz puppet-samba-6878e0a98ed5922b2a76f2e6f5bfb4d0df611762.tar.bz2 |
samba-common winbind package for rhel5
-rw-r--r-- | manifests/server/ads.pp | 12 |
1 files 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{ |