diff options
Diffstat (limited to 'code/environments')
-rw-r--r-- | code/environments/production/manifests/site.pp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/code/environments/production/manifests/site.pp b/code/environments/production/manifests/site.pp index 4b04202..3e2ec9b 100644 --- a/code/environments/production/manifests/site.pp +++ b/code/environments/production/manifests/site.pp @@ -173,9 +173,15 @@ class debianeducacert_2_cacerts { class cups_browsed_polling { + file { '/etc/apparmor.d/local/usr.sbin.cups-browsed': + content => "/etc/cups/cups-browsed-debian-edu.conf r,\n", + } + ~> exec { '/usr/bin/systemctl restart apparmor.service': refreshonly => true } + ~> exec { '/usr/bin/systemctl restart cups-browsed.service': refreshonly => true } + exec { 'cups-browsed-reload': command => '/usr/sbin/service cups-browsed restart', - subscribe => [File_line['cups-browsed-poll-ipp-intern'], File_line['cups-browsed-queue-naming'], File_line['cups-browsed-no-remote-protos'], File_line['cups-browsed-no-local-protos']], + subscribe => [File_line['cups-browsed-create-remote-cups-printers'], File_line['cups-browsed-poll-ipp-intern'], File_line['cups-browsed-queue-naming'], File_line['cups-browsed-no-remote-protos'], File_line['cups-browsed-no-local-protos']], refreshonly => true, } @@ -185,6 +191,13 @@ class cups_browsed_polling { refreshonly => true, } + file_line { 'cups-browsed-create-remote-cups-printers': + path => '/etc/cups/cups-browsed.conf', + ensure => present, + line => "CreateRemoteCUPSPrinterQueues Yes", + match => '^CreateRemoteCUPSPrinterQueues.*', + } + file_line { 'cups-browsed-no-remote-protos': path => '/etc/cups/cups-browsed.conf', ensure => present, |