From eaeb28eab8fd0d78f94bff1b9a05ea1755ef291e Mon Sep 17 00:00:00 2001 From: Pete Brown Date: Wed, 29 Jun 2016 00:44:59 +1000 Subject: Add option to set inherit acls on a share --- manifests/server/share.pp | 6 ++++++ 1 file changed, 6 insertions(+) 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": -- cgit v1.2.3