Qubes print server - update to 4.1

This commit is contained in:
unman 2022-05-16 16:18:36 +00:00
parent 84f5a3c212
commit 7a03c456d8
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
3 changed files with 15 additions and 8 deletions

View File

@ -7,9 +7,16 @@
binds+=( '/etc/qubes-rpc/qubes.Print' )
- makedirs: True
create_qrexec:
file.managed:
- name: /rw/bind-dirs/etc/qubes-rpc/qubes.Print
- mode: 755
- user: root
- group: root
- makedirs: True
/rw/bind-dirs/etc/qubes-rpc/qubes.Print:
file.append:
- text: |
#!/bin/sh
exec socat STDIO TCP:localhost:631
- makedirs: True

View File

@ -1,5 +1,5 @@
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
base:
printer:
sys-printer:
- print.configure

View File

@ -1,17 +1,17 @@
qvm-present-id:
qvm.present:
- name: printer
- template: debian-10
- name: sys-printer
- template: debian-11
- label: gray
qvm-prefs-id:
qvm.prefs:
- name: printer
- name: sys-printer
- netvm: sys-firewall
qvm-features-id:
qvm.features:
- name: printer
- name: sys-printer
- disable:
- service.cups-browsed
- enable:
@ -19,5 +19,5 @@ qvm-features-id:
update_file:
file.prepend:
- name: '/etc/qubes-rpc/policy/qubes.Print'
- text: '@anyvm @anyvm ask,default_target=printer'
- name: '/etc/qubes/policy.d/30-user.policy'
- text: 'qubes.Print * @anyvm @anyvm ask default_target=sys-printer'