From 4eb0354cf15068a02eb3f873d3fc241e55f75fc5 Mon Sep 17 00:00:00 2001 From: Adam Jahn Date: Fri, 24 Aug 2012 14:31:00 -0400 Subject: provision create mask --- manifests/server/share.pp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/manifests/server/share.pp b/manifests/server/share.pp index d9791cb..330a0b0 100644 --- a/manifests/server/share.pp +++ b/manifests/server/share.pp @@ -2,6 +2,7 @@ define samba::server::share($ensure = present, $description = '', $path = '', $browsable = '', + $create_mask = '', $guest_ok = '', $read_only = '') { @@ -50,6 +51,16 @@ define samba::server::share($ensure = present, notify => Class["samba::server::service"] } + augeas { "${name}-create_mask": + context => $context, + changes => $create_mask ? { + default => "set \"${target}/create mask\" yes", + '' => "rm \"${target}/create mask\"", + }, + require => Augeas["${name}-section"], + notify => Class["samba::server::service"] + } + augeas { "${name}-guest_ok": context => $context, changes => $guest_ok ? { -- cgit v1.2.3