aboutsummaryrefslogtreecommitdiff
path: root/manifests/server
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/server')
-rw-r--r--manifests/server/share.pp6
1 files changed, 6 insertions, 0 deletions
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":