Page MenuHomeDevCentral

D3127.diff
No OneTemporary

D3127.diff

diff --git a/roles/core/salt/files/salt.repo b/roles/core/salt/files/salt.repo
new file mode 100644
--- /dev/null
+++ b/roles/core/salt/files/salt.repo
@@ -0,0 +1,9 @@
+[salt-latest-repo]
+name=Salt repo for RHEL/CentOS 9 PY3
+baseurl=https://repo.saltproject.io/salt/py3/redhat/9/x86_64/latest
+skip_if_unavailable=True
+priority=10
+enabled=1
+enabled_metadata=1
+gpgcheck=1
+gpgkey=https://repo.saltproject.io/salt/py3/redhat/9/x86_64/latest/SALT-PROJECT-GPG-PUBKEY-2023.pub
diff --git a/roles/core/salt/init.sls b/roles/core/salt/init.sls
--- a/roles/core/salt/init.sls
+++ b/roles/core/salt/init.sls
@@ -14,6 +14,16 @@
- name: roles
- value: {{ salt['node.get_list']("roles") }}
+# -------------------------------------------------------------
+# Repository
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{% if grains['os_family'] == 'RedHat' %}
+/etc/yum.repos.d/salt.repo:
+ file.managed:
+ - source: salt://roles/core/salt/files/salt.repo
+{% endif %}
+
# -------------------------------------------------------------
# Service
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 17:58 (21 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2267415
Default Alt Text
D3127.diff (1 KB)

Event Timeline