]> gitweb.fluxo.info Git - puppet-samba.git/commitdiff
Adding follow symlinks and wide links to the options for shares
authorTimothy M Pollard <timp@timp.com.au>
Sun, 12 Oct 2014 23:46:21 +0000 (09:46 +1000)
committerTimothy M Pollard <timp@timp.com.au>
Fri, 22 May 2015 04:30:06 +0000 (14:30 +1000)
manifests/server/share.pp

index d86e8c59867a3e02c2be1a10e4b9208cf134e61e..e6f5504fe7050fa291d2ec9c3bfbb3b4799c911d 100644 (file)
@@ -25,6 +25,8 @@ define samba::server::share($ensure = present,
                             $writable = '',
                             $printable = '',
                             $valid_users = '',
+                            $follow_symlinks = '',
+                            $wide_links = '',
                             ) {
 
   $incl    = $samba::server::incl
@@ -130,6 +132,16 @@ define samba::server::share($ensure = present,
         false   => "set \"${target}/printable\" no",
         default => "rm  \"${target}/printable\"",
       },
+      $follow_symlinks ? {
+        true    => "set \"${target}/follow symlinks\" yes",
+        false   => "set \"${target}/follow symlinks\" no",
+        default => "rm  \"${target}/follow symlinks\"",
+      },
+      $wide_links ? {
+        true    => "set \"${target}/wide links\" yes",
+        false   => "set \"${target}/wide links\" no",
+        default => "rm  \"${target}/wide links\"",
+      },
     ]
 
     augeas { "${name}-changes":