Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F14040408
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/roles/core/salt/files/salt.repo b/roles/core/salt/files/salt.repo
new file mode 100644
index 0000000..d011a22
--- /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
index fb52dad..5215317 100644
--- a/roles/core/salt/init.sls
+++ b/roles/core/salt/init.sls
@@ -1,36 +1,46 @@
# -------------------------------------------------------------
# Salt — Salt configuration
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2017-06-12
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{% from "map.jinja" import dirs with context %}
{% from "roles/core/certificates/map.jinja" import certificates with context %}
salt_roles:
grains.list_present:
- 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
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% if grains['os'] == 'FreeBSD' %}
/etc/rc.conf.d/salt_minion:
file.managed:
- source: salt://roles/core/salt/files/rc.conf
{% endif %}
# -------------------------------------------------------------
# Vault
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{ dirs.etc }}/salt/minion.d/vault.conf:
file.managed:
- source: salt://roles/core/salt/files/vault.conf
- template: jinja
- context:
certificate: {{ certificates.dir }}/nasqueron-vault-ca.crt
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Nov 28, 17:41 (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3209067
Default Alt Text
(2 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment