diff options
author | Jan Kanis <jan.code@jankanis.nl> | 2015-08-17 16:34:33 +0200 |
---|---|---|
committer | Jan Kanis <jan.code@jankanis.nl> | 2015-08-17 16:34:33 +0200 |
commit | 539f0af2699d4286146884f9a9ba0983b966779a (patch) | |
tree | 67a97ab7321b5e2ce60a15499f1e3f262bd2c2eb /manifests/server | |
parent | b851897c3c8b64cffba01e0fbcb5375cbe5b2857 (diff) | |
download | puppet-samba-539f0af2699d4286146884f9a9ba0983b966779a.tar.gz puppet-samba-539f0af2699d4286146884f9a9ba0983b966779a.tar.bz2 |
Add 'map acl inherit', 'store dos attributes' and 'strict allocate' options
Diffstat (limited to 'manifests/server')
-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": |