aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jahn <ajjahn@gmail.com>2015-07-18 14:36:30 -0400
committerAdam Jahn <ajjahn@gmail.com>2015-07-18 14:36:30 -0400
commitf08c0c4d785773a73edfcb73f3797a9c80ed8871 (patch)
tree668fef153e5ab54d320367b531f0faf463cd0232
parent41071a7d4a0c712dba767336b41605e23b60c2a1 (diff)
parentcd964f57431a55ee9e043570e77b3df157a97bd3 (diff)
downloadpuppet-samba-f08c0c4d785773a73edfcb73f3797a9c80ed8871.tar.gz
puppet-samba-f08c0c4d785773a73edfcb73f3797a9c80ed8871.tar.bz2
Merge pull request #39 from CollabNet/links
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":