diff options
-rw-r--r-- | manifests/server/share.pp | 6 |
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": |