|
|
@ -9,8 +9,8 @@
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
|
|
|
|
|
|
|
|
|
Name: salt
|
|
|
|
Name: salt
|
|
|
|
Version: 0.10.2
|
|
|
|
Version: 0.10.3
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: A parallel remote execution system
|
|
|
|
Summary: A parallel remote execution system
|
|
|
|
|
|
|
|
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
Group: System Environment/Daemons
|
|
|
@ -24,7 +24,6 @@ Source4: %{name}-master.service
|
|
|
|
Source5: %{name}-syndic.service
|
|
|
|
Source5: %{name}-syndic.service
|
|
|
|
Source6: %{name}-minion.service
|
|
|
|
Source6: %{name}-minion.service
|
|
|
|
Source7: README.fedora
|
|
|
|
Source7: README.fedora
|
|
|
|
Patch0: 0001-Only-expect-args-if-they-are-actually-passed-in.patch
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
@ -74,6 +73,11 @@ Requires(preun): initscripts
|
|
|
|
Requires(postun): initscripts
|
|
|
|
Requires(postun): initscripts
|
|
|
|
|
|
|
|
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
|
|
|
|
%if 0%{?systemd_preun:1}
|
|
|
|
|
|
|
|
Requires(post): systemd-units
|
|
|
|
|
|
|
|
Requires(preun): systemd-units
|
|
|
|
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: systemd-units
|
|
|
|
BuildRequires: systemd-units
|
|
|
|
|
|
|
|
|
|
|
@ -107,7 +111,6 @@ Salt minion is queried and controlled from the master.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
|
@ -187,6 +190,8 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
%config(noreplace) %{_sysconfdir}/salt/master
|
|
|
|
%config(noreplace) %{_sysconfdir}/salt/master
|
|
|
|
%config %{_sysconfdir}/salt/master.template
|
|
|
|
%config %{_sysconfdir}/salt/master.template
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# less than RHEL 8 / Fedora 16
|
|
|
|
|
|
|
|
# not sure if RHEL 7 will use systemd yet
|
|
|
|
%if ! (0%{?rhel} >= 7 || 0%{?fedora} >= 15)
|
|
|
|
%if ! (0%{?rhel} >= 7 || 0%{?fedora} >= 15)
|
|
|
|
|
|
|
|
|
|
|
|
%preun -n salt-master
|
|
|
|
%preun -n salt-master
|
|
|
@ -225,6 +230,9 @@ fi
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
|
|
|
|
|
|
|
|
%preun -n salt-master
|
|
|
|
%preun -n salt-master
|
|
|
|
|
|
|
|
%if 0%{?systemd_preun:1}
|
|
|
|
|
|
|
|
%systemd_preun salt-master.service
|
|
|
|
|
|
|
|
%else
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
# Package removal, not upgrade
|
|
|
|
# Package removal, not upgrade
|
|
|
|
/bin/systemctl --no-reload disable salt-master.service > /dev/null 2>&1 || :
|
|
|
|
/bin/systemctl --no-reload disable salt-master.service > /dev/null 2>&1 || :
|
|
|
@ -233,34 +241,58 @@ if [ $1 -eq 0 ] ; then
|
|
|
|
/bin/systemctl --no-reload disable salt-syndic.service > /dev/null 2>&1 || :
|
|
|
|
/bin/systemctl --no-reload disable salt-syndic.service > /dev/null 2>&1 || :
|
|
|
|
/bin/systemctl stop salt-syndic.service > /dev/null 2>&1 || :
|
|
|
|
/bin/systemctl stop salt-syndic.service > /dev/null 2>&1 || :
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%preun -n salt-minion
|
|
|
|
%preun -n salt-minion
|
|
|
|
|
|
|
|
%if 0%{?systemd_preun:1}
|
|
|
|
|
|
|
|
%systemd_preun salt-minion.service
|
|
|
|
|
|
|
|
%else
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
# Package removal, not upgrade
|
|
|
|
# Package removal, not upgrade
|
|
|
|
/bin/systemctl --no-reload disable salt-master.service > /dev/null 2>&1 || :
|
|
|
|
/bin/systemctl --no-reload disable salt-master.service > /dev/null 2>&1 || :
|
|
|
|
/bin/systemctl stop salt-master.service > /dev/null 2>&1 || :
|
|
|
|
/bin/systemctl stop salt-master.service > /dev/null 2>&1 || :
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%post -n salt-master
|
|
|
|
%post -n salt-master
|
|
|
|
|
|
|
|
%if 0%{?systemd_post:1}
|
|
|
|
|
|
|
|
%systemd_post salt-master.service
|
|
|
|
|
|
|
|
%else
|
|
|
|
/bin/systemctl daemon-reload &>/dev/null || :
|
|
|
|
/bin/systemctl daemon-reload &>/dev/null || :
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%post -n salt-minion
|
|
|
|
%post -n salt-minion
|
|
|
|
|
|
|
|
%if 0%{?systemd_post:1}
|
|
|
|
|
|
|
|
%systemd_post salt-minion.service
|
|
|
|
|
|
|
|
%else
|
|
|
|
/bin/systemctl daemon-reload &>/dev/null || :
|
|
|
|
/bin/systemctl daemon-reload &>/dev/null || :
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%postun -n salt-master
|
|
|
|
%postun -n salt-master
|
|
|
|
|
|
|
|
%if 0%{?systemd_post:1}
|
|
|
|
|
|
|
|
%systemd_postun salt-master.service
|
|
|
|
|
|
|
|
%else
|
|
|
|
/bin/systemctl daemon-reload &>/dev/null
|
|
|
|
/bin/systemctl daemon-reload &>/dev/null
|
|
|
|
[ $1 -gt 0 ] && /bin/systemctl try-restart salt-master.service &>/dev/null || :
|
|
|
|
[ $1 -gt 0 ] && /bin/systemctl try-restart salt-master.service &>/dev/null || :
|
|
|
|
[ $1 -gt 0 ] && /bin/systemctl try-restart salt-syndic.service &>/dev/null || :
|
|
|
|
[ $1 -gt 0 ] && /bin/systemctl try-restart salt-syndic.service &>/dev/null || :
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%postun -n salt-minion
|
|
|
|
%postun -n salt-minion
|
|
|
|
|
|
|
|
%if 0%{?systemd_post:1}
|
|
|
|
|
|
|
|
%systemd_postun salt-minion.service
|
|
|
|
|
|
|
|
%else
|
|
|
|
/bin/systemctl daemon-reload &>/dev/null
|
|
|
|
/bin/systemctl daemon-reload &>/dev/null
|
|
|
|
[ $1 -gt 0 ] && /bin/systemctl try-restart salt-master.service &>/dev/null || :
|
|
|
|
[ $1 -gt 0 ] && /bin/systemctl try-restart salt-master.service &>/dev/null || :
|
|
|
|
[ $1 -gt 0 ] && /bin/systemctl try-restart salt-syndic.service &>/dev/null || :
|
|
|
|
[ $1 -gt 0 ] && /bin/systemctl try-restart salt-syndic.service &>/dev/null || :
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Tue Oct 2 2012 Clint Savage <herlo1@gmail.com> - 0.10.3-1
|
|
|
|
|
|
|
|
- Moved to upstream release 0.10.3
|
|
|
|
|
|
|
|
- Added systemd scriplets (RHBZ#850408)
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 2 2012 Clint Savage <herlo1@gmail.com> - 0.10.2-2
|
|
|
|
* Thu Aug 2 2012 Clint Savage <herlo1@gmail.com> - 0.10.2-2
|
|
|
|
- Fix upstream bug #1730 per RHBZ#845295
|
|
|
|
- Fix upstream bug #1730 per RHBZ#845295
|
|
|
|
|
|
|
|
|
|
|
|