mirror of
https://github.com/ben-grande/qusal.git
synced 2025-03-05 05:09:27 -05:00

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
16 lines
356 B
Plaintext
16 lines
356 B
Plaintext
{#
|
|
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
|
|
|
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":
|
|
pkg.uptodate:
|
|
- refresh: True
|