]> gitweb.fluxo.info Git - puppet-samba.git/commitdiff
samba-common winbind package for rhel5
authorTomas Edwardsson <tommi@ok.is>
Sun, 1 Sep 2013 10:10:15 +0000 (10:10 +0000)
committerTomas Edwardsson <tommi@ok.is>
Sun, 1 Sep 2013 10:10:15 +0000 (10:10 +0000)
manifests/server/ads.pp

index ea6523d45e69ae4cfff7b2f780fe7148efc26f04..8ca8d459869654c9dcbe4b325c17607eb2d83740 100644 (file)
@@ -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{