diff options
Diffstat (limited to 'manifests/server/share.pp')
-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 64f4d82..22686b5 100644 --- a/manifests/server/share.pp +++ b/manifests/server/share.pp @@ -9,6 +9,7 @@ define samba::server::share($ensure = present, $force_directory_mask = '', $force_group = '', $force_user = '', + $guest_account = '', $guest_ok = '', $guest_only = '', $read_only = '') { @@ -128,6 +129,16 @@ define samba::server::share($ensure = present, notify => Class["samba::server::service"] } + augeas { "${name}-guest_account": + context => $context, + changes => $guest_account ? { + default => "set \"${target}/guest account\" '${guest_account}'", + '' => "rm \"${target}/guest account\"", + }, + require => Augeas["${name}-section"], + notify => Class["samba::server::service"] + } + augeas { "${name}-guest_ok": context => $context, changes => $guest_ok ? { |