fix: install caching client before common update

Cacher client installation state included in the common update state as
all qubes that updates with Qusal states use it, rather than including
it on all the installation states. The macro utils.macros.install-repo
still also run's apt-cacher-ng-repo in case the user is not updating at
that moment, just adding a new repository without restarting the qube
(systemd service has already ran).

Fixes: https://github.com/ben-grande/qusal/issues/66
This commit is contained in:
Ben Grande 2024-06-22 10:21:40 +02:00
parent 312b871bd7
commit 7df3be4b78
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56
2 changed files with 6 additions and 1 deletions

View File

@ -11,7 +11,6 @@ https://www.kicksecure.com/wiki/Debian
include: include:
- kicksecure-minimal.install-repo - kicksecure-minimal.install-repo
- utils.tools.common.update - utils.tools.common.update
- sys-cacher.install-client
- utils.tools.zsh - utils.tools.zsh
"{{ slsdotpath }}-installed": "{{ slsdotpath }}-installed":

View File

@ -4,6 +4,12 @@ SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later SPDX-License-Identifier: AGPL-3.0-or-later
#} #}
{% if salt['cmd.retcode']('command -v apt-cacher-ng-repo >/dev/null') == 0 -%}
"common-update-run-apt-cacher-ng-repo":
cmd.run:
- name: apt-cacher-ng-repo
{% endif -%}
"common-updated": "common-updated":
pkg.uptodate: pkg.uptodate:
- refresh: True - refresh: True