diff options
author | Pete Brown <pete@abstractit.com.au> | 2016-06-29 00:44:59 +1000 |
---|---|---|
committer | Adam Jahn <ajjahn@gmail.com> | 2016-07-10 14:32:43 -0400 |
commit | eaeb28eab8fd0d78f94bff1b9a05ea1755ef291e (patch) | |
tree | d52b6276a6a3373cde615657a55616f7faaa6edf /manifests/server | |
parent | 0831bc6db6914e8da7cdde08f05bba5ec9119179 (diff) | |
download | puppet-samba-eaeb28eab8fd0d78f94bff1b9a05ea1755ef291e.tar.gz puppet-samba-eaeb28eab8fd0d78f94bff1b9a05ea1755ef291e.tar.bz2 |
Add option to set inherit acls on a share
Diffstat (limited to 'manifests/server')
-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": |