diff options
author | Adam Jahn <ajjahn@gmail.com> | 2014-12-04 10:18:43 -0500 |
---|---|---|
committer | Adam Jahn <ajjahn@gmail.com> | 2014-12-04 10:18:43 -0500 |
commit | ccd3b424be3edb29c5576dbbbcf1ec2fa9e8ed88 (patch) | |
tree | 5ff83818472a8a8ad4dfadb8c787c12794f6b723 /manifests | |
parent | 949880cd9acd5d742ebd3bf361aef896e8d84477 (diff) | |
parent | 1da5b2a495a5b5857accb6cf1d904c1ec68a0ebe (diff) | |
download | puppet-samba-ccd3b424be3edb29c5576dbbbcf1ec2fa9e8ed88.tar.gz puppet-samba-ccd3b424be3edb29c5576dbbbcf1ec2fa9e8ed88.tar.bz2 |
Merge pull request #34 from kaistian/hide-unreadable
Added hide unreadable option to shares
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/server/share.pp | 6 |
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", |