aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy M Pollard <timp@timp.com.au>2014-10-13 09:46:21 +1000
committerTimothy M Pollard <timp@timp.com.au>2015-05-22 14:30:06 +1000
commitcd964f57431a55ee9e043570e77b3df157a97bd3 (patch)
tree587c94b1a2c0425b1c8e91416727e111e0f2e668
parent8e332dafba6c6a1975d942801c98467723988fb7 (diff)
downloadpuppet-samba-cd964f57431a55ee9e043570e77b3df157a97bd3.tar.gz
puppet-samba-cd964f57431a55ee9e043570e77b3df157a97bd3.tar.bz2
Adding follow symlinks and wide links to the options for shares
-rw-r--r--manifests/server/share.pp12
1 files changed, 12 insertions, 0 deletions
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":