aboutsummaryrefslogtreecommitdiff
path: root/manifests/server
diff options
context:
space:
mode:
authorKai Stian Olstad <kai.stian.olstad@gmail.com>2014-12-03 08:41:59 +0100
committerKai Stian Olstad <kai.stian.olstad@gmail.com>2014-12-03 08:41:59 +0100
commit1da5b2a495a5b5857accb6cf1d904c1ec68a0ebe (patch)
tree5ff83818472a8a8ad4dfadb8c787c12794f6b723 /manifests/server
parent949880cd9acd5d742ebd3bf361aef896e8d84477 (diff)
downloadpuppet-samba-1da5b2a495a5b5857accb6cf1d904c1ec68a0ebe.tar.gz
puppet-samba-1da5b2a495a5b5857accb6cf1d904c1ec68a0ebe.tar.bz2
Added hide unreadable option to shares
Diffstat (limited to 'manifests/server')
-rw-r--r--manifests/server/share.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/server/share.pp b/manifests/server/share.pp
index b228818..eacd5b7 100644
--- a/manifests/server/share.pp
+++ b/manifests/server/share.pp
@@ -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",