Qubes print server - use dedicated template.

Install hplips
This commit is contained in:
unman 2022-05-25 15:14:15 +00:00
parent 31206db10c
commit 16ec0c5fb1
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
5 changed files with 50 additions and 1 deletions

9
print/clone.sls Normal file
View File

@ -0,0 +1,9 @@
include:
- template-debian-11-minimal
qvm-clone-id:
qvm.clone:
- require:
- sls: template-debian-11-minimal
- name: template-print
- source: debian-11-minimal

4
print/clone.top Normal file
View File

@ -0,0 +1,4 @@
base:
dom0:
- match: nodegroup
- print.clone

View File

@ -1,7 +1,13 @@
include:
- print.clone
require:
- print.clone
qvm-present-id:
qvm.present:
- name: sys-printer
- template: debian-11
- template: template-print
- label: gray
qvm-prefs-id:

25
print/install.sls Normal file
View File

@ -0,0 +1,25 @@
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
#
{% if salt['qvm.exists']('cacher') %}
/etc/apt/sources.list:
file.replace:
- names:
- /etc/apt/sources.list
- /etc/apt/sources.list.d/qubes-r4.list
- pattern: 'https://'
- repl: 'http://HTTPS///'
- flags: [ 'IGNORECASE', 'MULTILINE' ]
{% endif %}
installed:
pkg.installed:
- pkgs:
- qubes-core-agent-networking
- qubes-core-agent-passwordless-root
- cups
- hplip
- hplip-gui
- simplescan

5
print/install.top Normal file
View File

@ -0,0 +1,5 @@
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
base:
template-print:
- print.install