sys-print: switch base to fedora

this resolved getting printing+scanning working
simultaneously for usb multi-function printer.
This commit is contained in:
3np 2025-03-22 04:54:03 +00:00
parent e0d93d2349
commit 81e1473ef7
No known key found for this signature in database
GPG key ID: 3052A2FF7AE6076D
2 changed files with 31 additions and 5 deletions

View file

@ -5,4 +5,4 @@ SPDX-License-Identifier: AGPL-3.0-or-later
#}
{% from 'utils/macros/clone-template.sls' import clone_template -%}
{{ clone_template('debian-minimal', sls_path) }}
{{ clone_template('fedora-minimal', sls_path) }}

View file

@ -28,15 +28,41 @@ include:
- ipp-usb
- man-db
## Print
- printer-driver-cups-pdf
- system-config-printer
## Scan
## TODO: simple-scan did not detect my scanner, but detected printer.
- simple-scan
- sane
- sane-utils
- sane-airscan
{% set pkg = {
'Arch': {
'pkg': [
],
},
'Debian': {
'pkg': [
'printer-driver-cups-pdf',
'sane',
'sane-utils',
],
},
'RedHat': {
'pkg': [
'cups-filters-driverless',
'cups-ipptool',
'cups-pdf',
'gutenprint-cups',
'sane-backends',
],
},
}.get(grains.os_family) -%}
"{{ slsdotpath }}-installed-os-specific":
pkg.installed:
- setopt: "install_weak_deps=False"
- skip_suggestions: True
- setopt: "install_weak_deps=False"
- pkgs: {{ pkg.pkg|sequence|yaml }}
"{{ slsdotpath }}-add-user-to-lpadmin-group":
group.present:
- name: lpadmin