aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorPete Brown <pete@abstractit.com.au>2016-06-29 00:44:59 +1000
committerAdam Jahn <ajjahn@gmail.com>2016-07-10 14:32:43 -0400
commiteaeb28eab8fd0d78f94bff1b9a05ea1755ef291e (patch)
treed52b6276a6a3373cde615657a55616f7faaa6edf /manifests
parent0831bc6db6914e8da7cdde08f05bba5ec9119179 (diff)
downloadpuppet-samba-eaeb28eab8fd0d78f94bff1b9a05ea1755ef291e.tar.gz
puppet-samba-eaeb28eab8fd0d78f94bff1b9a05ea1755ef291e.tar.bz2
Add option to set inherit acls on a share
Diffstat (limited to 'manifests')
-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 58599d9..f039472 100644
--- a/manifests/server/share.pp
+++ b/manifests/server/share.pp
@@ -35,6 +35,7 @@ define samba::server::share($ensure = present,
$hide_dot_files = '',
$root_preexec = '',
$inherit_permissions = '',
+ $inherit_acls = '',
) {
$incl = $samba::server::incl
@@ -211,6 +212,11 @@ define samba::server::share($ensure = present,
false => "set \"${target}/inherit permissions\" no",
default => "rm \"${target}/inherit permissions\"",
},
+ $inherit_acls ? {
+ true => "set \"${target}/inherit acls\" yes",
+ false => "set \"${target}/inherit acls\" no",
+ default => "rm \"${target}/inherit acls\"",
+ },
]
augeas { "${name}-changes":