Compare commits

..

18 Commits
e9 ... f38

Author SHA1 Message Date
Gwyn Ciesla eab341165c 3006.8
7 months ago
Gwyn Ciesla c7fd7fd400 3006.7
9 months ago
Fedora Release Engineering d1cfa1ff09 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
10 months ago
Gwyn Ciesla 0c6035f355 3006.5
11 months ago
Gwyn Ciesla bd3901b7d8 3006.4
1 year ago
Gwyn Ciesla bbe10ba6b9 Correct hostnamne patch
1 year ago
Gwyn Ciesla 69f93ba67d 3006.3
1 year ago
Gwyn Ciesla f8ef9a02cf 3006.2
1 year ago
Salman Butt d66ff2d5e7
Updated license to SPDX format.
1 year ago
Gwyn Ciesla 30b872f4bf Fix dnf5 compatibility and python 3.12 issue.
1 year ago
Gwyn Ciesla 3c6952ac57 Fix dnf5 compatibility and python 3.12 issue.
1 year ago
Fedora Release Engineering f529b67b05 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
1 year ago
Python Maint d075f220f5 Rebuilt for Python 3.12
1 year ago
Gwyn Ciesla c26bd71772 Run master as salt user
1 year ago
Gwyn Ciesla ad471783b0 Source
1 year ago
Gwyn Ciesla efa687e6aa 3006.1
1 year ago
Sérgio M. Basto 357a4ee680 Add patch for py3.10 support (RHBZ#2189782)
2 years ago
Fedora Release Engineering 270fd32e55 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
2 years ago

@ -0,0 +1,368 @@
From f51113921a4a1ba6c37150e7ed5f1b206e96e18a Mon Sep 17 00:00:00 2001
From: David Murphy < dmurphy@saltstack.com>
Date: Wed, 19 Jul 2023 18:13:57 -0600
Subject: [PATCH 01/11] Added support for dnf5 for Fedora
---
salt/modules/yumpkg.py | 38 +++++++++++++++--------
tests/pytests/unit/modules/test_yumpkg.py | 14 +++++++--
2 files changed, 36 insertions(+), 16 deletions(-)
diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py
index 413c0e12f77a..08a7d7d05860 100644
--- a/salt/modules/yumpkg.py
+++ b/salt/modules/yumpkg.py
@@ -145,7 +147,7 @@ def _get_hold(line, pattern=__HOLD_PATTERN, full=True):
def _yum():
"""
- Determine package manager name (yum or dnf),
+ Determine package manager name (yum or dnf[5]),
depending on the executable existence in $PATH.
"""
@@ -168,7 +170,10 @@ def _check(file):
contextkey = "yum_bin"
if contextkey not in context:
for dir in os.environ.get("PATH", os.defpath).split(os.pathsep):
- if _check(os.path.join(dir, "dnf")):
+ if _check(os.path.join(dir, "dnf5")):
+ context[contextkey] = "dnf5"
+ break
+ elif _check(os.path.join(dir, "dnf")):
context[contextkey] = "dnf"
break
elif _check(os.path.join(dir, "tdnf")):
@@ -245,7 +250,8 @@ def _versionlock_pkg(grains=None):
"""
if grains is None:
grains = __grains__
- if _yum() == "dnf":
+
+ if _yum() == "dnf" or _yum() == "dnf5":
if grains["os"].lower() == "fedora":
return (
"python3-dnf-plugin-versionlock"
@@ -272,10 +278,11 @@ def _check_versionlock():
def _get_options(**kwargs):
"""
- Returns a list of options to be used in the yum/dnf command, based on the
+ Returns a list of options to be used in the yum/dnf[5] command, based on the
kwargs passed.
"""
# Get repo options from the kwargs
+ # dnf5 aliases dnf options, so no need to change
fromrepo = kwargs.pop("fromrepo", "")
repo = kwargs.pop("repo", "")
disablerepo = kwargs.pop("disablerepo", "")
@@ -1053,7 +1060,9 @@ def list_upgrades(refresh=True, **kwargs):
cmd = ["--quiet"]
cmd.extend(options)
- cmd.extend(["list", "upgrades" if _yum() == "dnf" else "updates"])
+ cmd.extend(
+ ["list", "upgrades" if (_yum() == "dnf" or _yum() == "dnf5") else "updates"]
+ )
out = _call_yum(cmd, ignore_retcode=True)
if out["retcode"] != 0 and "Error:" in out:
return {}
@@ -1708,7 +1717,8 @@ def _add_common_args(cmd):
if skip_verify:
cmd.append("--nogpgcheck")
if downloadonly:
- cmd.append("--downloadonly")
+ if _yum() != "dnf5":
+ cmd.append("--downloadonly")
try:
holds = list_holds(full=False)
@@ -1769,6 +1779,8 @@ def _temporarily_unhold(pkgs, targets):
cmd.extend(["--best", "--allowerasing"])
_add_common_args(cmd)
cmd.append("install" if pkg_type != "advisory" else "update")
+ if _yum() == "dnf5":
+ cmd.extend(["--best", "--allowerasing"])
cmd.extend(targets)
out = _call_yum(cmd, ignore_retcode=False, redirect_stderr=True)
if out["retcode"] != 0:
@@ -2002,7 +2014,7 @@ def upgrade(
salt '*' pkg.upgrade security=True exclude='kernel*'
"""
- if _yum() == "dnf" and not obsoletes:
+ if (_yum() == "dnf" or _yum() == "dnf5") and not obsoletes:
# for dnf we can just disable obsoletes
_setopt = [
opt
@@ -2040,7 +2052,7 @@ def upgrade(
cmd.append("upgrade" if not minimal else "upgrade-minimal")
else:
# do not force the removal of obsolete packages
- if _yum() == "dnf":
+ if _yum() == "dnf" or _yum() == "dnf5":
cmd.append("upgrade" if not minimal else "upgrade-minimal")
else:
# for yum we have to use update instead of upgrade
@@ -2396,7 +2408,7 @@ def unhold(name=None, pkgs=None, sources=None, **kwargs): # pylint: disable=W06
ret[target] = {"name": target, "changes": {}, "result": False, "comment": ""}
- if _yum() == "dnf":
+ if _yum() == "dnf" or _yum() == "dnf5":
search_locks = [x for x in current_locks if x == target]
else:
# To accommodate yum versionlock's lack of support for removing
@@ -3032,7 +3044,7 @@ def mod_repo(repo, basedir=None, **kwargs):
if use_copr:
# Is copr plugin installed?
copr_plugin_name = ""
- if _yum() == "dnf":
+ if _yum() == "dnf" or _yum() == "dnf5":
copr_plugin_name = "dnf-plugins-core"
else:
copr_plugin_name = "yum-plugin-copr"
@@ -3493,7 +3505,7 @@ def services_need_restart(**kwargs):
salt '*' pkg.services_need_restart
"""
- if _yum() != "dnf":
+ if _yum() == "dnf":
raise CommandExecutionError("dnf is required to list outdated services.")
if not salt.utils.systemd.booted(__context__):
raise CommandExecutionError("systemd is required to list outdated services.")
diff --git a/tests/pytests/unit/modules/test_yumpkg.py b/tests/pytests/unit/modules/test_yumpkg.py
index 1354ee5d2d0d..1b1992daf475 100644
--- a/tests/pytests/unit/modules/test_yumpkg.py
+++ b/tests/pytests/unit/modules/test_yumpkg.py
@@ -72,7 +72,7 @@ def list_repos_var():
@pytest.fixture(
- ids=["yum", "dnf"],
+ ids=["yum", "dnf", "dnf5"],
params=[
{
"context": {"yum_bin": "yum"},
@@ -84,6 +84,11 @@ def list_repos_var():
"grains": {"os": "Fedora", "osrelease": 27},
"cmd": ["dnf", "-y", "--best", "--allowerasing"],
},
+ {
+ "context": {"yum_bin": "dnf5"},
+ "grains": {"os": "Fedora", "osrelease": 39},
+ "cmd": ["dnf5", "-y"],
+ },
],
)
def yum_and_dnf(request):
@@ -692,7 +697,7 @@ def test_list_repo_pkgs_with_options(list_repos_var):
except AssertionError:
continue
else:
- pytest.fail("repo '{}' not checked".format(repo))
+ pytest.fail(f"repo '{repo}' not checked")
def test_list_upgrades_dnf():
@@ -2085,7 +2090,10 @@ def test_59705_version_as_accidental_float_should_become_text(
new, full_pkg_string, yum_and_dnf
):
name = "fnord"
- expected_cmd = yum_and_dnf + ["install", full_pkg_string]
+ expected_cmd = yum_and_dnf + ["install"]
+ if expected_cmd[0] == "dnf5":
+ expected_cmd += ["--best", "--allowerasing"]
+ expected_cmd += [full_pkg_string]
cmd_mock = MagicMock(
return_value={"pid": 12345, "retcode": 0, "stdout": "", "stderr": ""}
)
From dd239d061003b7e9d9a0c22836204acd6df46320 Mon Sep 17 00:00:00 2001
From: David Murphy < dmurphy@saltstack.com>
Date: Wed, 19 Jul 2023 18:29:51 -0600
Subject: [PATCH 02/11] Added changelog entry
---
changelog/64532.added.md | 1 +
1 file changed, 1 insertion(+)
create mode 100644 changelog/64532.added.md
diff --git a/changelog/64532.added.md b/changelog/64532.added.md
new file mode 100644
index 000000000000..53595d69280d
--- /dev/null
+++ b/changelog/64532.added.md
@@ -0,0 +1 @@
+Added support for dnf5 and its new command syntax
From 0349df1f2cdfe396a648eda86639c76efabefc0e Mon Sep 17 00:00:00 2001
From: David Murphy <damurphy@vmware.com>
Date: Thu, 20 Jul 2023 09:39:11 -0600
Subject: [PATCH 06/11] Update salt/modules/yumpkg.py
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
---
salt/modules/yumpkg.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py
index 3ab033361c02..6d4ab469165d 100644
--- a/salt/modules/yumpkg.py
+++ b/salt/modules/yumpkg.py
@@ -1061,7 +1061,7 @@ def list_upgrades(refresh=True, **kwargs):
cmd = ["--quiet"]
cmd.extend(options)
cmd.extend(
- ["list", "upgrades" if (_yum() == "dnf" or _yum() == "dnf5") else "updates"]
+ ["list", "upgrades" if _yum() in ("dnf", "dnf5") else "updates"]
)
out = _call_yum(cmd, ignore_retcode=True)
if out["retcode"] != 0 and "Error:" in out:
From 3a5c478fa455fe8bba198728de304a09a76bb1db Mon Sep 17 00:00:00 2001
From: David Murphy <damurphy@vmware.com>
Date: Thu, 20 Jul 2023 09:39:23 -0600
Subject: [PATCH 07/11] Update salt/modules/yumpkg.py
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
---
salt/modules/yumpkg.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py
index 6d4ab469165d..6ebd9ce4acfb 100644
--- a/salt/modules/yumpkg.py
+++ b/salt/modules/yumpkg.py
@@ -2014,7 +2014,7 @@ def upgrade(
salt '*' pkg.upgrade security=True exclude='kernel*'
"""
- if (_yum() == "dnf" or _yum() == "dnf5") and not obsoletes:
+ if _yum() in ("dnf", "dnf5") and not obsoletes:
# for dnf we can just disable obsoletes
_setopt = [
opt
From 085e39acac36b839185fcef13d07ebcf9985ba6a Mon Sep 17 00:00:00 2001
From: David Murphy <damurphy@vmware.com>
Date: Thu, 20 Jul 2023 09:39:41 -0600
Subject: [PATCH 08/11] Update salt/modules/yumpkg.py
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
---
salt/modules/yumpkg.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py
index 6ebd9ce4acfb..c67c18d5b848 100644
--- a/salt/modules/yumpkg.py
+++ b/salt/modules/yumpkg.py
@@ -2052,7 +2052,7 @@ def upgrade(
cmd.append("upgrade" if not minimal else "upgrade-minimal")
else:
# do not force the removal of obsolete packages
- if _yum() == "dnf" or _yum() == "dnf5":
+ if _yum() in ("dnf", "dnf5"):
cmd.append("upgrade" if not minimal else "upgrade-minimal")
else:
# for yum we have to use update instead of upgrade
From 90162b872d25e31bc3cecc2c6f4c65d38de57481 Mon Sep 17 00:00:00 2001
From: David Murphy <damurphy@vmware.com>
Date: Thu, 20 Jul 2023 09:39:48 -0600
Subject: [PATCH 09/11] Update salt/modules/yumpkg.py
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
---
salt/modules/yumpkg.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py
index c67c18d5b848..c5725cdc8c4d 100644
--- a/salt/modules/yumpkg.py
+++ b/salt/modules/yumpkg.py
@@ -2408,7 +2408,7 @@ def unhold(name=None, pkgs=None, sources=None, **kwargs): # pylint: disable=W06
ret[target] = {"name": target, "changes": {}, "result": False, "comment": ""}
- if _yum() == "dnf" or _yum() == "dnf5":
+ if _yum() in ("dnf", "dnf5"):
search_locks = [x for x in current_locks if x == target]
else:
# To accommodate yum versionlock's lack of support for removing
From 1a89a642208fb4d59fd1fdfde9aa67ba737fa5ab Mon Sep 17 00:00:00 2001
From: David Murphy <damurphy@vmware.com>
Date: Thu, 20 Jul 2023 09:39:59 -0600
Subject: [PATCH 10/11] Update salt/modules/yumpkg.py
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
---
salt/modules/yumpkg.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py
index c5725cdc8c4d..a3688c8c57de 100644
--- a/salt/modules/yumpkg.py
+++ b/salt/modules/yumpkg.py
@@ -3044,7 +3044,7 @@ def mod_repo(repo, basedir=None, **kwargs):
if use_copr:
# Is copr plugin installed?
copr_plugin_name = ""
- if _yum() == "dnf" or _yum() == "dnf5":
+ if _yum() in ("dnf", "dnf5"):
copr_plugin_name = "dnf-plugins-core"
else:
copr_plugin_name = "yum-plugin-copr"
From 9d4f211b01cada23c66d714d5e58662fa382a9da Mon Sep 17 00:00:00 2001
From: David Murphy < dmurphy@saltstack.com>
Date: Thu, 20 Jul 2023 09:46:20 -0600
Subject: [PATCH 11/11] Updates due to reviewer suggestions
---
salt/modules/yumpkg.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py
index a3688c8c57de..31129855fc7a 100644
--- a/salt/modules/yumpkg.py
+++ b/salt/modules/yumpkg.py
@@ -1060,9 +1060,7 @@ def list_upgrades(refresh=True, **kwargs):
cmd = ["--quiet"]
cmd.extend(options)
- cmd.extend(
- ["list", "upgrades" if _yum() in ("dnf", "dnf5") else "updates"]
- )
+ cmd.extend(["list", "upgrades" if _yum() in ("dnf", "dnf5") else "updates"])
out = _call_yum(cmd, ignore_retcode=True)
if out["retcode"] != 0 and "Error:" in out:
return {}
@@ -3505,7 +3503,7 @@ def services_need_restart(**kwargs):
salt '*' pkg.services_need_restart
"""
- if _yum() == "dnf":
+ if _yum() != "dnf":
raise CommandExecutionError("dnf is required to list outdated services.")
if not salt.utils.systemd.booted(__context__):
raise CommandExecutionError("systemd is required to list outdated services.")
--- salt-3006.1/salt/modules/yumpkg.py~ 2023-07-21 11:04:34.563699567 -0500
+++ salt-3006.1/salt/modules/yumpkg.py 2023-07-21 11:15:32.708768955 -0500
@@ -124,12 +124,12 @@
dnf ==> vim-enhanced-2:7.4.827-1.fc22.*
"""
if full:
- if _yum() == "dnf":
+ if _yum() in ("dnf", "dnf5"):
lock_re = r"({}-\S+)".format(pattern)
else:
lock_re = r"(\d+:{}-\S+)".format(pattern)
else:
- if _yum() == "dnf":
+ if _yum() in ("dnf", "dnf5"):
lock_re = r"({}-\S+)".format(pattern)
else:
lock_re = r"\d+:({}-\S+)".format(pattern)

@ -1,20 +1,15 @@
--- salt-3005/requirements/base.txt.fix 2022-08-25 17:13:58.740984435 -0600 --- salt-3006.1/requirements/base.txt~ 2023-05-05 12:53:34.000000000 -0500
+++ salt-3005/requirements/base.txt 2022-08-25 17:14:14.428036445 -0600 +++ salt-3006.1/requirements/base.txt 2023-05-24 09:59:08.874838801 -0500
@@ -4,5 +4,4 @@ PyYAML @@ -9,4 +9,3 @@
MarkupSafe packaging>=21.3
requests>=1.0.0 looseversion
distro>=1.0.1 # We need contextvars for salt-ssh
-contextvars -contextvars
psutil>=5.0.0 --- a/requirements/zeromq.txt~ 2024-02-20 16:04:07.000000000 -0600
--- salt-3005.2/requirements/zeromq.txt~ 2023-08-03 12:27:49.000000000 -0500 +++ b/requirements/zeromq.txt 2024-02-22 14:27:46.531045353 -0600
+++ salt-3005.2/requirements/zeromq.txt 2023-09-05 15:00:22.172125782 -0500 @@ -2,5 +2,3 @@
@@ -1,8 +1,4 @@
-r base.txt
-r crypto.txt -r crypto.txt
-pyzmq<=20.0.0; python_version < "3.6" pyzmq>=20.0.0
-pyzmq>=20.0.0; python_version >= "3.6" -pyzmq==25.0.2 ; sys_platform == "win32"
-# We can't use 23+ on Windows until they fix this: -pyzmq==25.1.2 ; sys_platform == "darwin"
-# https://github.com/zeromq/pyzmq/issues/1472
-pyzmq>=20.0.0,<=22.0.3 ; sys_platform == "win32"
+pyzmq>=20.0.0

@ -0,0 +1,24 @@
--- a/salt/ext/tornado/netutil.py~ 2023-05-05 12:53:34.000000000 -0500
+++ b/salt/ext/tornado/netutil.py 2023-07-24 11:27:02.376824349 -0500
@@ -54,8 +54,8 @@
elif ssl is None:
ssl_match_hostname = SSLCertificateError = None # type: ignore
else:
- import backports.ssl_match_hostname
- ssl_match_hostname = backports.ssl_match_hostname.match_hostname
+ import urllib3.util.ssl_match_hostname
+ ssl_match_hostname = urllib3.util.ssl_match_hostname
SSLCertificateError = backports.ssl_match_hostname.CertificateError # type: ignore
if hasattr(ssl, 'SSLContext'):
--- a/salt/ext/tornado/netutil.py~ 2023-07-24 11:50:02.836988664 -0500
+++ b/salt/ext/tornado/netutil.py 2023-07-24 11:50:52.217539638 -0500
@@ -56,7 +56,7 @@
else:
import urllib3.util.ssl_match_hostname
ssl_match_hostname = urllib3.util.ssl_match_hostname
- SSLCertificateError = backports.ssl_match_hostname.CertificateError # type: ignore
+ SSLCertificateError = urllib3.util.ssl_match_hostname.CertificateError # type: ignore
if hasattr(ssl, 'SSLContext'):
if hasattr(ssl, 'create_default_context'):

@ -10,11 +10,11 @@
%global py3_shebang_flags %(echo %py3_shebang_flags | sed s/s//) %global py3_shebang_flags %(echo %py3_shebang_flags | sed s/s//)
Name: salt Name: salt
Version: 3005.4 Version: 3006.8
Release: 1%{?dist} Release: 1%{?dist}
Summary: A parallel remote execution system Summary: A parallel remote execution system
Group: System Environment/Daemons Group: System Environment/Daemons
License: ASL 2.0 License: Apache-2.0
URL: https://saltproject.io/ URL: https://saltproject.io/
Source0: %{pypi_source} Source0: %{pypi_source}
Source1: %{name}-proxy@.service Source1: %{name}-proxy@.service
@ -38,8 +38,10 @@ Source18: %{name}-master.fish
Source19: %{name}-minion.fish Source19: %{name}-minion.fish
Source20: %{name}-run.fish Source20: %{name}-run.fish
Source21: %{name}-syndic.fish Source21: %{name}-syndic.fish
Source22: %{name}.sysusers
Patch0: contextvars.patch Patch0: contextvars.patch
Patch1: match_hostname.patch
BuildArch: noarch BuildArch: noarch
%ifarch %{ix86} x86_64 %ifarch %{ix86} x86_64
@ -50,10 +52,11 @@ Requires: pciutils
Requires: which Requires: which
Requires: dnf-utils Requires: dnf-utils
Requires: logrotate Requires: logrotate
Requires: python3-tornado
BuildRequires: systemd-rpm-macros BuildRequires: systemd-rpm-macros
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-toml %{?sysusers_requires_compat}
%description %description
Salt is a distributed remote execution system used to execute commands and Salt is a distributed remote execution system used to execute commands and
@ -167,6 +170,8 @@ install -d -m 0755 %{buildroot}%{_sysconfdir}/%{name}/proxy.d
# Add the config files # Add the config files
install -p -m 0640 conf/minion %{buildroot}%{_sysconfdir}/%{name}/minion install -p -m 0640 conf/minion %{buildroot}%{_sysconfdir}/%{name}/minion
install -p -m 0640 conf/master %{buildroot}%{_sysconfdir}/%{name}/master install -p -m 0640 conf/master %{buildroot}%{_sysconfdir}/%{name}/master
# Use salt user on nre master installations
sed -i 's/#user: root/user: salt/g' %{buildroot}%{_sysconfdir}/%{name}/master
install -p -m 0600 conf/cloud %{buildroot}%{_sysconfdir}/%{name}/cloud install -p -m 0600 conf/cloud %{buildroot}%{_sysconfdir}/%{name}/cloud
install -p -m 0640 conf/roster %{buildroot}%{_sysconfdir}/%{name}/roster install -p -m 0640 conf/roster %{buildroot}%{_sysconfdir}/%{name}/roster
install -p -m 0640 conf/proxy %{buildroot}%{_sysconfdir}/%{name}/proxy install -p -m 0640 conf/proxy %{buildroot}%{_sysconfdir}/%{name}/proxy
@ -202,8 +207,11 @@ install -p -m 0644 %{SOURCE21} %{buildroot}%{fish_dir}/%{name}-syndic.fish
# ZSH completion # ZSH completion
mkdir -p %{buildroot}%{zsh_dir} mkdir -p %{buildroot}%{zsh_dir}
install -p -m 0644 pkg/%{name}.zsh %{buildroot}%{zsh_dir}/_%{name} install -p -m 0644 pkg/common/%{name}.zsh %{buildroot}%{zsh_dir}/_%{name}
# Salt user and group
install -p -D -m 0644 %{SOURCE22} %{buildroot}%{_sysusersdir}/salt.conf
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/gpgkeys
%check %check
%pyproject_check_import -t %pyproject_check_import -t
@ -214,7 +222,7 @@ install -p -m 0644 pkg/%{name}.zsh %{buildroot}%{zsh_dir}/_%{name}
%doc README.fedora %doc README.fedora
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/bash_completion.d/%{name}.bash %config(noreplace) %{_sysconfdir}/bash_completion.d/%{name}.bash
%{_var}/cache/%{name} %dir %{_var}/cache/%{name}/
%{_var}/log/%{name} %{_var}/log/%{name}
%{_bindir}/spm %{_bindir}/spm
%doc %{_mandir}/man1/spm.1* %doc %{_mandir}/man1/spm.1*
@ -223,6 +231,7 @@ install -p -m 0644 pkg/%{name}.zsh %{buildroot}%{zsh_dir}/_%{name}
%dir %{_sysconfdir}/%{name}/pki/ %dir %{_sysconfdir}/%{name}/pki/
%{fish_dir}/%{name}*.fish %{fish_dir}/%{name}*.fish
%{zsh_dir}/_%{name} %{zsh_dir}/_%{name}
%{_bindir}/salt-pip
%files master %files master
%doc %{_mandir}/man7/%{name}.7* %doc %{_mandir}/man7/%{name}.7*
@ -237,9 +246,11 @@ install -p -m 0644 pkg/%{name}.zsh %{buildroot}%{zsh_dir}/_%{name}
%{_bindir}/%{name}-master %{_bindir}/%{name}-master
%{_bindir}/%{name}-run %{_bindir}/%{name}-run
%{_unitdir}/%{name}-master.service %{_unitdir}/%{name}-master.service
%config(noreplace) %{_sysconfdir}/%{name}/master %{_sysusersdir}/salt.conf
%config(noreplace) %{_sysconfdir}/%{name}/master.d %config(noreplace) %attr(0750, salt, salt) %{_sysconfdir}/%{name}/master
%config(noreplace) %{_sysconfdir}/%{name}/pki/master %config(noreplace) %attr(0750, salt, salt) %{_sysconfdir}/%{name}/master.d
%config(noreplace) %attr(0750, salt, salt) %{_sysconfdir}/%{name}/pki/master
%config(noreplace) %attr(0750, salt, salt) %{_sysconfdir}/%{name}/gpgkeys
%files minion %files minion
%doc %{_mandir}/man1/%{name}-call.1* %doc %{_mandir}/man1/%{name}-call.1*
@ -291,7 +302,11 @@ install -p -m 0644 pkg/%{name}.zsh %{buildroot}%{zsh_dir}/_%{name}
%preun api %preun api
%systemd_preun %{name}-api.service %systemd_preun %{name}-api.service
%pre master
%sysusers_create_compat %{SOURCE22}
%post master %post master
chown salt:salt %{_sysconfdir}/%{name}/gpgkeys -R
%systemd_post %{name}-master.service %systemd_post %{name}-master.service
%post syndic %post syndic
@ -317,11 +332,54 @@ install -p -m 0644 pkg/%{name}.zsh %{buildroot}%{zsh_dir}/_%{name}
%changelog %changelog
* Mon Oct 30 2023 Gwyn Ciesla <gwync@protonmail.com> - 3005.4-1 * Thu May 02 2024 Gwyn Ciesla <gwync@protonmail.com> - 3006.8-1
- 3005.4 - 3006.8
* Thu Feb 22 2024 Gwyn Ciesla <gwync@protonmail.com> - 3006.7-1
- 3006.7
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3006.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Dec 14 2023 Gwyn Ciesla <gwync@protonmail.com> - 3006.5-1
- 3006.5
* Mon Oct 30 2023 Gwyn Ciesla <gwync@protonmail.com> - 3006.4-1
- 3006.4
* Wed Sep 20 2023 Gwyn Ciesla <gwync@protonmail.com> - 3006.3-2
- Patch correction.
* Mon Sep 11 2023 Gwyn Ciesla <gwync@protonmail.com> - 3006.3-1
- 3006.3
* Fri Aug 11 2023 Gwyn Ciesla <gwync@protonmail.com> - 3006.2-1
- 3006.2
* Mon Jul 24 2023 Salman Butt <cn137@protonmail.com> - 3006.1-6
- SPDX license update.
* Mon Jul 24 2023 Gwyn Ciesla <gwync@protonmail.com> - 3006.1-5
- Patch for dnf5 support from upstream.
- Fix Python 3.12 issue.
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3006.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Jun 28 2023 Python Maint <python-maint@redhat.com> - 3006.1-3
- Rebuilt for Python 3.12
* Wed May 24 2023 Gwyn Ciesla <gwync@protonmail.com> - 3006.1-2
- Add salt user for master per upstream.
* Wed May 24 2023 Gwyn Ciesla <gwync@protonmail.com> - 3006.1-1
- 3006.1
* Mon May 22 2023 Jonathan Steffan <jsteffan@fedoraproject.org>- 3005.1-4
- Add patch for py3.10 support (RHBZ#2189782)
* Tue Sep 05 2023 Gwyn Ciesla <gwync@protonmail.com> - 3005.2-1 * Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3005.1-3
- 3005.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Mon Oct 10 2022 Robby Callicotte <rcallicotte@fedoraproject.org> - 3005.1-2 * Mon Oct 10 2022 Robby Callicotte <rcallicotte@fedoraproject.org> - 3005.1-2
- Removed macros from changelog - Removed macros from changelog

@ -0,0 +1,3 @@
#Type Name ID GECOS Home directory Shell
u salt - "Salt" /etc/salt /bin/bash
g salt -

@ -1 +1 @@
SHA512 (salt-3005.4.tar.gz) = 31c699fc369c1f3c47f4f3a9a572381dd8c54323771194bdcc73128b55d983da7338b03061a6cdec6631aca62048e5829ea38687c3b0fdb1cdcbd5df9d000f05 SHA512 (salt-3006.8.tar.gz) = 6d771cf1e177cb77f8eed3911b1f8537c725432c6c0038f0feac6905d09636dca95a563a74db586f52a87809748a4a86338b94cdae27f083deb20433568e5617

Loading…
Cancel
Save