Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3934063
D3127.id7973.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3127.id7973.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D3127: Provide or update SaltStack repository for RedHat servers
Attached
Detach File
Event Timeline
Log In to Comment