Skip to content

Commit 4ebdda2

Browse files
Merge pull request #7 from ScriptAutomate/salt-archive-keyring
Update naming of salt-archive-keyring for Debian standards, and add minor version locking for rpm-based distros
2 parents b22dca8 + 39d7310 commit 4ebdda2

File tree

3 files changed

+54
-5
lines changed

3 files changed

+54
-5
lines changed

docs/topics/install-by-operating-system/linux-deb.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Linux (DEB)
55
===========
66

77
These instructions explain how to install Salt rpms on operating systems that
8-
are Debian-like (using `apt-get` install methods).
8+
are Debian-like (using ``apt-get`` install methods).
99

1010
For a list of supported and tested operating systems, for running Salt,
1111
see :ref:`salt-supported-operating-systems`.
@@ -21,7 +21,7 @@ Install Salt DEBs
2121
# Ensure keyrings dir exists
2222
mkdir -p /etc/apt/keyrings
2323
# Download public key
24-
curl -fsSL https://packages.broadcom.com/artifactory/api/security/keypair/SaltProjectKey/public | sudo tee /etc/apt/keyrings/salt-archive-keyring-2023.pgp
24+
curl -fsSL https://packages.broadcom.com/artifactory/api/security/keypair/SaltProjectKey/public | sudo tee /etc/apt/keyrings/salt-archive-keyring.pgp
2525
# Create apt repo target configuration
2626
curl -fsSL https://github.com/saltstack/salt-install-guide/releases/latest/download/salt.sources | sudo tee /etc/apt/sources.list.d/salt.sources
2727

docs/topics/install-by-operating-system/linux-rpm.rst

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Linux (RPM)
55
===========
66

77
These instructions explain how to install Salt rpms on operating systems that
8-
are RHEL-like (using `dnf` install methods).
8+
are RHEL-like (using ``dnf`` install methods).
99

1010
For a list of supported and tested operating systems, for running Salt,
1111
see :ref:`salt-supported-operating-systems`.
@@ -30,7 +30,7 @@ Install Salt RPMs
3030
downloads classic packages of older versions of Salt instead of the
3131
onedir packages.
3232

33-
During depsolving, when choosing the best provider among several, `yum`
33+
During depsolving, when choosing the best provider among several, ``dnf``
3434
respects the priority of each provider's repository. The value is an
3535
integer from 1 to 99, with 1 being the most preferred repository and 99
3636
the least preferred. By default all repositories have the priority of 80.
@@ -69,6 +69,22 @@ Install Salt RPMs
6969
sudo dnf install salt-cloud-3006.9
7070
sudo dnf install salt-api-3006.9
7171
72+
``dnf versionlock`` can be used to pin to minor versions, if wanting to be
73+
excluded during ``dnf upgrade`` runs on a system.
74+
75+
.. code-block:: bash
76+
77+
sudo dnf install 'dnf-command(versionlock)'
78+
79+
.. code-block:: bash
80+
81+
sudo dnf versionlock add salt
82+
sudo dnf versionlock add salt-master
83+
sudo dnf versionlock add salt-minion
84+
sudo dnf versionlock add salt-ssh
85+
sudo dnf versionlock add salt-syndic
86+
sudo dnf versionlock add salt-cloud
87+
sudo dnf versionlock add salt-api
7288
7389
.. tab-item:: 3007 STS
7490

@@ -108,6 +124,22 @@ Install Salt RPMs
108124
sudo dnf install salt-cloud-3007.1
109125
sudo dnf install salt-api-3007.1
110126
127+
``dnf versionlock`` can be used to pin to minor versions, if wanting to be
128+
excluded during ``dnf upgrade`` runs on a system.
129+
130+
.. code-block:: bash
131+
132+
sudo dnf install 'dnf-command(versionlock)'
133+
134+
.. code-block:: bash
135+
136+
sudo dnf versionlock add salt
137+
sudo dnf versionlock add salt-master
138+
sudo dnf versionlock add salt-minion
139+
sudo dnf versionlock add salt-ssh
140+
sudo dnf versionlock add salt-syndic
141+
sudo dnf versionlock add salt-cloud
142+
sudo dnf versionlock add salt-api
111143
112144
.. tab-item:: LATEST Available
113145

@@ -147,6 +179,23 @@ Install Salt RPMs
147179
sudo dnf install salt-cloud-3007.1
148180
sudo dnf install salt-api-3007.1
149181
182+
``dnf versionlock`` can be used to pin to minor versions, if wanting to be
183+
excluded during ``dnf upgrade`` runs on a system.
184+
185+
.. code-block:: bash
186+
187+
sudo dnf install 'dnf-command(versionlock)'
188+
189+
.. code-block:: bash
190+
191+
sudo dnf versionlock add salt
192+
sudo dnf versionlock add salt-master
193+
sudo dnf versionlock add salt-minion
194+
sudo dnf versionlock add salt-ssh
195+
sudo dnf versionlock add salt-syndic
196+
sudo dnf versionlock add salt-cloud
197+
sudo dnf versionlock add salt-api
198+
150199
#. Enable and start the Salt services:
151200

152201
Available services:

salt.sources

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ Description: Salt has many possible uses, including configuration management.
99
Enabled: yes
1010
Types: deb
1111
URIs: https://packages.broadcom.com/artifactory/saltproject-deb
12-
Signed-By: /etc/apt/keyrings/salt-archive-keyring-2023.pgp
12+
Signed-By: /etc/apt/keyrings/salt-archive-keyring.pgp
1313
Suites: stable
1414
Components: main

0 commit comments

Comments
 (0)