diff options
-rw-r--r-- | manifests/server/share.pp | 11 |
1 files changed, 11 insertions, 0 deletions
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 ? { |