From 43573ff80748bc28f39c6cf00295b38e63fa9e81 Mon Sep 17 00:00:00 2001 From: Adam Jahn Date: Fri, 24 Aug 2012 14:49:06 -0400 Subject: implement directory mask config option --- manifests/server/share.pp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'manifests/server/share.pp') diff --git a/manifests/server/share.pp b/manifests/server/share.pp index d35adfb..48a4723 100644 --- a/manifests/server/share.pp +++ b/manifests/server/share.pp @@ -4,6 +4,7 @@ define samba::server::share($ensure = present, $browsable = '', $copy = '', $create_mask = '', + $directory_mask = '', $guest_ok = '', $read_only = '') { @@ -72,6 +73,16 @@ define samba::server::share($ensure = present, notify => Class["samba::server::service"] } + augeas { "${name}-directory_mask": + context => $context, + changes => $directory_mask ? { + default => "set \"${target}/directory mask\" '${directory_mask}'", + '' => "rm \"${target}/directory mask\"", + }, + require => Augeas["${name}-section"], + notify => Class["samba::server::service"] + } + augeas { "${name}-guest_ok": context => $context, changes => $guest_ok ? { -- cgit v1.2.3