aboutsummaryrefslogtreecommitdiff
path: root/manifests/server
diff options
context:
space:
mode:
authorPete Brown <pete@abstractit.com.au>2016-06-29 00:23:05 +1000
committerAdam Jahn <ajjahn@gmail.com>2016-07-10 14:36:43 -0400
commit858b93ce5c8080e98bd653cc452d2d7426019828 (patch)
treea8e3933412e5d532775b0847ab45854c72aedae1 /manifests/server
parentbabc3f5f1e924d071cb7ec137c5898ab1df4bf62 (diff)
downloadpuppet-samba-858b93ce5c8080e98bd653cc452d2d7426019828.tar.gz
puppet-samba-858b93ce5c8080e98bd653cc452d2d7426019828.tar.bz2
Add option to set delete readonly on a share
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":