diff options
author | Adam Jahn <ajjahn@gmail.com> | 2015-08-18 09:53:35 -0400 |
---|---|---|
committer | Adam Jahn <ajjahn@gmail.com> | 2015-08-18 09:53:35 -0400 |
commit | 3e76a0397ded9b4c9b494ec4e8bc257a0652615d (patch) | |
tree | 67a97ab7321b5e2ce60a15499f1e3f262bd2c2eb /manifests/server/share.pp | |
parent | b851897c3c8b64cffba01e0fbcb5375cbe5b2857 (diff) | |
parent | 539f0af2699d4286146884f9a9ba0983b966779a (diff) | |
download | puppet-samba-3e76a0397ded9b4c9b494ec4e8bc257a0652615d.tar.gz puppet-samba-3e76a0397ded9b4c9b494ec4e8bc257a0652615d.tar.bz2 |
Merge pull request #44 from thehyve/acl_allocation_options
Add 'map acl inherit', 'store dos attributes' and 'strict allocate' options
Diffstat (limited to 'manifests/server/share.pp')
-rw-r--r-- | manifests/server/share.pp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/server/share.pp b/manifests/server/share.pp index e6f5504..5a6667c 100644 --- a/manifests/server/share.pp +++ b/manifests/server/share.pp @@ -27,6 +27,9 @@ define samba::server::share($ensure = present, $valid_users = '', $follow_symlinks = '', $wide_links = '', + $map_acl_inherit = '', + $store_dos_attributes = '', + $strict_allocate = '', ) { $incl = $samba::server::incl @@ -142,6 +145,21 @@ define samba::server::share($ensure = present, false => "set \"${target}/wide links\" no", default => "rm \"${target}/wide links\"", }, + $map_acl_inherit ? { + true => "set \"${target}/map acl inherit\" yes", + false => "set \"${target}/map acl inherit\" no", + default => "rm \"${target}/map acl inherit\"", + }, + $store_dos_attributes ? { + true => "set \"${target}/store dos attributes\" yes", + false => "set \"${target}/store dos attributes\" no", + default => "rm \"${target}/store dos attributes\"", + }, + $strict_allocate ? { + true => "set \"${target}/strict allocate\" yes", + false => "set \"${target}/strict allocate\" no", + default => "rm \"${target}/strict allocate\"", + }, ] augeas { "${name}-changes": |