2013-05-16 11:38:22 +02:00
|
|
|
#
|
|
|
|
# spec file for package salt
|
|
|
|
#
|
2014-07-25 12:27:30 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2013-05-16 11:38:22 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-11-22 07:29:28 +01:00
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
Name: salt
|
2014-07-31 10:04:21 +02:00
|
|
|
Version: 2014.1.8
|
2013-06-05 19:34:59 +02:00
|
|
|
Release: 0
|
2013-05-16 11:38:22 +02:00
|
|
|
Summary: A parallel remote execution system
|
2013-05-28 14:42:56 +02:00
|
|
|
License: Apache-2.0
|
2013-05-16 11:38:22 +02:00
|
|
|
Group: System/Monitoring
|
2013-05-28 14:42:56 +02:00
|
|
|
Url: http://saltstack.org/
|
2013-05-16 11:38:22 +02:00
|
|
|
Source0: http://pypi.python.org/packages/source/s/%{name}/%{name}-%{version}.tar.gz
|
2014-07-25 12:27:30 +02:00
|
|
|
# PATCH-FIX-UPSTREAM allow-systemd-units-no-unit-files.patch tserong@suse.com -- allow salt to detect init script services
|
|
|
|
Patch1: allow-systemd-units-no-unit-files.patch
|
|
|
|
# PATCH-FIX-UPSTREAM allow-systemd-units-no-unit-files.patch tserong@suse.com -- part 2 of above fix
|
|
|
|
Patch2: allow-systemd-parameterized-services.patch
|
|
|
|
# PATCH-FIX-UPSTREAM pass-all-systemd-list-units.patch tserong@suse.com -- part 3 of above fix
|
|
|
|
Patch3: pass-all-systemd-list-units.patch
|
|
|
|
# PATCH-FIX-OPENSUSE use-forking-daemon.patch tserong@suse.com -- We don't have python-systemd, so notify can't work
|
|
|
|
Patch4: use-forking-daemon.patch
|
2013-10-18 11:35:12 +02:00
|
|
|
|
|
|
|
#for building
|
2014-02-22 18:17:25 +01:00
|
|
|
BuildRequires: fdupes
|
2013-05-28 14:42:56 +02:00
|
|
|
BuildRequires: logrotate
|
2013-05-16 11:38:22 +02:00
|
|
|
BuildRequires: python-Jinja2
|
|
|
|
BuildRequires: python-M2Crypto
|
|
|
|
BuildRequires: python-PyYAML
|
2014-07-25 12:27:30 +02:00
|
|
|
BuildRequires: python-apache-libcloud >= 0.14.0
|
2013-11-22 07:29:28 +01:00
|
|
|
BuildRequires: python-devel
|
2013-05-16 11:38:22 +02:00
|
|
|
BuildRequires: python-msgpack-python
|
2014-07-25 12:27:30 +02:00
|
|
|
BuildRequires: python-psutil
|
2013-05-16 11:38:22 +02:00
|
|
|
BuildRequires: python-pycrypto
|
2013-10-01 08:35:03 +02:00
|
|
|
BuildRequires: python-pyzmq
|
2014-04-30 15:12:30 +02:00
|
|
|
BuildRequires: python-requests
|
2014-07-25 12:27:30 +02:00
|
|
|
BuildRequires: python-yaml
|
2013-11-18 10:54:21 +01:00
|
|
|
|
2013-10-18 11:35:12 +02:00
|
|
|
%if 0%{?sles_version}
|
|
|
|
BuildRequires: python
|
|
|
|
Requires: python
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} >= 1210
|
|
|
|
BuildRequires: systemd
|
|
|
|
%{?systemd_requires}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
#for testing
|
|
|
|
BuildRequires: python-mock
|
|
|
|
BuildRequires: python-pip
|
2013-11-22 07:29:28 +01:00
|
|
|
BuildRequires: python-salt-testing
|
|
|
|
BuildRequires: python-unittest2
|
|
|
|
BuildRequires: python-xml
|
2014-03-22 09:11:57 +01:00
|
|
|
%if 0%{?suse_version} >= 1210
|
|
|
|
BuildRequires: python-pssh
|
|
|
|
%{?systemd_requires}
|
|
|
|
%endif
|
2013-10-18 11:35:12 +02:00
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
#for docs
|
|
|
|
BuildRequires: python-sphinx
|
|
|
|
|
2013-05-28 14:42:56 +02:00
|
|
|
Requires: logrotate
|
2013-05-16 11:38:22 +02:00
|
|
|
Requires: python-Jinja2
|
|
|
|
Requires: python-PyYAML
|
2013-11-18 10:54:21 +01:00
|
|
|
Requires: python-apache-libcloud
|
2014-04-30 15:12:30 +02:00
|
|
|
Requires: python-psutil
|
|
|
|
Requires: python-requests
|
2014-07-25 12:27:30 +02:00
|
|
|
Requires: python-xml
|
|
|
|
Requires: python-yaml
|
|
|
|
Requires: python-yaml
|
2013-05-16 11:38:22 +02:00
|
|
|
Requires(pre): %fillup_prereq
|
2013-10-18 19:23:33 +02:00
|
|
|
%if 0%{?suse_version} < 1210
|
2013-05-16 11:38:22 +02:00
|
|
|
Requires(pre): %insserv_prereq
|
2013-10-18 19:23:33 +02:00
|
|
|
%endif
|
2013-10-18 11:35:12 +02:00
|
|
|
|
2014-06-16 21:33:44 +02:00
|
|
|
%if 0%{?sles_version} > 10 && 0%{?sles_version} < 12
|
|
|
|
%define with_bashcomp 0
|
|
|
|
%else
|
|
|
|
%define with_bashcomp 1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %with_bashcomp
|
|
|
|
BuildRequires: bash-completion
|
|
|
|
%endif #with_bashcomp
|
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-06-25 09:35:45 +02:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%else
|
2013-05-16 11:38:22 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
Recommends: python-botocore
|
|
|
|
Recommends: python-netaddr
|
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
%description
|
|
|
|
Salt is a distributed remote execution system used to execute commands and
|
|
|
|
query data. It was developed in order to bring the best solutions found in
|
|
|
|
the world of remote execution together and make them better, faster and more
|
|
|
|
malleable. Salt accomplishes this via its ability to handle larger loads of
|
|
|
|
information, and not just dozens, but hundreds or even thousands of individual
|
|
|
|
servers, handle them quickly and through a simple and manageable interface.
|
|
|
|
|
2014-02-22 18:17:25 +01:00
|
|
|
%package cloud
|
|
|
|
Summary: Salt Cloud is a generic cloud provisioning tool
|
|
|
|
Group: System/Monitoring
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: python-PyYAML
|
|
|
|
Requires: python-apache-libcloud
|
|
|
|
Recommends: sshpass
|
|
|
|
Recommends: python-botocore
|
|
|
|
Recommends: python-netaddr
|
|
|
|
|
|
|
|
%description cloud
|
|
|
|
public cloud VM management system
|
|
|
|
provision virtual machines on various public clouds via a cleanly
|
|
|
|
controlled profile and mapping system.
|
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for salt, a parallel remote execution system
|
|
|
|
Group: Documentation/HTML
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: python-M2Crypto
|
|
|
|
Requires: python-msgpack-python
|
|
|
|
Requires: python-pycrypto
|
2013-11-22 07:29:28 +01:00
|
|
|
Requires: python-pyzmq
|
2013-11-18 10:54:21 +01:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation of salt, offline version of http://docs.saltstack.com.
|
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
%package master
|
|
|
|
Summary: Management component for salt, a parallel remote execution system
|
|
|
|
Group: System/Monitoring
|
|
|
|
Requires: %{name} = %{version}
|
2013-11-22 07:29:28 +01:00
|
|
|
Requires: git
|
|
|
|
Requires: python-GitPython
|
2013-10-01 08:35:03 +02:00
|
|
|
Requires: python-M2Crypto
|
|
|
|
Requires: python-msgpack-python
|
|
|
|
Requires: python-pycrypto
|
2013-11-22 07:29:28 +01:00
|
|
|
Requires: python-pyzmq
|
2013-10-01 08:35:03 +02:00
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
%if 0%{?suse_version} && 0%{?sles_version} == 0
|
|
|
|
Requires: dmidecode
|
|
|
|
%endif
|
|
|
|
%endif
|
2013-11-22 07:29:28 +01:00
|
|
|
Recommends: python-halite
|
2013-10-18 19:23:33 +02:00
|
|
|
%if 0%{?suse_version} < 1210
|
2013-05-16 11:38:22 +02:00
|
|
|
Requires(pre): %insserv_prereq
|
2013-10-18 19:23:33 +02:00
|
|
|
%endif
|
|
|
|
Requires(pre): %fillup_prereq
|
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
%description master
|
|
|
|
The Salt master is the central server to which all minions connect.
|
|
|
|
Enabled commands to remote systems to be called in parallel rather
|
|
|
|
than serially.
|
|
|
|
|
|
|
|
%package minion
|
|
|
|
Summary: Client component for salt, a parallel remote execution system
|
|
|
|
Group: System/Monitoring
|
|
|
|
Requires: %{name} = %{version}
|
2013-10-01 08:35:03 +02:00
|
|
|
Requires: python-M2Crypto
|
|
|
|
Requires: python-msgpack-python
|
|
|
|
Requires: python-pycrypto
|
2013-11-22 07:29:28 +01:00
|
|
|
Requires: python-pyzmq
|
2013-10-18 19:23:33 +02:00
|
|
|
%if 0%{?suse_version} < 1210
|
2013-05-16 11:38:22 +02:00
|
|
|
Requires(pre): %insserv_prereq
|
2013-10-18 19:23:33 +02:00
|
|
|
%endif
|
|
|
|
Requires(pre): %fillup_prereq
|
2013-05-16 11:38:22 +02:00
|
|
|
|
|
|
|
%description minion
|
|
|
|
Salt minion is queried and controlled from the master.
|
|
|
|
Listens to the salt master and execute the commands.
|
|
|
|
|
|
|
|
%package syndic
|
|
|
|
Summary: Syndic component for salt, a parallel remote execution system
|
|
|
|
Group: System/Monitoring
|
|
|
|
Requires: %{name} = %{version}
|
2013-09-27 18:20:38 +02:00
|
|
|
Requires: %{name}-master = %{version}
|
2013-10-18 19:23:33 +02:00
|
|
|
%if 0%{?suse_version} < 1210
|
2013-05-16 11:38:22 +02:00
|
|
|
Requires(pre): %insserv_prereq
|
2013-10-18 19:23:33 +02:00
|
|
|
%endif
|
|
|
|
Requires(pre): %fillup_prereq
|
2013-05-16 11:38:22 +02:00
|
|
|
|
|
|
|
%description syndic
|
|
|
|
Salt syndic is the master-of-masters for salt
|
|
|
|
The master of masters for salt-- it enables
|
|
|
|
the management of multiple masters at a time..
|
|
|
|
|
2013-09-27 18:20:38 +02:00
|
|
|
%package ssh
|
|
|
|
Summary: Ssh component for salt, a parallel remote execution system
|
|
|
|
Group: System/Monitoring
|
|
|
|
Requires: %{name} = %{version}
|
2013-10-25 11:37:32 +02:00
|
|
|
BuildRequires: python-markupsafe
|
|
|
|
Requires: python-markupsafe
|
2013-11-22 07:29:28 +01:00
|
|
|
Recommends: sshpass
|
2013-10-18 19:23:33 +02:00
|
|
|
%if 0%{?suse_version} < 1210
|
2013-09-27 18:20:38 +02:00
|
|
|
Requires(pre): %insserv_prereq
|
2013-10-18 19:23:33 +02:00
|
|
|
%endif
|
|
|
|
Requires(pre): %fillup_prereq
|
2013-09-27 18:20:38 +02:00
|
|
|
|
|
|
|
%description ssh
|
|
|
|
Salt ssh is a master running without zmq.
|
|
|
|
it enables the management of minions over a ssh connection.
|
|
|
|
|
2014-06-16 21:33:44 +02:00
|
|
|
%if %with_bashcomp
|
|
|
|
|
|
|
|
%package bash-completion
|
|
|
|
Summary: Bash Completion for %{name}
|
|
|
|
Group: System/Management
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: bash-completion
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description bash-completion
|
|
|
|
Bash command line completion support for %{name}.
|
|
|
|
|
|
|
|
%endif # with_bashcomp
|
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2014-07-25 12:27:30 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
2013-05-16 11:38:22 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
## documentation
|
2014-02-22 18:17:25 +01:00
|
|
|
cd doc && make html && rm _build/html/.buildinfo && rm _build/html/_images/proxy_minions.png && cd _build/html && chmod -R -x+X *
|
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
%install
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2014-02-22 18:17:25 +01:00
|
|
|
%fdupes %{buildroot}%{_prefix}
|
2013-05-16 11:38:22 +02:00
|
|
|
|
2013-10-18 11:35:12 +02:00
|
|
|
## create missing directories
|
2013-05-28 14:42:56 +02:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/salt/master.d
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/salt/minion.d
|
2014-02-22 18:17:25 +01:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/salt/cloud.maps.d
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/salt/cloud.profiles.d
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/salt/cloud.providers.d
|
|
|
|
|
2013-10-18 19:23:33 +02:00
|
|
|
%if 0%{?suse_version} < 1210
|
2013-05-16 11:38:22 +02:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/init.d
|
2013-10-18 19:23:33 +02:00
|
|
|
%endif
|
2014-02-22 18:17:25 +01:00
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/log/salt
|
2013-11-18 10:54:21 +01:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d/
|
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
2013-06-25 09:35:45 +02:00
|
|
|
mkdir -p %{buildroot}/var/log/salt
|
|
|
|
mkdir -p %{buildroot}/srv/salt
|
2013-10-01 08:35:03 +02:00
|
|
|
mkdir -p %{buildroot}/srv/pillar
|
2013-11-18 10:54:21 +01:00
|
|
|
mkdir -p %{buildroot}%{_docdir}/salt
|
2014-07-21 21:40:37 +02:00
|
|
|
|
2014-02-22 18:17:25 +01:00
|
|
|
## install init and systemd scripts
|
2013-10-18 19:23:33 +02:00
|
|
|
%if 0%{?_unitdir:1}
|
2014-02-22 18:17:25 +01:00
|
|
|
install -Dpm 0644 pkg/salt-master.service %{buildroot}%_unitdir/salt-master.service
|
|
|
|
install -Dpm 0644 pkg/salt-minion.service %{buildroot}%_unitdir/salt-minion.service
|
|
|
|
install -Dpm 0644 pkg/salt-syndic.service %{buildroot}%_unitdir/salt-syndic.service
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rcsalt-master
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rcsalt-syndic
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rcsalt-minion
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
2014-02-22 18:17:25 +01:00
|
|
|
## install init scripts
|
|
|
|
install -Dpm 0755 pkg/suse/salt-master %{buildroot}%{_initddir}/salt-master
|
|
|
|
install -Dpm 0755 pkg/suse/salt-syndic %{buildroot}%{_initddir}/salt-syndic
|
|
|
|
install -Dpm 0755 pkg/suse/salt-minion %{buildroot}%{_initddir}/salt-minion
|
2013-05-16 11:38:22 +02:00
|
|
|
ln -sf %{_initddir}/salt-master %{buildroot}%{_sbindir}/rcsalt-master
|
|
|
|
ln -sf %{_initddir}/salt-syndic %{buildroot}%{_sbindir}/rcsalt-syndic
|
|
|
|
ln -sf %{_initddir}/salt-minion %{buildroot}%{_sbindir}/rcsalt-minion
|
|
|
|
%endif
|
2013-10-18 19:23:33 +02:00
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
#
|
2013-10-18 11:35:12 +02:00
|
|
|
## install config files
|
2013-06-11 06:38:48 +02:00
|
|
|
install -Dpm 0644 conf/minion %{buildroot}%{_sysconfdir}/salt/minion
|
|
|
|
install -Dpm 0644 conf/master %{buildroot}%{_sysconfdir}/salt/master
|
2014-02-22 18:17:25 +01:00
|
|
|
install -Dpm 0644 conf/roster %{buildroot}%{_sysconfdir}/salt/roster
|
|
|
|
install -Dpm 0644 conf/cloud %{buildroot}%{_sysconfdir}/salt/cloud
|
|
|
|
install -Dpm 0644 conf/cloud.profiles %{buildroot}%{_sysconfdir}/salt/cloud.profiles
|
|
|
|
install -Dpm 0644 conf/cloud.providers %{buildroot}%{_sysconfdir}/salt/cloud.providers
|
2013-05-16 11:38:22 +02:00
|
|
|
#
|
2013-10-18 11:35:12 +02:00
|
|
|
## install logrotate file
|
2014-02-22 18:17:25 +01:00
|
|
|
install -Dpm 0644 pkg/salt-common.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/salt
|
2013-09-08 15:29:30 +02:00
|
|
|
#
|
2013-10-18 11:35:12 +02:00
|
|
|
## install SuSEfirewall2 rules
|
2014-02-22 18:17:25 +01:00
|
|
|
install -Dpm 0644 pkg/suse/salt.SuSEfirewall2 %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/salt
|
2014-06-16 21:33:44 +02:00
|
|
|
#
|
|
|
|
## install completion scripts
|
|
|
|
%if %with_bashcomp
|
|
|
|
install -Dpm 0644 pkg/salt.bash "%{buildroot}/etc/bash_completion.d/%{name}"
|
|
|
|
%endif #with_bashcomp
|
2013-09-08 15:29:30 +02:00
|
|
|
|
2014-04-30 15:12:30 +02:00
|
|
|
%check
|
2014-07-21 21:40:37 +02:00
|
|
|
%if 0%{?suse_version} < 1310
|
2014-04-30 15:12:30 +02:00
|
|
|
%{__python} setup.py test --runtests-opts=-u
|
2014-07-21 21:40:37 +02:00
|
|
|
%endif
|
2013-05-16 11:38:22 +02:00
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%preun syndic
|
2013-05-16 11:38:22 +02:00
|
|
|
%if 0%{?_unitdir:1}
|
|
|
|
%service_del_preun salt-syndic.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
|
|
|
%stop_on_removal salt-syndic
|
2013-05-16 11:38:22 +02:00
|
|
|
%endif
|
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%post syndic
|
2013-05-16 11:38:22 +02:00
|
|
|
%if 0%{?_unitdir:1}
|
|
|
|
%service_add_post salt-syndic.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%fillup_only
|
|
|
|
%else
|
|
|
|
%fillup_and_insserv
|
2013-05-16 11:38:22 +02:00
|
|
|
%endif
|
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%postun syndic
|
2013-05-16 11:38:22 +02:00
|
|
|
%if 0%{?_unitdir:1}
|
|
|
|
%service_del_postun salt-syndic.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
2013-05-16 11:38:22 +02:00
|
|
|
%insserv_cleanup
|
2013-10-18 19:23:33 +02:00
|
|
|
%restart_on_update salt-syndic
|
|
|
|
%endif
|
2013-05-16 11:38:22 +02:00
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%preun master
|
2013-05-16 11:38:22 +02:00
|
|
|
%if 0%{?_unitdir:1}
|
|
|
|
%service_del_preun salt-master.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
|
|
|
%stop_on_removal salt-master
|
2013-05-16 11:38:22 +02:00
|
|
|
%endif
|
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%post master
|
2013-05-16 11:38:22 +02:00
|
|
|
%if 0%{?_unitdir:1}
|
|
|
|
%service_add_post salt-master.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%fillup_only
|
|
|
|
%else
|
|
|
|
%fillup_and_insserv
|
2013-05-16 11:38:22 +02:00
|
|
|
%endif
|
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%postun master
|
2013-05-16 11:38:22 +02:00
|
|
|
%if 0%{?_unitdir:1}
|
|
|
|
%service_del_postun salt-master.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
|
|
|
%restart_on_update salt-master
|
2013-05-16 11:38:22 +02:00
|
|
|
%insserv_cleanup
|
2013-10-18 19:23:33 +02:00
|
|
|
%endif
|
2013-05-16 11:38:22 +02:00
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%preun minion
|
2013-05-16 11:38:22 +02:00
|
|
|
%if 0%{?_unitdir:1}
|
|
|
|
%service_del_preun salt-minion.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
|
|
|
%stop_on_removal salt-minion
|
2013-05-16 11:38:22 +02:00
|
|
|
%endif
|
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%post minion
|
2013-05-16 11:38:22 +02:00
|
|
|
%if 0%{?_unitdir:1}
|
|
|
|
%service_add_post salt-minion.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%fillup_only
|
|
|
|
%else
|
|
|
|
%fillup_and_insserv
|
2013-05-16 11:38:22 +02:00
|
|
|
%endif
|
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%postun minion
|
2013-05-16 11:38:22 +02:00
|
|
|
%if 0%{?_unitdir:1}
|
|
|
|
%service_del_postun salt-minion.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
2013-05-16 11:38:22 +02:00
|
|
|
%insserv_cleanup
|
2013-10-18 19:23:33 +02:00
|
|
|
%restart_on_update salt-minion
|
|
|
|
%endif
|
2013-05-16 11:38:22 +02:00
|
|
|
|
2014-02-22 18:17:25 +01:00
|
|
|
%files cloud
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/salt-cloud
|
|
|
|
%{_sysconfdir}/salt/cloud.maps.d
|
|
|
|
%{_sysconfdir}/salt/cloud.profiles.d
|
|
|
|
%{_sysconfdir}/salt/cloud.providers.d
|
|
|
|
%attr(0644, root, root) %config(noreplace) %{_sysconfdir}/salt/cloud
|
|
|
|
%attr(0644, root, root) %config(noreplace) %{_sysconfdir}/salt/cloud.profiles
|
|
|
|
%attr(0644, root, root) %config(noreplace) %{_sysconfdir}/salt/cloud.providers
|
|
|
|
%{_mandir}/man1/salt-cloud.1.*
|
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%files ssh
|
2013-09-27 18:20:38 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/salt-ssh
|
2013-10-01 08:35:03 +02:00
|
|
|
%{_mandir}/man1/salt-ssh.1.gz
|
2013-09-27 18:20:38 +02:00
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%files syndic
|
2013-05-16 11:38:22 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/salt-syndic
|
2013-10-01 08:35:03 +02:00
|
|
|
%{_mandir}/man1/salt-syndic.1.gz
|
2014-02-22 18:17:25 +01:00
|
|
|
%{_sbindir}/rcsalt-syndic
|
2013-05-16 11:38:22 +02:00
|
|
|
%if 0%{?_unitdir:1}
|
|
|
|
%_unitdir/salt-syndic.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
|
|
|
%{_sysconfdir}/init.d/salt-syndic
|
2013-05-16 11:38:22 +02:00
|
|
|
%endif
|
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%files minion
|
2013-05-16 11:38:22 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/salt-minion
|
2013-10-01 08:35:03 +02:00
|
|
|
%{_mandir}/man1/salt-minion.1.gz
|
2013-06-25 09:35:45 +02:00
|
|
|
%attr(0644, root, root) %config(noreplace) %{_sysconfdir}/salt/minion
|
2013-05-28 14:42:56 +02:00
|
|
|
%{_sysconfdir}/salt/minion.d
|
2014-02-22 18:17:25 +01:00
|
|
|
%{_sbindir}/rcsalt-minion
|
2013-05-16 11:38:22 +02:00
|
|
|
%if 0%{?_unitdir:1}
|
|
|
|
%_unitdir/salt-minion.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
|
|
|
%config(noreplace) %{_sysconfdir}/init.d/salt-minion
|
2013-05-16 11:38:22 +02:00
|
|
|
%endif
|
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%files master
|
2013-05-16 11:38:22 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/salt
|
|
|
|
%{_bindir}/salt-master
|
|
|
|
%{_bindir}/salt-cp
|
|
|
|
%{_bindir}/salt-key
|
|
|
|
%{_bindir}/salt-run
|
2013-10-01 08:35:03 +02:00
|
|
|
%{_mandir}/man1/salt-master.1.gz
|
|
|
|
%{_mandir}/man1/salt.1.gz
|
|
|
|
%{_mandir}/man1/salt-cp.1.gz
|
|
|
|
%{_mandir}/man1/salt-key.1.gz
|
|
|
|
%{_mandir}/man1/salt-run.1.gz
|
2013-09-08 15:29:30 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/salt
|
2013-06-25 09:35:45 +02:00
|
|
|
%attr(0644, root, root) %config(noreplace) %{_sysconfdir}/salt/master
|
2014-02-22 18:17:25 +01:00
|
|
|
%attr(0644, root, root) %config(noreplace) %{_sysconfdir}/salt/roster
|
2013-05-28 14:42:56 +02:00
|
|
|
%{_sysconfdir}/salt/master.d
|
2013-06-25 09:35:45 +02:00
|
|
|
%dir /srv/salt
|
2013-10-01 08:35:03 +02:00
|
|
|
%dir /srv/pillar
|
2014-02-22 18:17:25 +01:00
|
|
|
%{_sbindir}/rcsalt-master
|
2013-05-16 11:38:22 +02:00
|
|
|
%if 0%{?_unitdir:1}
|
|
|
|
%_unitdir/salt-master.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
|
|
|
%config(noreplace) %{_sysconfdir}/init.d/salt-master
|
2013-05-16 11:38:22 +02:00
|
|
|
%endif
|
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc doc/_build/html
|
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir %{_sysconfdir}/salt
|
2013-06-25 09:35:45 +02:00
|
|
|
%dir /var/log/salt
|
2013-10-01 08:35:03 +02:00
|
|
|
%{_bindir}/salt-call
|
|
|
|
%{_mandir}/man1/salt-call.1.gz
|
|
|
|
%{_mandir}/man7/salt.7.gz
|
2013-05-16 11:38:22 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/salt
|
2014-02-22 18:17:25 +01:00
|
|
|
%attr(755,root,root)%{python_sitelib}/salt/cloud/deploy/*.sh
|
2013-05-16 11:38:22 +02:00
|
|
|
%{python_sitelib}/*
|
2014-06-16 21:33:44 +02:00
|
|
|
%doc LICENSE AUTHORS README.rst HACKING.rst
|
|
|
|
|
|
|
|
%if %with_bashcomp
|
|
|
|
|
|
|
|
%files bash-completion
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config %{_sysconfdir}/bash_completion.d/%{name}
|
|
|
|
|
|
|
|
%endif #with_bashcomp
|
2013-11-18 10:54:21 +01:00
|
|
|
|
2013-11-22 07:29:28 +01:00
|
|
|
%changelog
|