From 4475fb5496eeeea6cae610f029513369d58f385e Mon Sep 17 00:00:00 2001 From: Pete Brown Date: Wed, 29 Jun 2016 00:09:36 +1000 Subject: Add option for setting printer name on a share --- manifests/server/share.pp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'manifests/server/share.pp') 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": -- cgit v1.2.3