Page MenuHomeDevCentral

D3127.id7973.diff
No OneTemporary

D3127.id7973.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
Tue, Dec 24, 04:11 (17 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2313488
Default Alt Text
D3127.id7973.diff (1 KB)

Event Timeline