qusal/salt/sys-cacher/uninstall-client.sls
Ben Grande bb4dcbbe8f
fix: cacher: restrict install to supported clients
- Enforce uninstall in Fedora, it has been too problematic due to zchunk
  checksum mismatch errors;
- Skip tagging and installing on unsupported qubes, before it tagged
  every template that did not have the tag 'whonix-updatevm', this is
  error prone as it would fail the installation on unsupported clients
  such as Gentoo, Mirage.

Fixes: https://github.com/ben-grande/qusal/issues/54
2024-05-29 18:29:27 +02:00

31 lines
815 B
Plaintext

{#
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
"{{ slsdotpath }}-install-client-scripts":
file.recurse:
- name: /usr/bin/
- source: salt://{{ slsdotpath }}/files/client/bin/
- file_mode: "0755"
- group: root
- user: root
- makedirs: True
"{{ slsdotpath }}-uninstall-client-repository-modifications":
cmd.run:
- require:
- file: "{{ slsdotpath }}-install-client-scripts"
- name: apt-cacher-ng-repo uninstall
- stateful: True
- runas: root
"{{ slsdotpath }}-uninstall-client-scripts":
file.absent:
- name: /usr/bin/apt-cacher-ng-repo
"{{ slsdotpath }}-uninstall-client-systemd-service":
file.absent:
- name: /usr/lib/systemd/system/qubes-apt-cacher-ng-repo.service