qusal/salt/dom0/helpers.sls
Ben Grande 425748ab9e fix: install screenshot dependencies
Provided in the default Dom0 installation as it brings a much better
usability and small packages.

KDE ships with kdialog but without a screenshot utility.
Xfce ships with xfce4-screenshooter but without a dialog utility.
Scrot and Zenity are minimal tools that works on both DEs and are very
small packages.

Fixes: https://github.com/ben-grande/qusal/issues/22
2024-03-15 11:03:00 +01:00

39 lines
931 B
Plaintext

{#
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
{% if grains['nodename'] == 'dom0' -%}
"{{ slsdotpath }}-terminal-helper":
file.managed:
- name: /usr/local/bin/qvm-terminal
- source: salt://{{ slsdotpath }}/files/bin/qvm-terminal
- mode: "0755"
- user: root
- group: root
- makedirs: True
"{{ slsdotpath }}-file-manager-helper":
file.symlink:
- require:
- file: "{{ slsdotpath }}-terminal-helper"
- name: /usr/local/bin/qvm-file-manager
- target: /usr/local/bin/qvm-terminal
- user: root
- group: root
- force: True
- makedirs: True
"{{ slsdotpath }}-copy-to-dom0-helper":
file.managed:
- name: /usr/local/bin/qvm-copy-to-dom0
- source: salt://{{ slsdotpath }}/files/bin/qvm-copy-to-dom0
- mode: "0755"
- user: root
- group: root
- makedirs: True
{% endif -%}