diff options
author | Adam Jahn <ajjahn@gmail.com> | 2016-07-10 21:02:50 -0400 |
---|---|---|
committer | Adam Jahn <ajjahn@gmail.com> | 2016-07-10 21:02:50 -0400 |
commit | 293bcc94cba842737a89e37339d46ad5bb8cd6ab (patch) | |
tree | eee62f5826b102119ce89fec3eceebc503795687 /manifests/server | |
parent | e4a25276936fecb5465a7abdab34bee1c88e7df8 (diff) | |
download | puppet-samba-293bcc94cba842737a89e37339d46ad5bb8cd6ab.tar.gz puppet-samba-293bcc94cba842737a89e37339d46ad5bb8cd6ab.tar.bz2 |
re-implement guest account on the share level
Diffstat (limited to 'manifests/server')
-rw-r--r-- | manifests/server/share.pp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/manifests/server/share.pp b/manifests/server/share.pp index 86cbb13..5544caf 100644 --- a/manifests/server/share.pp +++ b/manifests/server/share.pp @@ -39,6 +39,7 @@ define samba::server::share($ensure = present, $delete_readonly = '', $printer_name = '', $msdfs_root = '', + $guest_account = '', ) { $incl = $samba::server::incl @@ -234,6 +235,10 @@ define samba::server::share($ensure = present, false => "set \"${target}/msdfs root\" no", default => "rm \"${target}/msdfs root\"", }, + $guest_account ? { + '' => "rm \"${target}/guest account\"", + default => "set \"${target}/guest account\" '${guest_account}'", + }, ] augeas { "${name}-changes": |