From 36b2f12d930cd8e552ec8a3d640c116b70b844e5 Mon Sep 17 00:00:00 2001 From: Pete Brown Date: Wed, 29 Jun 2016 00:52:36 +1000 Subject: Add options to set iherit permissions on a share --- manifests/server/share.pp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'manifests/server/share.pp') 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": -- cgit v1.2.3