aboutsummaryrefslogtreecommitdiff
path: root/manifests/server
diff options
context:
space:
mode:
authorPete Brown <pete@abstractit.com.au>2016-06-29 00:52:36 +1000
committerAdam Jahn <ajjahn@gmail.com>2016-07-10 14:25:01 -0400
commit36b2f12d930cd8e552ec8a3d640c116b70b844e5 (patch)
treeb3317fe61ad673f903c5029927c62d67f1a94c05 /manifests/server
parent113514e18a349e574be1205ee5008ee4e2c872c4 (diff)
downloadpuppet-samba-36b2f12d930cd8e552ec8a3d640c116b70b844e5.tar.gz
puppet-samba-36b2f12d930cd8e552ec8a3d640c116b70b844e5.tar.bz2
Add options to set iherit permissions on a share
Diffstat (limited to 'manifests/server')
-rw-r--r--manifests/server/share.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/server/share.pp b/manifests/server/share.pp
index 7cf0ffc..58599d9 100644
--- a/manifests/server/share.pp
+++ b/manifests/server/share.pp
@@ -34,6 +34,7 @@ define samba::server::share($ensure = present,
$strict_allocate = '',
$hide_dot_files = '',
$root_preexec = '',
+ $inherit_permissions = '',
) {
$incl = $samba::server::incl
@@ -205,6 +206,11 @@ define samba::server::share($ensure = present,
'' => "rm \"${target}/root preexec\"",
default => "set \"${target}/root preexec\" '${root_preexec}'",
},
+ $inherit_permissions ? {
+ true => "set \"${target}/inherit permissions\" yes",
+ false => "set \"${target}/inherit permissions\" no",
+ default => "rm \"${target}/inherit permissions\"",
+ },
]
augeas { "${name}-changes":