diff options
author | Pete Brown <pete@abstractit.com.au> | 2016-06-29 00:23:05 +1000 |
---|---|---|
committer | Adam Jahn <ajjahn@gmail.com> | 2016-07-10 14:36:43 -0400 |
commit | 858b93ce5c8080e98bd653cc452d2d7426019828 (patch) | |
tree | a8e3933412e5d532775b0847ab45854c72aedae1 /manifests/server | |
parent | babc3f5f1e924d071cb7ec137c5898ab1df4bf62 (diff) | |
download | puppet-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.pp | 6 |
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": |