updated salt setup

This commit is contained in:
2025-05-05 01:07:28 -04:00
parent 896e005a98
commit 393d52595f
2 changed files with 8 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{% from "salt/map.jinja" import salt_daemons with context %}
{% if grains['os'] != 'CentOS' %}
{% if grains['os'] not in ('CentOS', 'AlmaLinux') %}
{{ raise("Unsupported distro") }}
{% endif %}
@@ -10,7 +10,7 @@
salt:
pkgrepo.managed:
- baseurl: "https://repo.saltproject.io/salt/py3/redhat/{{ grains['osmajorrelease'] }}/x86_64/minor/{{ salt.pillar.get("salt:version") }}"
- humanname: Salt repo for RHEL/CentOS {{ grains['osmajorrelease'] }} PY3
- humanname: Salt repo for RHEL/CentOS/AlmaLinux {{ grains['osmajorrelease'] }} PY3
- gpgkey: file:///etc/pki/rpm-gpg/SALT-PROJECT-GPG-PUBKEY-2023
- skip_if_unavailable: true
- failovermethod: priority