diff options
author | Pete Brown <pete@abstractit.com.au> | 2016-06-29 00:09:36 +1000 |
---|---|---|
committer | Adam Jahn <ajjahn@gmail.com> | 2016-07-10 14:48:24 -0400 |
commit | 4475fb5496eeeea6cae610f029513369d58f385e (patch) | |
tree | ccad65c5912b6fd9d6203ad151a53ab7601e738e /manifests/server | |
parent | 245503153be7ef32b90b4074707b86a68f99667f (diff) | |
download | puppet-samba-4475fb5496eeeea6cae610f029513369d58f385e.tar.gz puppet-samba-4475fb5496eeeea6cae610f029513369d58f385e.tar.bz2 |
Add option for setting printer name on a share
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 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": |