From 4688b2bd2dc2393a1eacc583ce663634d01f70bb Mon Sep 17 00:00:00 2001 From: Pete Brown Date: Wed, 29 Jun 2016 00:57:44 +1000 Subject: Add option to set read list on a share --- manifests/server/share.pp | 5 +++++ 1 file changed, 5 insertions(+) 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}'", -- cgit v1.2.3