aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 45dd5a0..bbdc0a6 100644
--- a/manifests/server/share.pp
+++ b/manifests/server/share.pp
@@ -37,6 +37,7 @@ define samba::server::share($ensure = present,
$inherit_permissions = '',
$inherit_acls = '',
$delete_readonly = '',
+ $printer_name = '',
) {
$incl = $samba::server::incl
@@ -223,6 +224,10 @@ define samba::server::share($ensure = present,
false => "set \"${target}/delete readonly\" no",
default => "rm \"${target}/delete readonly\"",
},
+ $printer_name ? {
+ default => "set \"${target}/printer name\" '${printer_name}'",
+ '' => "rm \"${target}/printer name\"",
+ },
]
augeas { "${name}-changes":