2013-05-16 11:38:22 +02:00
|
|
|
#
|
|
|
|
# spec file for package salt
|
|
|
|
#
|
2015-07-14 17:43:20 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
2015-08-05 06:50:25 +02:00
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
%bcond_without systemd
|
|
|
|
%else
|
|
|
|
%bcond_with systemd
|
|
|
|
%endif
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%if 0%{?suse_version} > 1110
|
|
|
|
%bcond_without bash_completion
|
|
|
|
%bcond_without fish_completion
|
|
|
|
%bcond_without zsh_completion
|
|
|
|
%else
|
|
|
|
%bcond_with bash_completion
|
|
|
|
%bcond_with fish_completion
|
|
|
|
%bcond_with zsh_completion
|
|
|
|
%endif
|
|
|
|
%bcond_with test
|
|
|
|
%bcond_with raet
|
|
|
|
%bcond_without docs
|
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
Name: salt
|
2015-10-19 22:52:40 +02:00
|
|
|
Version: 2015.8.1
|
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
|
2015-10-19 22:52:40 +02:00
|
|
|
Source1: README.SUSE
|
|
|
|
Source2: salt-tmpfiles.d
|
2014-07-25 12:27:30 +02:00
|
|
|
# PATCH-FIX-OPENSUSE use-forking-daemon.patch tserong@suse.com -- We don't have python-systemd, so notify can't work
|
2014-11-24 11:13:31 +01:00
|
|
|
Patch1: use-forking-daemon.patch
|
2015-10-19 22:52:40 +02:00
|
|
|
# PATCH-OPENSUSE use-salt-user-for-master.patch -- Run salt master as dedicated salt user
|
|
|
|
Patch2: use-salt-user-for-master.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-05-28 14:42:56 +02:00
|
|
|
BuildRequires: logrotate
|
2015-10-19 22:52:40 +02:00
|
|
|
BuildRequires: python
|
2013-11-22 07:29:28 +01:00
|
|
|
BuildRequires: python-devel
|
2015-10-19 22:52:40 +02:00
|
|
|
# requirements/base.txt
|
|
|
|
BuildRequires: python-Jinja2
|
|
|
|
BuildRequires: python-futures >= 2.0
|
|
|
|
BuildRequires: python-markupsafe
|
2015-05-27 12:48:39 +02:00
|
|
|
BuildRequires: python-msgpack-python > 0.3
|
2014-07-25 12:27:30 +02:00
|
|
|
BuildRequires: python-psutil
|
2014-11-24 11:13:31 +01:00
|
|
|
BuildRequires: python-requests >= 1.0.0
|
2015-10-19 22:52:40 +02:00
|
|
|
BuildRequires: python-tornado >= 4.2.1
|
2014-07-25 12:27:30 +02:00
|
|
|
BuildRequires: python-yaml
|
2015-10-19 22:52:40 +02:00
|
|
|
# requirements/opt.txt (not all)
|
|
|
|
# BuildRequires: python-MySQL-python
|
|
|
|
# BuildRequires: python-timelib
|
|
|
|
# BuildRequires: python-gnupg
|
|
|
|
# BuildRequires: python-cherrypy >= 3.2.2
|
|
|
|
%if %{with raet}
|
|
|
|
# requirements/raet.txt
|
|
|
|
BuildRequires: python-libnacl >= 1.0.0
|
|
|
|
BuildRequires: python-ioflo >= 1.1.7
|
|
|
|
BuildRequires: python-raet >= 0.6.0
|
|
|
|
%endif
|
|
|
|
# requirements/zeromq.txt
|
|
|
|
BuildRequires: python-pycrypto >= 2.6.1
|
|
|
|
BuildRequires: python-pyzmq >= 2.2.0
|
|
|
|
%if %{with test}
|
|
|
|
# requirements/dev_python27.txt
|
|
|
|
BuildRequires: python-boto >= 2.32.1
|
2013-10-18 11:35:12 +02:00
|
|
|
BuildRequires: python-mock
|
2015-10-19 22:52:40 +02:00
|
|
|
BuildRequires: python-moto >= 0.3.6
|
2013-10-18 11:35:12 +02:00
|
|
|
BuildRequires: python-pip
|
2015-10-19 22:52:40 +02:00
|
|
|
BuildRequires: python-salt-testing >= 2015.2.16
|
2013-11-22 07:29:28 +01:00
|
|
|
BuildRequires: python-unittest2
|
|
|
|
BuildRequires: python-xml
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
|
|
|
%if %{with docs}
|
2013-11-18 10:54:21 +01:00
|
|
|
#for docs
|
|
|
|
BuildRequires: python-sphinx
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
2013-11-18 10:54:21 +01:00
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
Requires(pre): %{_sbindir}/groupadd
|
|
|
|
Requires(pre): %{_sbindir}/useradd
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
Requires(pre): %fillup_prereq
|
|
|
|
Requires(pre): pwdutils
|
|
|
|
%endif
|
2013-05-28 14:42:56 +02:00
|
|
|
Requires: logrotate
|
2015-10-19 22:52:40 +02:00
|
|
|
Requires: python
|
|
|
|
#
|
|
|
|
%if ! 0%{?suse_version} > 1110
|
|
|
|
Requires: python-certifi
|
|
|
|
%endif
|
|
|
|
# requirements/base.txt
|
2013-05-16 11:38:22 +02:00
|
|
|
Requires: python-Jinja2
|
2015-10-19 22:52:40 +02:00
|
|
|
Requires: python-futures >= 2.0
|
|
|
|
Requires: python-markupsafe
|
|
|
|
Requires: python-msgpack-python > 0.3
|
2014-04-30 15:12:30 +02:00
|
|
|
Requires: python-psutil
|
2015-10-19 22:52:40 +02:00
|
|
|
Requires: python-requests >= 1.0.0
|
|
|
|
Requires: python-tornado >= 4.2.1
|
2014-07-25 12:27:30 +02:00
|
|
|
Requires: python-yaml
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
# requirements/opt.txt (not all)
|
|
|
|
Recommends: python-MySQL-python
|
|
|
|
Recommends: python-timelib
|
|
|
|
Recommends: python-gnupg
|
|
|
|
# requirements/raet.txt
|
|
|
|
# Recommends: salt-raet
|
|
|
|
# requirements/zeromq.txt
|
|
|
|
%endif
|
|
|
|
Requires: python-pycrypto >= 2.6.1
|
|
|
|
Requires: python-pyzmq >= 2.2.0
|
|
|
|
#
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
# python-xml is part of python-base in all rhel versions
|
|
|
|
Requires: python-xml
|
|
|
|
Recommends: python-Mako
|
|
|
|
Recommends: python-netaddr
|
2013-10-18 19:23:33 +02:00
|
|
|
%endif
|
2013-10-18 11:35:12 +02:00
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
|
|
|
BuildRequires: systemd
|
|
|
|
%{?systemd_requires}
|
2014-06-16 21:33:44 +02:00
|
|
|
%else
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
Requires(pre): %insserv_prereq
|
|
|
|
%endif
|
2014-06-16 21:33:44 +02:00
|
|
|
%endif
|
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with fish_completion}
|
|
|
|
%define fish_dir %{_datadir}/fish/
|
|
|
|
%define fish_completions_dir %{_datadir}/fish/completions/
|
|
|
|
%endif
|
2014-06-16 21:33:44 +02:00
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with bash_completion}
|
|
|
|
%if 0%{?suse_version} >= 1140
|
|
|
|
BuildRequires: bash-completion
|
2013-06-25 09:35:45 +02:00
|
|
|
%else
|
2015-10-19 22:52:40 +02:00
|
|
|
BuildRequires: bash
|
|
|
|
%endif
|
2013-05-16 11:38:22 +02:00
|
|
|
%endif
|
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with zsh_completion}
|
|
|
|
BuildRequires: zsh
|
|
|
|
%endif
|
2013-11-18 10:54:21 +01:00
|
|
|
|
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-11-24 11:13:31 +01:00
|
|
|
%package api
|
|
|
|
Summary: The api for Salt a parallel remote execution system
|
|
|
|
Group: System/Monitoring
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: %{name}-master = %{version}
|
2015-10-19 22:52:40 +02:00
|
|
|
Requires: python-CherryPy >= 3.2.2
|
2014-11-24 11:13:31 +01:00
|
|
|
|
|
|
|
%description api
|
|
|
|
salt-api is a modular interface on top of Salt that can provide a variety of entry points into a running Salt system.
|
|
|
|
|
2014-02-22 18:17:25 +01:00
|
|
|
%package cloud
|
2015-10-19 22:52:40 +02:00
|
|
|
Summary: Generic cloud provisioning tool for Saltstack
|
2014-02-22 18:17:25 +01:00
|
|
|
Group: System/Monitoring
|
|
|
|
Requires: %{name} = %{version}
|
2015-05-27 12:48:39 +02:00
|
|
|
Requires: %{name}-master = %{version}
|
2014-02-22 18:17:25 +01:00
|
|
|
Requires: python-apache-libcloud
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version}
|
2014-02-22 18:17:25 +01:00
|
|
|
Recommends: python-botocore
|
|
|
|
Recommends: python-netaddr
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
2014-02-22 18:17:25 +01:00
|
|
|
|
|
|
|
%description cloud
|
|
|
|
public cloud VM management system
|
|
|
|
provision virtual machines on various public clouds via a cleanly
|
|
|
|
controlled profile and mapping system.
|
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with docs}
|
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}
|
|
|
|
|
|
|
|
%description doc
|
2015-10-19 22:52:40 +02:00
|
|
|
This contains the documentation of salt, it is an offline version of http://docs.saltstack.com.
|
|
|
|
%endif
|
2013-11-18 10:54:21 +01:00
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
%package master
|
2015-10-19 22:52:40 +02:00
|
|
|
Summary: The management component of Saltstack both protocols zmq and raet supported
|
2013-05-16 11:38:22 +02:00
|
|
|
Group: System/Monitoring
|
|
|
|
Requires: %{name} = %{version}
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
Recommends: python-pygit2 >= 0.20.3
|
2014-08-20 17:51:44 +02:00
|
|
|
%endif
|
2013-10-01 08:35:03 +02:00
|
|
|
%ifarch %{ix86} x86_64
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-10-01 08:35:03 +02:00
|
|
|
Requires: dmidecode
|
|
|
|
%endif
|
|
|
|
%endif
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
|
|
|
%{?systemd_requires}
|
|
|
|
%else
|
|
|
|
%if 0%{?suse_version}
|
2013-05-16 11:38:22 +02:00
|
|
|
Requires(pre): %insserv_prereq
|
2013-10-18 19:23:33 +02:00
|
|
|
%endif
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
2013-10-18 19:23:33 +02:00
|
|
|
Requires(pre): %fillup_prereq
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
2013-10-18 19:23:33 +02:00
|
|
|
|
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
|
2015-10-19 22:52:40 +02:00
|
|
|
Summary: The client component for Saltstack
|
2013-05-16 11:38:22 +02:00
|
|
|
Group: System/Monitoring
|
|
|
|
Requires: %{name} = %{version}
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
|
|
|
%{?systemd_requires}
|
|
|
|
%else
|
|
|
|
%if 0%{?suse_version}
|
2013-05-16 11:38:22 +02:00
|
|
|
Requires(pre): %insserv_prereq
|
2013-10-18 19:23:33 +02:00
|
|
|
%endif
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
2013-10-18 19:23:33 +02:00
|
|
|
Requires(pre): %fillup_prereq
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
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.
|
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
%package raet
|
|
|
|
Summary: Raet Support for Saltstack
|
|
|
|
Group: System/Monitoring
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: python-enum34
|
|
|
|
Requires: python-ioflo >= 1.1.7
|
|
|
|
Requires: python-libnacl >= 1.0.0
|
|
|
|
Requires: python-raet >= 0.6.0
|
|
|
|
|
|
|
|
%description raet
|
|
|
|
The Reliable Asynchronous Event Transport, or RAET, is an alternative transport
|
|
|
|
medium developed specifically with Salt in mind. It has been developed to allow
|
|
|
|
queuing to happen up on the application layer and comes with socket layer
|
|
|
|
encryption. It also abstracts a great deal of control over the socket layer and
|
|
|
|
makes it easy to bubble up errors and exceptions.
|
|
|
|
|
|
|
|
RAET also offers very powerful message routing capabilities, allowing for
|
|
|
|
messages to be routed between processes on a single machine all the way up to
|
|
|
|
processes on multiple machines. Messages can also be restricted, allowing
|
|
|
|
processes to be sent messages of specific types from specific sources allowing
|
|
|
|
for trust to be established.
|
|
|
|
|
|
|
|
%package proxy
|
|
|
|
Summary: Component for salt that enables controlling arbitrary devices
|
|
|
|
Group: System/Monitoring
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
%if %{with systemd}
|
|
|
|
%{?systemd_requires}
|
|
|
|
%else
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
Requires(pre): %insserv_prereq
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
Requires(pre): %fillup_prereq
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description proxy
|
|
|
|
Proxy minions are a developing Salt feature that enables controlling devices that,
|
|
|
|
for whatever reason, cannot run a standard salt-minion.
|
|
|
|
Examples include network gear that has an API but runs a proprietary OS,
|
|
|
|
devices with limited CPU or memory, or devices that could run a minion, but for
|
|
|
|
security reasons, will not.
|
|
|
|
|
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
%package syndic
|
2015-10-19 22:52:40 +02:00
|
|
|
Summary: The syndic component for saltstack
|
2013-05-16 11:38:22 +02:00
|
|
|
Group: System/Monitoring
|
|
|
|
Requires: %{name} = %{version}
|
2013-09-27 18:20:38 +02:00
|
|
|
Requires: %{name}-master = %{version}
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
|
|
|
%{?systemd_requires}
|
|
|
|
%else
|
|
|
|
%if 0%{?suse_version}
|
2013-05-16 11:38:22 +02:00
|
|
|
Requires(pre): %insserv_prereq
|
2013-10-18 19:23:33 +02:00
|
|
|
%endif
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
2013-10-18 19:23:33 +02:00
|
|
|
Requires(pre): %fillup_prereq
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
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
|
2015-10-19 22:52:40 +02:00
|
|
|
Summary: Management component for Saltstack with ssh protocol
|
2013-09-27 18:20:38 +02:00
|
|
|
Group: System/Monitoring
|
|
|
|
Requires: %{name} = %{version}
|
2015-10-19 22:52:40 +02:00
|
|
|
Requires: %{name}-master = %{version}
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
Recommends: sshpass
|
|
|
|
%endif
|
|
|
|
%if %{with systemd}
|
|
|
|
%{?systemd_requires}
|
|
|
|
%else
|
|
|
|
%if 0%{?suse_version}
|
2013-09-27 18:20:38 +02:00
|
|
|
Requires(pre): %insserv_prereq
|
2013-10-18 19:23:33 +02:00
|
|
|
%endif
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
2013-10-18 19:23:33 +02:00
|
|
|
Requires(pre): %fillup_prereq
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
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.
|
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with bash_completion}
|
2014-06-16 21:33:44 +02:00
|
|
|
%package bash-completion
|
|
|
|
Summary: Bash Completion for %{name}
|
|
|
|
Group: System/Management
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: bash-completion
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version} > 1110
|
2014-06-16 21:33:44 +02:00
|
|
|
BuildArch: noarch
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
2014-06-16 21:33:44 +02:00
|
|
|
|
|
|
|
%description bash-completion
|
|
|
|
Bash command line completion support for %{name}.
|
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with fish_completion}
|
|
|
|
%package fish-completion
|
|
|
|
Summary: Fish Completion for %{name}
|
|
|
|
Group: System/Management
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1110
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description fish-completion
|
|
|
|
Fish command line completion support for %{name}.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with zsh_completion}
|
2014-11-24 11:13:31 +01:00
|
|
|
%package zsh-completion
|
|
|
|
Summary: Zsh Completion for %{name}
|
|
|
|
Group: System/Management
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: zsh
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version} > 1110
|
2014-11-24 11:13:31 +01:00
|
|
|
BuildArch: noarch
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
2014-11-24 11:13:31 +01:00
|
|
|
|
|
|
|
%description zsh-completion
|
|
|
|
Zsh command line completion support for %{name}.
|
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
2014-06-16 21:33:44 +02:00
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
%prep
|
2015-10-19 22:52:40 +02:00
|
|
|
%setup -q -n salt-%{version}
|
2015-08-31 22:59:05 +02:00
|
|
|
cp %{S:1} .
|
2014-07-25 12:27:30 +02:00
|
|
|
%patch1 -p1
|
2015-10-19 22:52:40 +02:00
|
|
|
%patch2 -p1
|
2013-05-16 11:38:22 +02:00
|
|
|
|
|
|
|
%build
|
2015-10-19 22:52:40 +02:00
|
|
|
python setup.py --salt-transport=both build
|
2013-05-16 11:38:22 +02:00
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with docs}
|
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 *
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
2014-02-22 18:17:25 +01:00
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
%install
|
2015-10-19 22:52:40 +02:00
|
|
|
python setup.py --salt-transport=both install --prefix=%{_prefix} --root=%{buildroot}
|
2013-10-18 11:35:12 +02:00
|
|
|
## create missing directories
|
2015-10-19 22:52:40 +02:00
|
|
|
install -Dd -m 0750 %{buildroot}%{_sysconfdir}/salt/master.d
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_sysconfdir}/salt/minion.d
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_sysconfdir}/salt/cloud.maps.d
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_sysconfdir}/salt/cloud.profiles.d
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_sysconfdir}/salt/cloud.providers.d
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_localstatedir}/log/salt
|
|
|
|
install -Dd -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d/
|
|
|
|
install -Dd -m 0755 %{buildroot}%{_sbindir}
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_localstatedir}/log/salt
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_localstatedir}/cache/salt/minion/extmod
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_localstatedir}/cache/salt/master
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_localstatedir}/cache/salt/master/jobs
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_localstatedir}/cache/salt/master/proc
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_localstatedir}/cache/salt/master/queues
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_localstatedir}/cache/salt/master/roots
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_localstatedir}/cache/salt/master/syndics
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_localstatedir}/cache/salt/master/tokens
|
|
|
|
install -Dd -m 0750 %{buildroot}/srv/salt
|
|
|
|
install -Dd -m 0750 %{buildroot}/srv/pillar
|
|
|
|
install -Dd -m 0750 %{buildroot}/srv/spm
|
|
|
|
install -Dd -m 0755 %{buildroot}%{_docdir}/salt
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_sysconfdir}/salt/
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_sysconfdir}/salt/cloud.maps.d
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_sysconfdir}/salt/cloud.profiles.d
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_sysconfdir}/salt/cloud.providers.d
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_sysconfdir}/salt/master.d
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_sysconfdir}/salt/minion.d
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_sysconfdir}/salt/pki
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_sysconfdir}/salt/pki/master
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_sysconfdir}/salt/pki/master/minions
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_sysconfdir}/salt/pki/master/minions_autosign
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_sysconfdir}/salt/pki/master/minions_denied
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_sysconfdir}/salt/pki/master/minions_pre
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_sysconfdir}/salt/pki/master/minions_rejected
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_sysconfdir}/salt/pki/minion
|
2014-07-21 21:40:37 +02:00
|
|
|
|
2014-02-22 18:17:25 +01:00
|
|
|
## install init and systemd scripts
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
|
|
|
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
|
|
|
|
install -Dpm 0644 pkg/salt-api.service %{buildroot}%{_unitdir}/salt-api.service
|
2014-02-22 18:17:25 +01:00
|
|
|
ln -s service %{buildroot}%{_sbindir}/rcsalt-master
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rcsalt-syndic
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rcsalt-minion
|
2014-11-24 11:13:31 +01:00
|
|
|
ln -s service %{buildroot}%{_sbindir}/rcsalt-api
|
2015-10-19 22:52:40 +02:00
|
|
|
install -Dpm 644 %{S:2} %{buildroot}/usr/lib/tmpfiles.d/salt.conf
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
2015-10-19 22:52:40 +02:00
|
|
|
mkdir -p %{buildroot}%{_initddir}
|
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
|
2014-11-24 11:13:31 +01:00
|
|
|
install -Dpm 0755 pkg/suse/salt-api %{buildroot}%{_initddir}/salt-api
|
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
|
2014-11-24 11:13:31 +01:00
|
|
|
ln -sf %{_initddir}/salt-api %{buildroot}%{_sbindir}/rcsalt-api
|
2013-05-16 11:38:22 +02:00
|
|
|
%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
|
2015-10-19 22:52:40 +02:00
|
|
|
install -Dpm 0640 conf/minion %{buildroot}%{_sysconfdir}/salt/minion
|
|
|
|
install -Dpm 0640 /dev/null %{buildroot}%{_sysconfdir}/salt/minion_id
|
|
|
|
install -Dpm 0640 conf/master %{buildroot}%{_sysconfdir}/salt/master
|
|
|
|
install -Dpm 0640 conf/roster %{buildroot}%{_sysconfdir}/salt/roster
|
|
|
|
install -Dpm 0640 conf/cloud %{buildroot}%{_sysconfdir}/salt/cloud
|
|
|
|
install -Dpm 0640 conf/cloud.profiles %{buildroot}%{_sysconfdir}/salt/cloud.profiles
|
|
|
|
install -Dpm 0640 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
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with bash_completion}
|
|
|
|
install -Dpm 0644 pkg/salt.bash %{buildroot}%{_sysconfdir}/bash_completion.d/salt
|
|
|
|
%endif
|
|
|
|
%if %{with zsh_completion}
|
|
|
|
install -Dpm 0644 pkg/zsh_completion.zsh %{buildroot}%{_sysconfdir}/zsh_completion.d/salt
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with fish_completion}
|
|
|
|
mkdir -p %{buildroot}%{fish_completions_dir}
|
|
|
|
install -Dpm 0644 pkg/fish-completions/* %{buildroot}%{fish_completions_dir}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# raet transport config
|
|
|
|
echo "transport: raet" > %{buildroot}%{_sysconfdir}/salt/master.d/transport-raet.conf
|
|
|
|
echo "transport: raet" > %{buildroot}%{_sysconfdir}/salt/minion.d/transport-raet.conf
|
2013-09-08 15:29:30 +02:00
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
%check
|
|
|
|
%if %{with test}
|
|
|
|
python setup.py test --runtests-opts=-u
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%pre
|
|
|
|
getent group salt >/dev/null || %{_sbindir}/groupadd -r salt
|
|
|
|
getent passwd salt >/dev/null || %{_sbindir}/useradd -r -g salt -d /srv/salt -s /bin/false -c "salt-master daemon" salt
|
|
|
|
|
|
|
|
%if %{with systemd}
|
|
|
|
%post
|
|
|
|
systemd-tmpfiles --create /usr/lib/tmpfiles.d/salt.conf || true
|
|
|
|
%endif
|
2013-05-16 11:38:22 +02:00
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%preun syndic
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2013-05-16 11:38:22 +02:00
|
|
|
%service_del_preun salt-syndic.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-10-18 19:23:33 +02:00
|
|
|
%stop_on_removal salt-syndic
|
2015-10-19 22:52:40 +02:00
|
|
|
%else
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
/sbin/service salt-syndic stop >/dev/null 2>&1
|
|
|
|
/sbin/chkconfig --del salt-syndic
|
|
|
|
fi
|
|
|
|
%endif
|
2013-05-16 11:38:22 +02:00
|
|
|
%endif
|
|
|
|
|
2014-08-05 10:24:27 +02:00
|
|
|
%pre syndic
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2014-08-05 10:24:27 +02:00
|
|
|
%service_add_pre salt-syndic.service
|
|
|
|
%endif
|
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%post syndic
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2013-05-16 11:38:22 +02:00
|
|
|
%service_add_post salt-syndic.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%fillup_only
|
|
|
|
%else
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-10-18 19:23:33 +02:00
|
|
|
%fillup_and_insserv
|
2013-05-16 11:38:22 +02:00
|
|
|
%endif
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
2013-05-16 11:38:22 +02:00
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%postun syndic
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2013-05-16 11:38:22 +02:00
|
|
|
%service_del_postun salt-syndic.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-05-16 11:38:22 +02:00
|
|
|
%insserv_cleanup
|
2013-10-18 19:23:33 +02:00
|
|
|
%restart_on_update salt-syndic
|
|
|
|
%endif
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
2013-05-16 11:38:22 +02:00
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%preun master
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2013-05-16 11:38:22 +02:00
|
|
|
%service_del_preun salt-master.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-10-18 19:23:33 +02:00
|
|
|
%stop_on_removal salt-master
|
2015-10-19 22:52:40 +02:00
|
|
|
%else
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
/sbin/service salt-master stop >/dev/null 2>&1
|
|
|
|
/sbin/chkconfig --del salt-master
|
|
|
|
fi
|
|
|
|
%endif
|
2013-05-16 11:38:22 +02:00
|
|
|
%endif
|
|
|
|
|
2014-08-05 10:24:27 +02:00
|
|
|
%pre master
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2014-08-05 10:24:27 +02:00
|
|
|
%service_add_pre salt-master.service
|
|
|
|
%endif
|
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%post master
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2013-05-16 11:38:22 +02:00
|
|
|
%service_add_post salt-master.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%fillup_only
|
|
|
|
%else
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-10-18 19:23:33 +02:00
|
|
|
%fillup_and_insserv
|
2015-10-19 22:52:40 +02:00
|
|
|
%else
|
|
|
|
/sbin/chkconfig --add salt-master
|
|
|
|
%endif
|
2013-05-16 11:38:22 +02:00
|
|
|
%endif
|
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%postun master
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2013-05-16 11:38:22 +02:00
|
|
|
%service_del_postun salt-master.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-10-18 19:23:33 +02:00
|
|
|
%restart_on_update salt-master
|
2013-05-16 11:38:22 +02:00
|
|
|
%insserv_cleanup
|
2015-10-19 22:52:40 +02:00
|
|
|
%else
|
|
|
|
if [ "$1" -ge "1" ] ; then
|
|
|
|
/sbin/service salt-master condrestart >/dev/null 2>&1 || :
|
|
|
|
fi
|
|
|
|
%endif
|
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
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2013-05-16 11:38:22 +02:00
|
|
|
%service_del_preun salt-minion.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-10-18 19:23:33 +02:00
|
|
|
%stop_on_removal salt-minion
|
2015-10-19 22:52:40 +02:00
|
|
|
%else
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
/sbin/service salt-minion stop >/dev/null 2>&1
|
|
|
|
/sbin/chkconfig --del salt-minion
|
|
|
|
fi
|
|
|
|
%endif
|
2013-05-16 11:38:22 +02:00
|
|
|
%endif
|
|
|
|
|
2014-08-05 10:24:27 +02:00
|
|
|
%pre minion
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2014-08-05 10:24:27 +02:00
|
|
|
%service_add_pre salt-minion.service
|
|
|
|
%endif
|
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%post minion
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2013-05-16 11:38:22 +02:00
|
|
|
%service_add_post salt-minion.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%fillup_only
|
|
|
|
%else
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-10-18 19:23:33 +02:00
|
|
|
%fillup_and_insserv
|
2015-10-19 22:52:40 +02:00
|
|
|
%else
|
|
|
|
/sbin/chkconfig --add salt-minion
|
|
|
|
%endif
|
2013-05-16 11:38:22 +02:00
|
|
|
%endif
|
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%postun minion
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2013-05-16 11:38:22 +02:00
|
|
|
%service_del_postun salt-minion.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-05-16 11:38:22 +02:00
|
|
|
%insserv_cleanup
|
2013-10-18 19:23:33 +02:00
|
|
|
%restart_on_update salt-minion
|
2015-10-19 22:52:40 +02:00
|
|
|
%else
|
|
|
|
if [ "$1" -ge "1" ] ; then
|
|
|
|
/sbin/service salt-minion condrestart >/dev/null 2>&1 || :
|
|
|
|
fi
|
|
|
|
%endif
|
2013-10-18 19:23:33 +02:00
|
|
|
%endif
|
2013-05-16 11:38:22 +02:00
|
|
|
|
2014-11-24 11:13:31 +01:00
|
|
|
%preun api
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2014-11-24 11:13:31 +01:00
|
|
|
%service_del_preun salt-api.service
|
|
|
|
%else
|
|
|
|
%stop_on_removal
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%pre api
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2014-11-24 11:13:31 +01:00
|
|
|
%service_add_pre salt-api.service
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%post api
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2014-11-24 11:13:31 +01:00
|
|
|
%service_add_post salt-api.service
|
|
|
|
%else
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version}
|
2014-11-24 11:13:31 +01:00
|
|
|
%fillup_and_insserv
|
|
|
|
%endif
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
2014-11-24 11:13:31 +01:00
|
|
|
|
|
|
|
%postun api
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2014-11-24 11:13:31 +01:00
|
|
|
%service_del_postun salt-api.service
|
|
|
|
%else
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version}
|
2014-11-24 11:13:31 +01:00
|
|
|
%insserv_cleanup
|
|
|
|
%restart_on_update
|
|
|
|
%endif
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
2014-11-24 11:13:31 +01:00
|
|
|
|
|
|
|
%files api
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/salt-api
|
|
|
|
%{_sbindir}/rcsalt-api
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
|
|
|
%{_unitdir}/salt-api.service
|
2014-11-24 11:13:31 +01:00
|
|
|
%else
|
2015-10-19 22:52:40 +02:00
|
|
|
%{_initddir}/salt-api
|
2014-11-24 11:13:31 +01:00
|
|
|
%endif
|
|
|
|
%{_mandir}/man1/salt-api.1.*
|
|
|
|
|
2014-02-22 18:17:25 +01:00
|
|
|
%files cloud
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/salt-cloud
|
2015-10-19 22:52:40 +02:00
|
|
|
%dir %attr(0750, root, salt) %{_sysconfdir}/salt/cloud.maps.d
|
|
|
|
%dir %attr(0750, root, salt) %{_sysconfdir}/salt/cloud.profiles.d
|
|
|
|
%dir %attr(0750, root, salt) %{_sysconfdir}/salt/cloud.providers.d
|
|
|
|
%config(noreplace) %attr(0640, root, salt) %{_sysconfdir}/salt/cloud
|
|
|
|
%config(noreplace) %attr(0640, root, salt) %{_sysconfdir}/salt/cloud.profiles
|
|
|
|
%config(noreplace) %attr(0640, root, salt) %{_sysconfdir}/salt/cloud.providers
|
2014-02-22 18:17:25 +01:00
|
|
|
%{_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
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
|
|
|
%{_unitdir}/salt-syndic.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
2015-10-19 22:52:40 +02:00
|
|
|
%{_initddir}/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
|
2015-10-19 22:52:40 +02:00
|
|
|
%config(noreplace) %attr(0640, root, root) %{_sysconfdir}/salt/minion
|
|
|
|
%config(noreplace) %attr(0640, root, root) %ghost %{_sysconfdir}/salt/minion_id
|
|
|
|
%dir %attr(0750, root, root) %{_sysconfdir}/salt/minion.d/
|
|
|
|
%dir %attr(0750, root, root) %{_sysconfdir}/salt/pki/minion/
|
|
|
|
%dir %attr(0750, root, root) %{_localstatedir}/cache/salt/minion/
|
2014-02-22 18:17:25 +01:00
|
|
|
%{_sbindir}/rcsalt-minion
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
|
|
|
%{_unitdir}/salt-minion.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
2015-10-19 22:52:40 +02:00
|
|
|
%config(noreplace) %{_initddir}/salt-minion
|
2013-05-16 11:38:22 +02:00
|
|
|
%endif
|
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
%files proxy
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/salt-proxy
|
|
|
|
%{_mandir}/man1/salt-proxy.1.gz
|
|
|
|
|
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-cp.1.gz
|
|
|
|
%{_mandir}/man1/salt-key.1.gz
|
|
|
|
%{_mandir}/man1/salt-run.1.gz
|
2015-01-24 22:20:58 +01:00
|
|
|
%{_mandir}/man7/salt.7.gz
|
2013-09-08 15:29:30 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/salt
|
2014-02-22 18:17:25 +01:00
|
|
|
%{_sbindir}/rcsalt-master
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
|
|
|
%{_unitdir}/salt-master.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
2015-10-19 22:52:40 +02:00
|
|
|
%config(noreplace) %{_initddir}/salt-master
|
2013-05-16 11:38:22 +02:00
|
|
|
%endif
|
2015-10-19 22:52:40 +02:00
|
|
|
#
|
|
|
|
%config(noreplace) %attr(0640, root, salt) %{_sysconfdir}/salt/master
|
|
|
|
%config(noreplace) %attr(0640, root, salt) %{_sysconfdir}/salt/roster
|
|
|
|
%dir %attr(0755, root, salt) %{_sysconfdir}/salt/master.d/
|
|
|
|
%dir %attr(0750, salt, salt) %{_sysconfdir}/salt/pki/master/
|
|
|
|
%dir %attr(0750, salt, salt) %{_sysconfdir}/salt/pki/master/minions/
|
|
|
|
%dir %attr(0750, salt, salt) %{_sysconfdir}/salt/pki/master/minions_autosign/
|
|
|
|
%dir %attr(0750, salt, salt) %{_sysconfdir}/salt/pki/master/minions_denied/
|
|
|
|
%dir %attr(0750, salt, salt) %{_sysconfdir}/salt/pki/master/minions_pre/
|
|
|
|
%dir %attr(0750, salt, salt) %{_sysconfdir}/salt/pki/master/minions_rejected/
|
|
|
|
%dir %attr(0755, root, salt) /srv/salt
|
|
|
|
%dir %attr(0755, root, salt) /srv/pillar
|
|
|
|
%dir %attr(0750, salt, salt) %{_localstatedir}/cache/salt/master/
|
|
|
|
%dir %attr(0750, salt, salt) %{_localstatedir}/cache/salt/master/jobs/
|
|
|
|
%dir %attr(0750, salt, salt) %{_localstatedir}/cache/salt/master/proc/
|
|
|
|
%dir %attr(0750, salt, salt) %{_localstatedir}/cache/salt/master/queues/
|
|
|
|
%dir %attr(0750, salt, salt) %{_localstatedir}/cache/salt/master/roots/
|
|
|
|
%dir %attr(0750, salt, salt) %{_localstatedir}/cache/salt/master/syndics/
|
|
|
|
%dir %attr(0750, salt, salt) %{_localstatedir}/cache/salt/master/tokens/
|
|
|
|
|
|
|
|
%files raet
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%config(noreplace) %attr(0640, root, salt) %{_sysconfdir}/salt/master.d/transport-raet.conf
|
|
|
|
%config(noreplace) %attr(0640, root, root) %{_sysconfdir}/salt/minion.d/transport-raet.conf
|
2013-11-18 10:54:21 +01:00
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2015-10-19 22:52:40 +02:00
|
|
|
%{_bindir}/spm
|
2013-10-01 08:35:03 +02:00
|
|
|
%{_bindir}/salt-call
|
2014-11-24 11:13:31 +01:00
|
|
|
%{_bindir}/salt-unity
|
|
|
|
%{_mandir}/man1/salt-unity.1.gz
|
2013-10-01 08:35:03 +02:00
|
|
|
%{_mandir}/man1/salt-call.1.gz
|
2013-05-16 11:38:22 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/salt
|
|
|
|
%{python_sitelib}/*
|
2015-10-19 22:52:40 +02:00
|
|
|
%exclude %{python_sitelib}/salt/cloud/deploy/*.sh
|
|
|
|
%attr(755,root,root)%{python_sitelib}/salt/cloud/deploy/*.sh
|
2015-08-31 22:59:05 +02:00
|
|
|
%doc LICENSE AUTHORS README.rst HACKING.rst README.SUSE
|
2015-10-19 22:52:40 +02:00
|
|
|
#
|
|
|
|
%dir %attr(0750, root, salt) %{_sysconfdir}/salt
|
|
|
|
%dir %attr(0750, root, salt) %{_sysconfdir}/salt/pki
|
|
|
|
%dir %attr(0750, salt, salt) %{_localstatedir}/log/salt
|
|
|
|
%dir %attr(0750, root, salt) %{_localstatedir}/cache/salt
|
|
|
|
%dir %attr(0750, root, salt) /srv/spm
|
|
|
|
%if %{with systemd}
|
|
|
|
/usr/lib/tmpfiles.d/salt.conf
|
|
|
|
%endif
|
2014-06-16 21:33:44 +02:00
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with docs}
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc doc/_build/html
|
|
|
|
%endif
|
2014-06-16 21:33:44 +02:00
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with bash_completion}
|
2014-06-16 21:33:44 +02:00
|
|
|
%files bash-completion
|
|
|
|
%defattr(-,root,root)
|
2015-10-19 22:52:40 +02:00
|
|
|
%dir %{_sysconfdir}/bash_completion.d/
|
2014-06-16 21:33:44 +02:00
|
|
|
%config %{_sysconfdir}/bash_completion.d/%{name}
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
2014-06-16 21:33:44 +02:00
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with zsh_completion}
|
2014-11-24 11:13:31 +01:00
|
|
|
%files zsh-completion
|
|
|
|
%defattr(-,root,root)
|
2015-10-19 22:52:40 +02:00
|
|
|
%dir %{_sysconfdir}/zsh_completion.d/
|
2014-11-24 11:13:31 +01:00
|
|
|
%config %{_sysconfdir}/zsh_completion.d/%{name}
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
2014-11-24 11:13:31 +01:00
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with fish_completion}
|
|
|
|
%files fish-completion
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{fish_completions_dir}/salt*
|
|
|
|
%dir %{fish_completions_dir}
|
|
|
|
%dir %{fish_dir}
|
|
|
|
%endif
|
2013-11-18 10:54:21 +01:00
|
|
|
|
2015-08-05 06:50:25 +02:00
|
|
|
%changelog
|