From 1c4badb6ee219badf7d4369db128f9267cb863c0 Mon Sep 17 00:00:00 2001 From: Adam Jahn Date: Fri, 24 Aug 2012 14:40:51 -0400 Subject: implement copy config option --- manifests/server/share.pp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'manifests') diff --git a/manifests/server/share.pp b/manifests/server/share.pp index 1c3888e..eb86168 100644 --- a/manifests/server/share.pp +++ b/manifests/server/share.pp @@ -2,6 +2,7 @@ define samba::server::share($ensure = present, $comment = '', $path = '', $browsable = '', + $copy = '', $create_mask = '', $guest_ok = '', $read_only = '') { @@ -51,6 +52,16 @@ define samba::server::share($ensure = present, notify => Class["samba::server::service"] } + augeas { "${name}-copy": + context => $context, + changes => $copy ? { + default => "set ${target}/copy '${copy}'", + '' => "rm ${target}/copy", + }, + require => Augeas["${name}-section"], + notify => Class["samba::server::service"] + } + augeas { "${name}-create_mask": context => $context, changes => $create_mask ? { -- cgit v1.2.3