aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Brown <pete@abstractit.com.au>2016-06-29 00:57:44 +1000
committerAdam Jahn <ajjahn@gmail.com>2016-07-10 14:12:18 -0400
commit4688b2bd2dc2393a1eacc583ce663634d01f70bb (patch)
tree5f02a00bc306f386533497fdf519002ea6eea8f2
parent511a6f7cb82d6da0d31c2f563d195003bc0c39dd (diff)
downloadpuppet-samba-4688b2bd2dc2393a1eacc583ce663634d01f70bb.tar.gz
puppet-samba-4688b2bd2dc2393a1eacc583ce663634d01f70bb.tar.bz2
Add option to set read list on a share
-rw-r--r--manifests/server/share.pp5
1 files changed, 5 insertions, 0 deletions
diff --git a/manifests/server/share.pp b/manifests/server/share.pp
index 89bd8cc..b68013b 100644
--- a/manifests/server/share.pp
+++ b/manifests/server/share.pp
@@ -20,6 +20,7 @@ define samba::server::share($ensure = present,
$veto_oplock_files = '',
$read_only = '',
$public = '',
+ $read_list = '',
$write_list = '',
$writable = '',
$printable = '',
@@ -187,6 +188,10 @@ define samba::server::share($ensure = present,
'' => "rm \"${target}/veto oplock files\"",
default => "set \"${target}/veto oplock files\" '${veto_oplock_files}'",
},
+ $read_list ? {
+ '' => "rm \"${target}/read list\"",
+ default => "set \"${target}/read list\" '${read_list}'",
+ },
$write_list ? {
'' => "rm \"${target}/write list\"",
default => "set \"${target}/write list\" '${write_list}'",