aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/server.pp4
-rw-r--r--manifests/server/share.pp5
2 files changed, 3 insertions, 6 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index 8a5853c..027471c 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -12,7 +12,8 @@ class samba::server($interfaces = '',
$load_printers = '',
$printing = '',
$printcap_name = '',
- $map_to_guest = '',
+ $map_to_guest = 'Never',
+ $guest_account = '',
$disable_spoolss = '',
$kernel_oplocks = '',
$pam_password_change = '',
@@ -52,6 +53,7 @@ class samba::server($interfaces = '',
'printing': value => $printing;
'printcap name': value => $printcap_name;
'map to guest': value => $map_to_guest;
+ 'guest account': value => $guest_account;
'disable spoolss': value => $disable_spoolss;
'kernel oplocks': value => $kernel_oplocks;
'pam password change': value => $pam_password_change;
diff --git a/manifests/server/share.pp b/manifests/server/share.pp
index c682055..e5e23f1 100644
--- a/manifests/server/share.pp
+++ b/manifests/server/share.pp
@@ -11,7 +11,6 @@ define samba::server::share($ensure = present,
$force_directory_mask = '',
$force_group = '',
$force_user = '',
- $guest_account = '',
$guest_ok = '',
$guest_only = '',
$hide_unreadable = '',
@@ -94,10 +93,6 @@ define samba::server::share($ensure = present,
'' => "rm \"${target}/force user\"",
default => "set \"${target}/force user\" '${force_user}'",
},
- $guest_account ? {
- '' => "rm \"${target}/guest account\"",
- default => "set \"${target}/guest account\" '${guest_account}'",
- },
$guest_ok ? {
true => "set \"${target}/guest ok\" yes",
false => "set \"${target}/guest ok\" no",