From 539f0af2699d4286146884f9a9ba0983b966779a Mon Sep 17 00:00:00 2001 From: Jan Kanis Date: Mon, 17 Aug 2015 16:34:33 +0200 Subject: Add 'map acl inherit', 'store dos attributes' and 'strict allocate' options --- manifests/server/share.pp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'manifests') 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": -- cgit v1.2.3