aboutsummaryrefslogtreecommitdiff
path: root/manifests/server/share.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/server/share.pp')
-rw-r--r--manifests/server/share.pp5
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":