aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jahn <ajjahn@gmail.com>2015-08-18 09:53:35 -0400
committerAdam Jahn <ajjahn@gmail.com>2015-08-18 09:53:35 -0400
commit3e76a0397ded9b4c9b494ec4e8bc257a0652615d (patch)
tree67a97ab7321b5e2ce60a15499f1e3f262bd2c2eb
parentb851897c3c8b64cffba01e0fbcb5375cbe5b2857 (diff)
parent539f0af2699d4286146884f9a9ba0983b966779a (diff)
downloadpuppet-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
-rw-r--r--manifests/server/share.pp18
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":