From 87232b5f0aef4d25e1438dc11000d7c1be205842 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 5 Mar 2016 21:56:29 +0100 Subject: Add option hide dot files to share. --- manifests/server/share.pp | 6 ++++++ 1 file changed, 6 insertions(+) mode change 100644 => 100755 manifests/server/share.pp (limited to 'manifests/server/share.pp') diff --git a/manifests/server/share.pp b/manifests/server/share.pp old mode 100644 new mode 100755 index 7f8191c..b0690bb --- a/manifests/server/share.pp +++ b/manifests/server/share.pp @@ -29,6 +29,7 @@ define samba::server::share($ensure = present, $map_acl_inherit = '', $store_dos_attributes = '', $strict_allocate = '', + $hide_dot_files = '', ) { $incl = $samba::server::incl @@ -177,6 +178,11 @@ define samba::server::share($ensure = present, '' => "rm \"${target}/write list\"", default => "set \"${target}/write list\" '${write_list}'", }, + $hide_dot_files ? { + true => "set \"${target}/hide dot files\" yes", + false => "set \"${target}/hide dot files\" no", + default => "rm \"${target}/hide dot files\"", + }, ] augeas { "${name}-changes": -- cgit v1.2.3