From cd964f57431a55ee9e043570e77b3df157a97bd3 Mon Sep 17 00:00:00 2001 From: Timothy M Pollard Date: Mon, 13 Oct 2014 09:46:21 +1000 Subject: Adding follow symlinks and wide links to the options for shares --- manifests/server/share.pp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'manifests/server') 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": -- cgit v1.2.3