diff options
Diffstat (limited to 'manifests/server')
-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 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 ? { |