From 1da5b2a495a5b5857accb6cf1d904c1ec68a0ebe Mon Sep 17 00:00:00 2001 From: Kai Stian Olstad Date: Wed, 3 Dec 2014 08:41:59 +0100 Subject: Added hide unreadable option to shares --- manifests/server/share.pp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'manifests') diff --git a/manifests/server/share.pp b/manifests/server/share.pp index b228818..eacd5b7 100644 --- a/manifests/server/share.pp +++ b/manifests/server/share.pp @@ -12,6 +12,7 @@ define samba::server::share($ensure = present, $guest_account = '', $guest_ok = '', $guest_only = '', + $hide_unreadable = '', $path = '', $op_locks = '', $level2_oplocks = '', @@ -98,6 +99,11 @@ define samba::server::share($ensure = present, false => "set \"${target}/guest only\" no", default => "rm \"${target}/guest only\"", }, + $hide_unreadable ? { + true => "set \"${target}/hide unreadable\" yes", + false => "set \"${target}/hide unreadable\" no", + default => "rm \"${target}/hide unreadable\"", + }, $path ? { default => "set ${target}/path '${path}'", '' => "rm ${target}/path", -- cgit v1.2.3