From 858b93ce5c8080e98bd653cc452d2d7426019828 Mon Sep 17 00:00:00 2001 From: Pete Brown Date: Wed, 29 Jun 2016 00:23:05 +1000 Subject: Add option to set delete readonly on a share --- manifests/server/share.pp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'manifests/server') diff --git a/manifests/server/share.pp b/manifests/server/share.pp index f039472..4bd146d 100644 --- a/manifests/server/share.pp +++ b/manifests/server/share.pp @@ -36,6 +36,7 @@ define samba::server::share($ensure = present, $root_preexec = '', $inherit_permissions = '', $inherit_acls = '', + $delete_readonly = '', ) { $incl = $samba::server::incl @@ -217,6 +218,11 @@ define samba::server::share($ensure = present, false => "set \"${target}/inherit acls\" no", default => "rm \"${target}/inherit acls\"", }, + $delete_readonly ? { + true => "set \"${target}/delete read only\" yes", + false => "set \"${target}/delete read only\" no", + default => "rm \"${target}/delete read only\"", + }, ] augeas { "${name}-changes": -- cgit v1.2.3