diff options
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 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": |