From: Timothy M Pollard Date: Sun, 12 Oct 2014 23:46:21 +0000 (+1000) Subject: Adding follow symlinks and wide links to the options for shares X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=cd964f57431a55ee9e043570e77b3df157a97bd3;p=puppet-samba.git Adding follow symlinks and wide links to the options for shares --- diff --git a/manifests/server/share.pp b/manifests/server/share.pp index d86e8c5..e6f5504 100644 --- a/manifests/server/share.pp +++ b/manifests/server/share.pp @@ -25,6 +25,8 @@ define samba::server::share($ensure = present, $writable = '', $printable = '', $valid_users = '', + $follow_symlinks = '', + $wide_links = '', ) { $incl = $samba::server::incl @@ -130,6 +132,16 @@ define samba::server::share($ensure = present, false => "set \"${target}/printable\" no", default => "rm \"${target}/printable\"", }, + $follow_symlinks ? { + true => "set \"${target}/follow symlinks\" yes", + false => "set \"${target}/follow symlinks\" no", + default => "rm \"${target}/follow symlinks\"", + }, + $wide_links ? { + true => "set \"${target}/wide links\" yes", + false => "set \"${target}/wide links\" no", + default => "rm \"${target}/wide links\"", + }, ] augeas { "${name}-changes":