]> gitweb.fluxo.info Git - puppet-samba.git/commitdiff
Add option to add acl group control to a share
authorPete Brown <pete@abstractit.com.au>
Tue, 28 Jun 2016 15:49:00 +0000 (01:49 +1000)
committerAdam Jahn <ajjahn@gmail.com>
Sun, 10 Jul 2016 18:07:04 +0000 (14:07 -0400)
manifests/server/share.pp

index 9a5d0300222b7d76a54126a474bcb85c7c9e54f2..89bd8cc917ba9a289ad661c2e3adc13411ac7304 100644 (file)
@@ -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",