From 8112ca0c42426b442984448ad2f3e9dae03089cd Mon Sep 17 00:00:00 2001 From: Pete Brown Date: Wed, 29 Jun 2016 01:49:00 +1000 Subject: Add option to add acl group control to a share --- manifests/server/share.pp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manifests/server/share.pp b/manifests/server/share.pp index 9a5d030..89bd8cc 100644 --- a/manifests/server/share.pp +++ b/manifests/server/share.pp @@ -26,6 +26,7 @@ define samba::server::share($ensure = present, $valid_users = '', $follow_symlinks = '', $wide_links = '', + $acl_group_control = '', $map_acl_inherit = '', $profile_acls = '', $store_dos_attributes = '', @@ -145,6 +146,11 @@ define samba::server::share($ensure = present, false => "set \"${target}/wide links\" no", default => "rm \"${target}/wide links\"", }, + $acl_group_control ? { + true => "set \"${target}/acl group control\" yes", + false => "set \"${target}/acl group control\" no", + default => "rm \"${target}/acl group control\"", + }, $map_acl_inherit ? { true => "set \"${target}/map acl inherit\" yes", false => "set \"${target}/map acl inherit\" no", -- cgit v1.2.3