]> gitweb.fluxo.info Git - puppet-samba.git/commitdiff
Added hide unreadable option to shares
authorKai Stian Olstad <kai.stian.olstad@gmail.com>
Wed, 3 Dec 2014 07:41:59 +0000 (08:41 +0100)
committerKai Stian Olstad <kai.stian.olstad@gmail.com>
Wed, 3 Dec 2014 07:41:59 +0000 (08:41 +0100)
manifests/server/share.pp

index b228818de67560c5cd6bafb972650657341cba17..eacd5b7ad6d0dd8f946a934139cfd3e75f6163ab 100644 (file)
@@ -12,6 +12,7 @@ define samba::server::share($ensure = present,
                             $guest_account = '',
                             $guest_ok = '',
                             $guest_only = '',
+                            $hide_unreadable = '',
                             $path = '',
                             $op_locks = '',
                             $level2_oplocks = '',
@@ -98,6 +99,11 @@ define samba::server::share($ensure = present,
         false   => "set \"${target}/guest only\" no",
         default => "rm  \"${target}/guest only\"",
       },
+      $hide_unreadable ? {
+        true    => "set \"${target}/hide unreadable\" yes",
+        false   => "set \"${target}/hide unreadable\" no",
+        default => "rm  \"${target}/hide unreadable\"",
+      },
       $path ? {
         default => "set ${target}/path '${path}'",
         ''      => "rm  ${target}/path",