2013-05-16 11:38:22 +02:00
|
|
|
#
|
|
|
|
# spec file for package salt
|
|
|
|
#
|
2019-05-02 18:27:35 +02:00
|
|
|
# Copyright (c) 2019 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/
|
|
|
|
#
|
2019-10-10 13:49:11 +02:00
|
|
|
%global debug_package %{nil}
|
2020-04-02 16:31:16 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%global build_py3 1
|
|
|
|
%global build_py2 0
|
|
|
|
%global default_py3 1
|
|
|
|
%else
|
|
|
|
%if 0%{?suse_version} >= 1500
|
2018-01-26 14:46:21 +01:00
|
|
|
# SLE15
|
|
|
|
%global build_py3 1
|
|
|
|
%global build_py2 1
|
|
|
|
%global default_py3 1
|
|
|
|
%else
|
|
|
|
%if 0%{?suse_version} == 1315
|
|
|
|
# SLE12
|
|
|
|
%global build_py3 1
|
|
|
|
%global build_py2 1
|
|
|
|
%else
|
2019-09-06 14:06:25 +02:00
|
|
|
%if 0%{?rhel} == 7
|
2018-01-26 14:46:21 +01:00
|
|
|
# RES7
|
|
|
|
%global build_py2 1
|
2019-09-06 14:06:25 +02:00
|
|
|
%else
|
|
|
|
%global build_py3 1
|
|
|
|
%global default_py3 1
|
|
|
|
%endif
|
2018-01-26 14:46:21 +01:00
|
|
|
%endif
|
|
|
|
%endif
|
2020-04-02 16:31:16 +02:00
|
|
|
%endif
|
2018-01-26 14:46:21 +01:00
|
|
|
%define pythonX %{?default_py3: python3}%{!?default_py3: python2}
|
2015-08-05 06:50:25 +02:00
|
|
|
|
2020-04-02 16:31:16 +02:00
|
|
|
%if 0%{?suse_version} > 1210 || 0%{?rhel} >= 7 || 0%{?fedora} >=28
|
2015-10-19 22:52:40 +02:00
|
|
|
%bcond_without systemd
|
|
|
|
%else
|
|
|
|
%bcond_with systemd
|
|
|
|
%endif
|
2017-11-10 08:17:55 +01:00
|
|
|
%{!?python3_sitelib: %global python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
2015-10-19 22:52:40 +02:00
|
|
|
%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_without docs
|
2016-09-28 09:49:13 +02:00
|
|
|
%bcond_with builddocs
|
2015-10-19 22:52:40 +02:00
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
Name: salt
|
2020-04-30 16:20:16 +02:00
|
|
|
Version: 3000.2
|
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
|
2017-02-16 16:09:53 +01:00
|
|
|
Group: System/Management
|
2013-05-28 14:42:56 +02:00
|
|
|
Url: http://saltstack.org/
|
2019-04-12 11:57:21 +02:00
|
|
|
Source: v%{version}.tar.gz
|
2015-10-19 22:52:40 +02:00
|
|
|
Source1: README.SUSE
|
|
|
|
Source2: salt-tmpfiles.d
|
2016-09-28 09:49:13 +02:00
|
|
|
Source3: html.tar.bz2
|
2016-09-28 15:09:18 +02:00
|
|
|
Source4: update-documentation.sh
|
2016-11-06 12:48:16 +01:00
|
|
|
Source5: travis.yml
|
2016-02-24 18:43:06 +01:00
|
|
|
|
2018-07-30 13:52:13 +02:00
|
|
|
Patch1: run-salt-master-as-dedicated-salt-user.patch
|
|
|
|
Patch2: run-salt-api-as-user-salt-bsc-1064520.patch
|
|
|
|
Patch3: activate-all-beacons-sources-config-pillar-grains.patch
|
|
|
|
Patch4: avoid-excessive-syslogging-by-watchdog-cronjob-58.patch
|
2019-04-12 11:57:21 +02:00
|
|
|
Patch5: fix-bsc-1065792.patch
|
2018-04-11 18:47:08 +02:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/46684
|
2019-04-12 11:57:21 +02:00
|
|
|
Patch6: add-saltssh-multi-version-support-across-python-inte.patch
|
2018-04-30 14:06:44 +02:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/46890
|
2019-04-12 11:57:21 +02:00
|
|
|
Patch7: fall-back-to-pymysql.patch
|
2018-05-16 11:48:03 +02:00
|
|
|
# PATCH-FIX_OPENSUSE bsc#1091371
|
2019-04-12 11:57:21 +02:00
|
|
|
Patch8: enable-passing-a-unix_socket-for-mysql-returners-bsc.patch
|
2018-07-30 13:52:13 +02:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/47638
|
2019-04-12 11:57:21 +02:00
|
|
|
Patch9: add-all_versions-parameter-to-include-all-installed-.patch
|
2018-07-30 13:52:13 +02:00
|
|
|
# PATCH-FIX_OPENSUSE bsc#1057635
|
2019-04-12 11:57:21 +02:00
|
|
|
Patch10: add-environment-variable-to-know-if-yum-is-invoked-f.patch
|
2018-07-30 13:52:13 +02:00
|
|
|
# PATCH-FIX_OPENSUSE
|
2019-04-12 11:57:21 +02:00
|
|
|
Patch11: add-custom-suse-capabilities-as-grains.patch
|
2018-07-30 13:52:13 +02:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/48294
|
2019-04-12 11:57:21 +02:00
|
|
|
Patch12: fix-zypper.list_pkgs-to-be-aligned-with-pkg-state.patch
|
2018-09-17 16:18:45 +02:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/49063
|
2019-04-12 11:57:21 +02:00
|
|
|
Patch13: integration-of-msi-authentication-with-azurearm-clou.patch
|
2018-09-17 16:18:45 +02:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/49538
|
2019-04-12 11:57:21 +02:00
|
|
|
Patch14: fix-for-suse-expanded-support-detection.patch
|
2018-09-17 16:18:45 +02:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/48812
|
2019-04-12 11:57:21 +02:00
|
|
|
Patch15: use-adler32-algorithm-to-compute-string-checksums.patch
|
2018-09-17 16:18:45 +02:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/49497
|
2019-04-12 11:57:21 +02:00
|
|
|
Patch16: x509-fixes-111.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/49696
|
2019-04-12 11:57:21 +02:00
|
|
|
Patch17: loosen-azure-sdk-dependencies-in-azurearm-cloud-driv.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/49737
|
2019-04-12 11:57:21 +02:00
|
|
|
Patch18: do-not-load-pip-state-if-there-is-no-3rd-party-depen.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/49815
|
2019-04-12 11:57:21 +02:00
|
|
|
Patch19: fix-ipv6-scope-bsc-1108557.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/49480
|
2019-04-12 11:57:21 +02:00
|
|
|
Patch20: early-feature-support-config.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/49936
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch21: make-profiles-a-package.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/49946
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch22: add-cpe_name-for-osversion-grain-parsing-u-49946.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH-FIX_OPENSUSE: Fix unit test for grains core
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch23: fix-unit-test-for-grains-core.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/50095
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch24: support-config-non-root-permission-issues-fixes-u-50.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/50018
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch25: add-multi-file-support-and-globbing-to-the-filetree-.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/49761
|
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/50201
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch26: fixes-cve-2018-15750-cve-2018-15751.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/50417
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch27: fix-git_pillar-merging-across-multiple-__env__-repos.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/50523
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch28: get-os_arch-also-without-rpm-package-installed.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/50392
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch29: make-aptpkg.list_repos-compatible-on-enabled-disable.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/50453
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch30: debian-info_installed-compatibility-50453.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/50742
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch31: decide-if-the-source-should-be-actually-skipped.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/50773
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch32: add-hold-unhold-functions.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/50401
|
|
|
|
# NOTE: This is a techpreview as well as in Fluorine! Release only in Neon.
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch33: add-supportconfig-module-for-remote-calls-and-saltss.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/116
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch34: return-the-expected-powerpc-os-arch-bsc-1117995.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/51108
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch35: remove-arch-from-name-when-pkg.list_pkgs-is-called-w.patch
|
2019-01-17 10:18:02 +01:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/51119
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch36: fix-issue-2068-test.patch
|
2019-04-12 11:57:21 +02:00
|
|
|
# PATCH_FIX_OPENSUSE: Temporary fix allowing "id_" and "force" params while upstrem figures it out
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch37: temporary-fix-extend-the-whitelist-of-allowed-comman.patch
|
2019-04-12 11:57:21 +02:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/51382
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch38: don-t-call-zypper-with-more-than-one-no-refresh.patch
|
2019-04-12 11:57:21 +02:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/50109
|
|
|
|
# PATCH_FIX_OPENSUSE https://github.com/openSUSE/salt/pull/121
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch39: add-virt.all_capabilities.patch
|
2019-04-12 11:57:21 +02:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/51384
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch40: include-aliases-in-the-fqdns-grains.patch
|
2019-04-12 11:57:21 +02:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/50546
|
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/51863
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch41: async-batch-implementation.patch
|
2019-04-26 12:09:06 +02:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/52527
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch42: calculate-fqdns-in-parallel-to-avoid-blockings-bsc-1.patch
|
2019-04-26 12:09:06 +02:00
|
|
|
#PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/139
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch43: fix-async-batch-race-conditions.patch
|
2019-04-26 12:09:06 +02:00
|
|
|
#PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/141
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch44: add-batch_presence_ping_timeout-and-batch_presence_p.patch
|
2019-04-30 14:10:21 +02:00
|
|
|
#PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/52657
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch45: do-not-report-patches-as-installed-when-not-all-the-.patch
|
2019-04-30 14:10:21 +02:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/52527
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch46: use-threadpool-from-multiprocessing.pool-to-avoid-le.patch
|
2019-05-07 17:40:32 +02:00
|
|
|
# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/52888
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch47: do-not-crash-when-there-are-ipv6-established-connect.patch
|
2019-05-08 16:50:44 +02:00
|
|
|
# PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/144
|
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/52855
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch48: fix-async-batch-multiple-done-events.patch
|
2019-05-20 14:43:15 +02:00
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/52743
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch49: switch-firewalld-state-to-use-change_interface.patch
|
2019-05-23 11:12:16 +02:00
|
|
|
# PATCH-FIX_OPENSUSE
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch50: add-standalone-configuration-file-for-enabling-packa.patch
|
2019-06-14 14:50:01 +02:00
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/53293
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch51: do-not-break-repo-files-with-multiple-line-values-on.patch
|
2019-06-14 14:50:01 +02:00
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/53159
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch52: batch.py-avoid-exception-when-minion-does-not-respon.patch
|
2019-06-14 14:50:01 +02:00
|
|
|
# PATCH_FIX_UPSTREAM: https://github.com/saltstack/salt/pull/53471
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch53: fix-zypper-pkg.list_pkgs-expectation-and-dpkg-mockin.patch
|
2019-06-21 10:17:26 +02:00
|
|
|
# PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/161
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch54: provide-the-missing-features-required-for-yomi-yet-o.patch
|
2019-07-03 11:10:11 +02:00
|
|
|
# PATCH_FIX_UPSTREAM: https://github.com/saltstack/salt/pull/53661
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch55: do-not-make-ansiblegate-to-crash-on-python3-minions.patch
|
2019-07-03 11:10:11 +02:00
|
|
|
# PATCH_FIX_UPSTREAM: https://github.com/saltstack/salt/pull/53693
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch56: allow-passing-kwargs-to-pkg.list_downloaded-bsc-1140.patch
|
2019-07-10 16:37:34 +02:00
|
|
|
# PATCH_FIX_UPSTREAM: https://github.com/saltstack/salt/pull/53661
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch57: prevent-ansiblegate-unit-tests-to-fail-on-ubuntu.patch
|
2019-07-30 14:28:36 +02:00
|
|
|
# PATCH_FIX_UPSTREAM: https://github.com/saltstack/salt/pull/54048
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch58: avoid-traceback-when-http.query-request-cannot-be-pe.patch
|
2019-07-30 14:28:36 +02:00
|
|
|
# PATCH_FIX_UPSTREAM: https://github.com/saltstack/salt/pull/53992
|
|
|
|
# https://github.com/saltstack/salt/pull/53996
|
|
|
|
# https://github.com/saltstack/salt/pull/54022
|
|
|
|
# https://github.com/saltstack/salt/pull/54024
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch59: accumulated-changes-required-for-yomi-165.patch
|
2019-09-06 14:06:25 +02:00
|
|
|
# PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/159
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch60: move-server_id-deprecation-warning-to-reduce-log-spa.patch
|
2019-09-06 14:06:25 +02:00
|
|
|
# PATCH_FIX_UPSTREAM: https://github.com/saltstack/salt/pull/54077
|
|
|
|
# PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/166
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch61: fix-aptpkg-systemd-call-bsc-1143301.patch
|
2019-09-06 14:06:25 +02:00
|
|
|
# PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/170
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch62: strip-trailing-from-repo.uri-when-comparing-repos-in.patch
|
2019-11-28 16:41:55 +01:00
|
|
|
# PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/177
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch63: restore-default-behaviour-of-pkg-list-return.patch
|
2019-09-06 14:06:25 +02:00
|
|
|
# PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/172
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch64: implement-network.fqdns-module-function-bsc-1134860-.patch
|
2019-11-28 16:41:55 +01:00
|
|
|
# PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/commit/6af07030a502c427781991fc9a2b994fa04ef32e
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch65: fix-memory-leak-produced-by-batch-async-find_jobs-me.patch
|
2019-09-26 14:48:15 +02:00
|
|
|
# PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/commit/002543df392f65d95dbc127dc058ac897f2035ed
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch66: improve-batch_async-to-release-consumed-memory-bsc-1.patch
|
2019-10-10 13:49:11 +02:00
|
|
|
# PATCH_FIX_UPSTREAM: https://github.com/saltstack/salt/pull/54077
|
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/commit/44a91c2ce6df78d93ce0ef659dedb0e41b1c2e04
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch67: prevent-systemd-run-description-issue-when-running-a.patch
|
2019-10-10 13:49:11 +02:00
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/commit/55d8a777d6a9b19c959e14a4060e5579e92cd106
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch68: use-current-ioloop-for-the-localclient-instance-of-b.patch
|
2019-10-10 13:49:11 +02:00
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/commit/8378bb24a5a53973e8dba7658b8b3465d967329f
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch69: fix-failing-unit-tests-for-batch-async.patch
|
2019-10-10 13:49:11 +02:00
|
|
|
# PATCH_FIX_UPSTREAM: https://github.com/saltstack/salt/pull/54935
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch70: add-missing-fun-for-returns-from-wfunc-executions.patch
|
2019-10-25 11:14:18 +02:00
|
|
|
# PATCH_FIX_UPSTREAM: https://github.com/saltstack/salt/pull/53326
|
|
|
|
# PATCH_FIX_UPSTREAM: https://github.com/saltstack/salt/pull/54954
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch71: accumulated-changes-from-yomi-167.patch
|
2019-10-25 17:02:59 +02:00
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/180
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch72: fix-a-wrong-rebase-in-test_core.py-180.patch
|
2019-11-08 10:16:30 +01:00
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/182
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch73: remove-unnecessary-yield-causing-badyielderror-bsc-1.patch
|
2019-11-28 16:41:55 +01:00
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/186
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch74: read-repo-info-without-using-interpolation-bsc-11356.patch
|
2019-11-28 16:41:55 +01:00
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/53293
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch75: prevent-test_mod_del_repo_multiline_values-to-fail.patch
|
|
|
|
Patch76: fix-for-log-checking-in-x509-test.patch
|
2019-12-10 16:22:43 +01:00
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/190
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch77: fixing-streamclosed-issue.patch
|
|
|
|
Patch78: fix-batch_async-obsolete-test.patch
|
2019-12-10 16:22:43 +01:00
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/191
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch79: let-salt-ssh-use-platform-python-binary-in-rhel8-191.patch
|
2019-12-12 11:37:03 +01:00
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/193
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch80: xfs-do-not-fails-if-type-is-not-present.patch
|
2020-01-15 15:58:58 +01:00
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/55245
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch81: virt-adding-kernel-boot-parameters-to-libvirt-xml-55.patch
|
2020-01-15 15:58:58 +01:00
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/200
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch82: support-for-btrfs-and-xfs-in-parted-and-mkfs.patch
|
2020-03-05 13:49:45 +01:00
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/56125
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch83: add-astra-linux-common-edition-to-the-os-family-list.patch
|
2020-03-05 13:49:45 +01:00
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/211
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch84: apply-patch-from-upstream-to-support-python-3.8.patch
|
2020-03-05 13:49:45 +01:00
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/217
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch85: batch_async-avoid-using-fnmatch-to-match-event-217.patch
|
2020-03-05 13:49:45 +01:00
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/commit/8a23030d347b7487328c0395f5e30ef29daf1455
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch86: batch-async-catch-exceptions-and-safety-unregister-a.patch
|
2020-03-05 13:49:45 +01:00
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/commit/a38adfa2efe40c2b1508b685af0b5d28a6bbcfc8
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch87: fix-unit-tests-for-batch-async-after-refactor.patch
|
2020-03-05 13:49:45 +01:00
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/218
|
2020-04-07 14:14:01 +02:00
|
|
|
Patch88: use-full-option-name-instead-of-undocumented-abbrevi.patch
|
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/commit/93c0630b84b9da89acaf549a5c79e5d834c70a65
|
|
|
|
Patch89: removes-unresolved-merge-conflict-in-yumpkg-module.patch
|
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/commit/b4c401cfe6031b61e27f7795bfa1aca6e8341e52
|
|
|
|
Patch90: changed-imports-to-vendored-tornado.patch
|
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/commit/082fa07e5301414b5b834b731aaa96bd5d966de7
|
|
|
|
Patch91: add-missing-_utils-at-loader-grains_func.patch
|
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/commit/25b4e3ea983b2606b2fb3d3c0e42f9840208bf84
|
|
|
|
Patch92: remove-deprecated-usage-of-no_mock-and-no_mock_reaso.patch
|
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/commit/a8f0a15e4067ec278c8a2d690e3bf815523286ca
|
2020-04-30 16:20:16 +02:00
|
|
|
Patch93: fix-wrong-test_mod_del_repo_multiline_values-test-af.patch
|
2020-04-07 14:14:01 +02:00
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/56369
|
2020-04-30 16:20:16 +02:00
|
|
|
Patch94: make-salt.ext.tornado.gen-to-use-salt.ext.backports_.patch
|
2020-03-16 16:06:32 +01:00
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/221
|
2020-04-30 16:20:16 +02:00
|
|
|
Patch95: loader-invalidate-the-import-cachefor-extra-modules.patch
|
2020-03-16 16:06:32 +01:00
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/55814
|
2020-04-30 16:20:16 +02:00
|
|
|
Patch96: opensuse-3000-virt-defined-states-222.patch
|
2020-04-07 14:14:01 +02:00
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/223
|
2020-04-30 16:20:16 +02:00
|
|
|
Patch97: fix-for-temp-folder-definition-in-loader-unit-test.patch
|
2020-03-17 19:14:09 +01:00
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/56392
|
2020-04-30 16:20:16 +02:00
|
|
|
Patch98: virt._get_domain-don-t-raise-an-exception-if-there-i.patch
|
2020-04-07 14:14:01 +02:00
|
|
|
# PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/226
|
2020-04-30 16:20:16 +02:00
|
|
|
Patch99: re-adding-function-to-test-for-root.patch
|
2020-04-07 14:14:01 +02:00
|
|
|
# PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/227
|
2020-04-30 16:20:16 +02:00
|
|
|
Patch100: loop-fix-variable-names-for-until_no_eval.patch
|
2020-04-07 14:14:01 +02:00
|
|
|
# PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/226
|
2020-04-30 16:20:16 +02:00
|
|
|
Patch101: make-setup.py-script-to-not-require-setuptools-9.1.patch
|
2020-04-07 14:14:01 +02:00
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/50453
|
|
|
|
# https://github.com/saltstack/salt/commit/e20362f6f053eaa4144583604e6aac3d62838419
|
|
|
|
# Can be dropped one pull/50453 is in released version.
|
2020-04-30 16:20:16 +02:00
|
|
|
Patch102: reintroducing-reverted-changes.patch
|
2020-04-02 16:31:16 +02:00
|
|
|
# PATCH_FIX_OPENSUSE: https://github.com/openSUSE/salt/commit/b713d0b3031faadc17cd9cf09977ccc19e50bef7
|
2020-04-30 16:20:16 +02:00
|
|
|
Patch103: add-new-custom-suse-capability-for-saltutil-state-mo.patch
|
2020-04-07 14:14:01 +02:00
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/56463
|
2020-04-30 16:20:16 +02:00
|
|
|
Patch104: fix-typo-on-msgpack-version-when-sanitizing-msgpack-.patch
|
2020-04-02 16:31:16 +02:00
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/56491
|
2020-04-30 16:20:16 +02:00
|
|
|
Patch105: sanitize-grains-loaded-from-roster_grains.json.patch
|
2020-04-07 14:14:01 +02:00
|
|
|
# PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/228
|
2020-04-30 16:20:16 +02:00
|
|
|
Patch106: adds-explicit-type-cast-for-port.patch
|
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/53882
|
|
|
|
Patch107: fixed-bug-lvm-has-no-parttion-type.-the-scipt-later-.patch
|
|
|
|
# PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/commit/4f80e969e31247a4755d98d25f29b5d8b1b916c3
|
|
|
|
Patch108: remove-vendored-backports-abc-from-requirements.patch
|
|
|
|
# PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/commit/a5ef829408685d9e65eaa24bba40d221adffaa95
|
|
|
|
Patch109: fix-typo-in-minion_runner-for-aesfuncs-exposed-metho.patch
|
2020-05-08 17:22:25 +02:00
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/57119
|
|
|
|
Patch110: make-lazyloader.__init__-call-to-_refresh_file_mappi.patch
|
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/57123
|
|
|
|
Patch111: prevent-logging-deadlock-on-salt-api-subprocesses-bs.patch
|
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/57122
|
|
|
|
Patch112: msgpack-support-versions-1.0.0.patch
|
|
|
|
# PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/235
|
|
|
|
Patch113: python3.8-compatibility-pr-s-235.patch
|
2020-05-26 10:05:14 +02:00
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/56419
|
|
|
|
Patch114: option-to-en-disable-force-refresh-in-zypper-215.patch
|
|
|
|
# PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/229
|
|
|
|
Patch115: fix-a-test-and-some-variable-names-229.patch
|
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/56439
|
|
|
|
Patch116: add-docker-logout-237.patch
|
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/56595
|
|
|
|
Patch117: fix-for-return-value-ret-vs-return-in-batch-mode.patch
|
|
|
|
# PATCH-FIX_UPSTREAM: https://github.com/saltstack/salt/pull/57392
|
|
|
|
Patch118: zypperpkg-filter-patterns-that-start-with-dot-244.patch
|
2018-02-28 16:27:22 +01:00
|
|
|
|
2018-04-11 18:47:08 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-05-28 14:42:56 +02:00
|
|
|
BuildRequires: logrotate
|
2018-01-26 14:46:21 +01:00
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
BuildRequires: fdupes
|
|
|
|
%endif
|
|
|
|
|
2018-07-30 13:52:13 +02:00
|
|
|
Requires: %{pythonX}-%{name} = %{version}-%{release}
|
2018-01-26 14:46:21 +01:00
|
|
|
|
|
|
|
Requires(pre): %{_sbindir}/groupadd
|
|
|
|
Requires(pre): %{_sbindir}/useradd
|
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
Requires(pre): %fillup_prereq
|
2019-09-06 14:06:25 +02:00
|
|
|
Requires(pre): shadow
|
2018-01-26 14:46:21 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
Requires(pre): dbus-1
|
|
|
|
%else
|
|
|
|
Requires(pre): dbus
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Requires: logrotate
|
|
|
|
Requires: procps
|
|
|
|
|
2018-04-11 18:47:08 +02:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2018-07-30 13:52:13 +02:00
|
|
|
Requires: iproute2
|
2018-04-11 18:47:08 +02:00
|
|
|
%else
|
2018-04-30 14:06:44 +02:00
|
|
|
%if 0%{?suse_version}
|
2018-07-30 13:52:13 +02:00
|
|
|
Requires: net-tools
|
2018-04-30 14:06:44 +02:00
|
|
|
%else
|
2018-07-30 13:52:13 +02:00
|
|
|
Requires: iproute
|
2018-04-11 18:47:08 +02:00
|
|
|
%endif
|
2018-04-30 14:06:44 +02:00
|
|
|
%endif
|
2018-04-11 18:47:08 +02:00
|
|
|
|
2018-01-26 14:46:21 +01:00
|
|
|
%if %{with systemd}
|
2020-04-02 16:31:16 +02:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
%{?systemd_ordering}
|
2018-01-26 14:46:21 +01:00
|
|
|
%else
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
Requires(pre): %insserv_prereq
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with fish_completion}
|
|
|
|
%define fish_dir %{_datadir}/fish/
|
|
|
|
%define fish_completions_dir %{_datadir}/fish/completions/
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with bash_completion}
|
|
|
|
%if 0%{?suse_version} >= 1140
|
|
|
|
BuildRequires: bash-completion
|
|
|
|
%else
|
|
|
|
BuildRequires: bash
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with zsh_completion}
|
|
|
|
BuildRequires: zsh
|
|
|
|
%endif
|
|
|
|
|
2020-04-02 16:31:16 +02:00
|
|
|
%if 0%{?rhel} || 0%{?fedora}
|
2018-01-26 14:46:21 +01:00
|
|
|
BuildRequires: yum
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%if 0%{?build_py2}
|
|
|
|
%package -n python2-salt
|
|
|
|
Summary: python2 library for salt
|
|
|
|
Group: System/Management
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildRequires: python >= 2.7
|
|
|
|
BuildRequires: python-devel >= 2.7
|
2020-04-07 14:14:01 +02:00
|
|
|
BuildRequires: python-setuptools
|
2018-01-26 14:46:21 +01:00
|
|
|
# requirements/base.txt
|
2020-04-02 16:31:16 +02:00
|
|
|
%if 0%{?rhel} || 0%{?fedora}
|
2018-01-26 14:46:21 +01:00
|
|
|
BuildRequires: python-jinja2
|
2018-07-30 13:52:13 +02:00
|
|
|
BuildRequires: python-yaml
|
2019-01-17 10:18:02 +01:00
|
|
|
BuildRequires: python-markupsafe
|
2018-01-26 14:46:21 +01:00
|
|
|
%else
|
|
|
|
BuildRequires: python-Jinja2
|
2018-07-30 13:52:13 +02:00
|
|
|
BuildRequires: python-PyYAML
|
2019-01-17 10:18:02 +01:00
|
|
|
BuildRequires: python-MarkupSafe
|
2018-01-26 14:46:21 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
BuildRequires: python-futures >= 2.0
|
|
|
|
BuildRequires: python-msgpack-python > 0.3
|
|
|
|
BuildRequires: python-psutil
|
|
|
|
BuildRequires: python-requests >= 1.0.0
|
2020-04-07 14:14:01 +02:00
|
|
|
BuildRequires: python-singledispatch
|
2018-01-26 14:46:21 +01:00
|
|
|
|
|
|
|
# requirements/zeromq.txt
|
2019-11-28 16:41:55 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
BuildRequires: python2-M2Crypto
|
|
|
|
%else
|
|
|
|
BuildRequires: python-pycrypto >= 2.6.1
|
|
|
|
%endif
|
2018-01-26 14:46:21 +01:00
|
|
|
BuildRequires: python-pyzmq >= 2.2.0
|
|
|
|
%if %{with test}
|
|
|
|
# requirements/dev_python27.txt
|
|
|
|
BuildRequires: python-boto >= 2.32.1
|
|
|
|
BuildRequires: python-mock
|
|
|
|
BuildRequires: python-moto >= 0.3.6
|
|
|
|
BuildRequires: python-pip
|
|
|
|
BuildRequires: python-salt-testing >= 2015.2.16
|
|
|
|
BuildRequires: python-unittest2
|
|
|
|
BuildRequires: python-xml
|
|
|
|
%endif
|
|
|
|
%if %{with builddocs}
|
|
|
|
BuildRequires: python-sphinx
|
|
|
|
%endif
|
|
|
|
Requires: python >= 2.7
|
|
|
|
#
|
|
|
|
%if ! 0%{?suse_version} > 1110
|
|
|
|
Requires: python-certifi
|
|
|
|
%endif
|
|
|
|
# requirements/base.txt
|
2020-04-02 16:31:16 +02:00
|
|
|
%if 0%{?rhel} || 0%{?fedora}
|
2018-01-26 14:46:21 +01:00
|
|
|
Requires: python-jinja2
|
2018-07-30 13:52:13 +02:00
|
|
|
Requires: python-yaml
|
2019-01-17 10:18:02 +01:00
|
|
|
Requires: python-markupsafe
|
2018-01-26 14:46:21 +01:00
|
|
|
Requires: yum
|
|
|
|
%if 0%{?rhel} == 6
|
|
|
|
Requires: yum-plugin-security
|
|
|
|
%endif
|
|
|
|
%else
|
|
|
|
Requires: python-Jinja2
|
2018-07-30 13:52:13 +02:00
|
|
|
Requires: python-PyYAML
|
2019-01-17 10:18:02 +01:00
|
|
|
Requires: python-MarkupSafe
|
2018-01-26 14:46:21 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
Requires: python-futures >= 2.0
|
|
|
|
Requires: python-msgpack-python > 0.3
|
|
|
|
Requires: python-psutil
|
|
|
|
Requires: python-requests >= 1.0.0
|
2020-04-07 14:14:01 +02:00
|
|
|
Requires: python-singledispatch
|
2018-01-26 14:46:21 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
# required for zypper.py
|
|
|
|
Requires: rpm-python
|
|
|
|
Requires(pre): libzypp(plugin:system) >= 0
|
|
|
|
Requires: zypp-plugin-python
|
|
|
|
# requirements/opt.txt (not all)
|
|
|
|
# Suggests: python-MySQL-python ## Disabled for now, originally Recommended
|
|
|
|
Suggests: python-timelib
|
|
|
|
Suggests: python-gnupg
|
|
|
|
# requirements/zeromq.txt
|
|
|
|
%endif
|
2019-11-28 16:41:55 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
Requires: python2-M2Crypto
|
|
|
|
%else
|
2018-01-26 14:46:21 +01:00
|
|
|
Requires: python-pycrypto >= 2.6.1
|
2019-11-28 16:41:55 +01:00
|
|
|
%endif
|
2018-01-26 14:46:21 +01:00
|
|
|
Requires: python-pyzmq >= 2.2.0
|
|
|
|
#
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
# python-xml is part of python-base in all rhel versions
|
|
|
|
Requires: python-xml
|
|
|
|
Suggests: python-Mako
|
|
|
|
Recommends: python-netaddr
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description -n python2-salt
|
|
|
|
Python2 specific files for salt
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?build_py3}
|
|
|
|
%package -n python3-salt
|
|
|
|
Summary: python3 library for salt
|
|
|
|
Group: System/Management
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2017-11-27 18:18:19 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2020-03-05 13:49:45 +01:00
|
|
|
%if 0%{?rhel} == 8
|
|
|
|
BuildRequires: platform-python
|
|
|
|
%else
|
2019-01-17 10:18:02 +01:00
|
|
|
BuildRequires: python3
|
2020-03-05 13:49:45 +01:00
|
|
|
%endif
|
2017-11-10 08:17:55 +01:00
|
|
|
BuildRequires: python3-devel
|
2020-04-07 14:14:01 +02:00
|
|
|
BuildRequires: python3-setuptools
|
2015-10-19 22:52:40 +02:00
|
|
|
# requirements/base.txt
|
2020-04-02 16:31:16 +02:00
|
|
|
%if 0%{?rhel} || 0%{?fedora}
|
2017-11-10 08:17:55 +01:00
|
|
|
BuildRequires: python3-jinja2
|
2019-10-10 13:49:11 +02:00
|
|
|
BuildRequires: python3-markupsafe
|
|
|
|
BuildRequires: python3-msgpack > 0.3
|
|
|
|
BuildRequires: python3-zmq >= 2.2.0
|
|
|
|
BuildRequires: python3-m2crypto
|
2017-02-16 16:09:53 +01:00
|
|
|
%else
|
2017-11-10 08:17:55 +01:00
|
|
|
BuildRequires: python3-Jinja2
|
|
|
|
BuildRequires: python3-MarkupSafe
|
|
|
|
BuildRequires: python3-msgpack-python > 0.3
|
2019-10-10 13:49:11 +02:00
|
|
|
BuildRequires: python3-pyzmq >= 2.2.0
|
2019-11-28 16:41:55 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2020-03-05 13:49:45 +01:00
|
|
|
BuildRequires: python3-distro
|
2019-11-28 16:41:55 +01:00
|
|
|
BuildRequires: python3-M2Crypto
|
|
|
|
%else
|
2019-10-10 13:49:11 +02:00
|
|
|
BuildRequires: python3-pycrypto >= 2.6.1
|
|
|
|
%endif
|
2019-11-28 16:41:55 +01:00
|
|
|
%endif
|
2019-10-10 13:49:11 +02:00
|
|
|
BuildRequires: python3-PyYAML
|
2017-11-10 08:17:55 +01:00
|
|
|
BuildRequires: python3-psutil
|
|
|
|
BuildRequires: python3-requests >= 1.0.0
|
2017-08-04 14:51:31 +02:00
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
# requirements/zeromq.txt
|
|
|
|
%if %{with test}
|
|
|
|
# requirements/dev_python27.txt
|
2017-11-10 08:17:55 +01:00
|
|
|
BuildRequires: python3-boto >= 2.32.1
|
|
|
|
BuildRequires: python3-mock
|
|
|
|
BuildRequires: python3-moto >= 0.3.6
|
|
|
|
BuildRequires: python3-pip
|
|
|
|
BuildRequires: python3-salt-testing >= 2015.2.16
|
|
|
|
BuildRequires: python3-unittest2
|
|
|
|
BuildRequires: python3-xml
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
2016-09-28 09:49:13 +02:00
|
|
|
%if %{with builddocs}
|
2017-11-10 08:17:55 +01:00
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
%endif
|
2020-03-05 13:49:45 +01:00
|
|
|
%if 0%{?rhel} == 8
|
|
|
|
Requires: platform-python
|
|
|
|
%else
|
2019-01-17 10:18:02 +01:00
|
|
|
Requires: python3
|
2020-03-05 13:49:45 +01:00
|
|
|
%endif
|
2015-10-19 22:52:40 +02:00
|
|
|
#
|
|
|
|
%if ! 0%{?suse_version} > 1110
|
2017-11-10 08:17:55 +01:00
|
|
|
Requires: python3-certifi
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
|
|
|
# requirements/base.txt
|
2020-04-02 16:31:16 +02:00
|
|
|
%if 0%{?rhel} || 0%{?fedora}
|
2017-11-27 18:18:19 +01:00
|
|
|
Requires: python3-jinja2
|
|
|
|
Requires: yum
|
2019-10-10 13:49:11 +02:00
|
|
|
Requires: python3-markupsafe
|
|
|
|
Requires: python3-msgpack > 0.3
|
|
|
|
Requires: python3-m2crypto
|
|
|
|
Requires: python3-zmq >= 2.2.0
|
2020-04-02 16:31:16 +02:00
|
|
|
|
|
|
|
%if 0%{?rhel} == 8 || 0%{?fedora} >= 30
|
2019-10-10 13:49:11 +02:00
|
|
|
Requires: dnf
|
|
|
|
%endif
|
2017-08-04 12:29:26 +02:00
|
|
|
%if 0%{?rhel} == 6
|
2017-11-27 18:18:19 +01:00
|
|
|
Requires: yum-plugin-security
|
2017-08-04 12:29:26 +02:00
|
|
|
%endif
|
2017-02-16 16:09:53 +01:00
|
|
|
%else
|
2017-11-27 18:18:19 +01:00
|
|
|
Requires: python3-Jinja2
|
2017-11-10 08:17:55 +01:00
|
|
|
Requires: python3-MarkupSafe
|
|
|
|
Requires: python3-msgpack-python > 0.3
|
2019-11-28 16:41:55 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2020-03-05 13:49:45 +01:00
|
|
|
Requires: python3-distro
|
2019-11-28 16:41:55 +01:00
|
|
|
Requires: python3-M2Crypto
|
|
|
|
%else
|
2019-10-10 13:49:11 +02:00
|
|
|
Requires: python3-pycrypto >= 2.6.1
|
2019-11-28 16:41:55 +01:00
|
|
|
%endif
|
2019-10-10 13:49:11 +02:00
|
|
|
Requires: python3-pyzmq >= 2.2.0
|
|
|
|
%endif
|
|
|
|
Requires: python3-PyYAML
|
2017-11-10 08:17:55 +01:00
|
|
|
Requires: python3-psutil
|
|
|
|
Requires: python3-requests >= 1.0.0
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version}
|
2016-02-24 18:43:06 +01:00
|
|
|
# required for zypper.py
|
2017-11-10 08:17:55 +01:00
|
|
|
Requires: python3-rpm
|
2016-05-12 08:02:59 +02:00
|
|
|
Requires(pre): libzypp(plugin:system) >= 0
|
2017-11-10 08:17:55 +01:00
|
|
|
Requires: python3-zypp-plugin
|
2015-10-19 22:52:40 +02:00
|
|
|
# requirements/opt.txt (not all)
|
2017-08-04 14:51:31 +02:00
|
|
|
# Suggests: python-MySQL-python ## Disabled for now, originally Recommended
|
2017-11-10 08:17:55 +01:00
|
|
|
Suggests: python3-timelib
|
|
|
|
Suggests: python3-gnupg
|
2015-10-19 22:52:40 +02:00
|
|
|
# requirements/zeromq.txt
|
|
|
|
%endif
|
|
|
|
#
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
# python-xml is part of python-base in all rhel versions
|
2017-11-10 08:17:55 +01:00
|
|
|
Requires: python3-xml
|
|
|
|
Suggests: python3-Mako
|
|
|
|
Recommends: python3-netaddr
|
2013-10-18 19:23:33 +02:00
|
|
|
%endif
|
2013-10-18 11:35:12 +02:00
|
|
|
|
2018-01-26 14:46:21 +01:00
|
|
|
%description -n python3-salt
|
|
|
|
Python3 specific files for salt
|
2014-06-16 21:33:44 +02:00
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
%endif
|
|
|
|
|
2014-11-24 11:13:31 +01:00
|
|
|
%package api
|
|
|
|
Summary: The api for Salt a parallel remote execution system
|
2017-02-16 16:09:53 +01:00
|
|
|
Group: System/Management
|
2016-02-24 18:43:06 +01:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name}-master = %{version}-%{release}
|
2018-01-26 14:46:21 +01:00
|
|
|
%if 0%{?default_py3}
|
2017-11-10 08:17:55 +01:00
|
|
|
Requires: python3-CherryPy >= 3.2.2
|
2018-01-26 14:46:21 +01:00
|
|
|
%else
|
|
|
|
Requires: python-CherryPy >= 3.2.2
|
|
|
|
%endif
|
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
|
2017-02-16 16:09:53 +01:00
|
|
|
Group: System/Management
|
2016-02-24 18:43:06 +01:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name}-master = %{version}-%{release}
|
2017-11-10 08:17:55 +01:00
|
|
|
Requires: python3-apache-libcloud
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version}
|
2017-11-10 08:17:55 +01:00
|
|
|
Recommends: python3-botocore
|
|
|
|
Recommends: python3-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
|
2017-08-04 12:29:26 +02:00
|
|
|
Summary: The management component of Saltstack with zmq protocol supported
|
2017-02-16 16:09:53 +01:00
|
|
|
Group: System/Management
|
2016-02-24 18:43:06 +01:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2015-10-19 22:52:40 +02:00
|
|
|
%if 0%{?suse_version}
|
2017-11-10 08:17:55 +01:00
|
|
|
Recommends: python3-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}
|
2015-12-09 19:53:52 +01:00
|
|
|
%if 0%{?suse_version} > 1110
|
2013-10-01 08:35:03 +02:00
|
|
|
Requires: dmidecode
|
2015-12-09 19:53:52 +01:00
|
|
|
%else
|
|
|
|
Requires: pmtools
|
|
|
|
%endif
|
2013-10-01 08:35:03 +02:00
|
|
|
%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
|
2017-02-16 16:09:53 +01:00
|
|
|
Group: System/Management
|
|
|
|
Requires(pre): %{name} = %{version}-%{release}
|
|
|
|
|
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 proxy
|
|
|
|
Summary: Component for salt that enables controlling arbitrary devices
|
2017-02-16 16:09:53 +01:00
|
|
|
Group: System/Management
|
2016-02-24 18:43:06 +01:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2015-10-19 22:52:40 +02:00
|
|
|
%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
|
2017-02-16 16:09:53 +01:00
|
|
|
Group: System/Management
|
2016-02-24 18:43:06 +01:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name}-master = %{version}-%{release}
|
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
|
2017-02-16 16:09:53 +01:00
|
|
|
Group: System/Management
|
2016-02-24 18:43:06 +01:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name}-master = %{version}-%{release}
|
2015-10-19 22:52:40 +02:00
|
|
|
%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
|
2016-02-24 18:43:06 +01:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2014-06-16 21:33:44 +02:00
|
|
|
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
|
2016-02-24 18:43:06 +01:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2015-10-19 22:52:40 +02:00
|
|
|
|
|
|
|
%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
|
2016-02-24 18:43:06 +01:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2014-11-24 11:13:31 +01:00
|
|
|
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
|
|
|
|
2019-05-23 11:12:16 +02:00
|
|
|
%package standalone-formulas-configuration
|
|
|
|
Summary: Standalone Salt configuration to make the packaged formulas available for the Salt master
|
|
|
|
Group: System/Management
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name}-master = %{version}-%{release}
|
|
|
|
Provides: salt-formulas-configuration
|
|
|
|
Conflicts: otherproviders(salt-formulas-configuration)
|
|
|
|
|
|
|
|
%description standalone-formulas-configuration
|
|
|
|
This package adds the standalone configuration for the Salt master in order to make the packaged Salt formulas available on the Salt master
|
|
|
|
|
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
%prep
|
2018-02-28 16:27:22 +01:00
|
|
|
# %setup -q -n salt-%{version}
|
2020-04-30 16:20:16 +02:00
|
|
|
%setup -q -n salt-3000.2-suse
|
2015-08-31 22:59:05 +02:00
|
|
|
cp %{S:1} .
|
2016-11-06 12:48:16 +01:00
|
|
|
cp %{S:5} ./.travis.yml
|
2017-10-13 15:57:09 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
2017-11-27 18:18:19 +01:00
|
|
|
%patch7 -p1
|
2018-03-01 12:10:51 +01:00
|
|
|
%patch8 -p1
|
2018-03-19 09:54:13 +01:00
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
2018-04-11 18:47:08 +02:00
|
|
|
%patch11 -p1
|
|
|
|
%patch12 -p1
|
|
|
|
%patch13 -p1
|
|
|
|
%patch14 -p1
|
2018-04-30 14:06:44 +02:00
|
|
|
%patch15 -p1
|
|
|
|
%patch16 -p1
|
|
|
|
%patch17 -p1
|
|
|
|
%patch18 -p1
|
|
|
|
%patch19 -p1
|
2018-05-09 11:09:28 +02:00
|
|
|
%patch20 -p1
|
2018-05-16 11:48:03 +02:00
|
|
|
%patch21 -p1
|
|
|
|
%patch22 -p1
|
|
|
|
%patch23 -p1
|
|
|
|
%patch24 -p1
|
|
|
|
%patch25 -p1
|
2018-07-30 13:52:13 +02:00
|
|
|
%patch26 -p1
|
|
|
|
%patch27 -p1
|
|
|
|
%patch28 -p1
|
|
|
|
%patch29 -p1
|
|
|
|
%patch30 -p1
|
|
|
|
%patch31 -p1
|
2018-09-17 16:18:45 +02:00
|
|
|
%patch32 -p1
|
|
|
|
%patch33 -p1
|
|
|
|
%patch34 -p1
|
|
|
|
%patch35 -p1
|
|
|
|
%patch36 -p1
|
|
|
|
%patch37 -p1
|
|
|
|
%patch38 -p1
|
|
|
|
%patch39 -p1
|
|
|
|
%patch40 -p1
|
|
|
|
%patch41 -p1
|
|
|
|
%patch42 -p1
|
|
|
|
%patch43 -p1
|
2019-01-17 10:18:02 +01:00
|
|
|
%patch44 -p1
|
|
|
|
%patch45 -p1
|
|
|
|
%patch46 -p1
|
2019-04-26 12:09:06 +02:00
|
|
|
%patch47 -p1
|
|
|
|
%patch48 -p1
|
|
|
|
%patch49 -p1
|
2019-04-30 14:10:21 +02:00
|
|
|
%patch50 -p1
|
|
|
|
%patch51 -p1
|
2019-05-02 18:27:35 +02:00
|
|
|
%patch52 -p1
|
2019-05-07 17:40:32 +02:00
|
|
|
%patch53 -p1
|
2019-05-08 16:50:44 +02:00
|
|
|
%patch54 -p1
|
2019-05-20 14:43:15 +02:00
|
|
|
%patch55 -p1
|
2019-05-23 11:12:16 +02:00
|
|
|
%patch56 -p1
|
2019-05-27 17:26:56 +02:00
|
|
|
%patch57 -p1
|
2019-06-14 14:50:01 +02:00
|
|
|
%patch58 -p1
|
|
|
|
%patch59 -p1
|
|
|
|
%patch60 -p1
|
|
|
|
%patch61 -p1
|
|
|
|
%patch62 -p1
|
|
|
|
%patch63 -p1
|
|
|
|
%patch64 -p1
|
|
|
|
%patch65 -p1
|
2019-06-21 10:17:26 +02:00
|
|
|
%patch66 -p1
|
2019-07-03 11:10:11 +02:00
|
|
|
%patch67 -p1
|
|
|
|
%patch68 -p1
|
2019-07-10 16:37:34 +02:00
|
|
|
%patch69 -p1
|
|
|
|
%patch70 -p1
|
2019-07-30 14:28:36 +02:00
|
|
|
%patch71 -p1
|
|
|
|
%patch72 -p1
|
|
|
|
%patch73 -p1
|
2019-09-06 14:06:25 +02:00
|
|
|
%patch74 -p1
|
|
|
|
%patch75 -p1
|
|
|
|
%patch76 -p1
|
|
|
|
%patch77 -p1
|
|
|
|
%patch78 -p1
|
|
|
|
%patch79 -p1
|
|
|
|
%patch80 -p1
|
|
|
|
%patch81 -p1
|
|
|
|
%patch82 -p1
|
2019-09-26 14:48:15 +02:00
|
|
|
%patch83 -p1
|
|
|
|
%patch84 -p1
|
2019-10-10 13:49:11 +02:00
|
|
|
%patch85 -p1
|
|
|
|
%patch86 -p1
|
|
|
|
%patch87 -p1
|
|
|
|
%patch88 -p1
|
|
|
|
%patch89 -p1
|
2019-10-25 11:14:18 +02:00
|
|
|
%patch90 -p1
|
|
|
|
%patch91 -p1
|
2019-10-25 17:02:59 +02:00
|
|
|
%patch92 -p1
|
2019-12-10 16:22:43 +01:00
|
|
|
%patch93 -p1
|
|
|
|
%patch94 -p1
|
|
|
|
%patch95 -p1
|
|
|
|
%patch96 -p1
|
|
|
|
%patch97 -p1
|
2019-12-12 11:37:03 +01:00
|
|
|
%patch98 -p1
|
2020-01-15 15:58:58 +01:00
|
|
|
%patch99 -p1
|
|
|
|
%patch100 -p1
|
|
|
|
%patch101 -p1
|
|
|
|
%patch102 -p1
|
|
|
|
%patch103 -p1
|
|
|
|
%patch104 -p1
|
2020-02-03 14:30:18 +01:00
|
|
|
%patch105 -p1
|
|
|
|
%patch106 -p1
|
2020-03-05 13:49:45 +01:00
|
|
|
%patch107 -p1
|
|
|
|
%patch108 -p1
|
2020-04-30 16:20:16 +02:00
|
|
|
%patch109 -p1
|
2020-05-08 17:22:25 +02:00
|
|
|
%patch110 -p1
|
|
|
|
%patch111 -p1
|
|
|
|
%patch112 -p1
|
|
|
|
%patch113 -p1
|
2020-05-26 10:05:14 +02:00
|
|
|
%patch114 -p1
|
|
|
|
%patch115 -p1
|
|
|
|
%patch116 -p1
|
|
|
|
%patch117 -p1
|
|
|
|
%patch118 -p1
|
2017-10-13 15:57:09 +02:00
|
|
|
|
2013-05-16 11:38:22 +02:00
|
|
|
%build
|
2018-01-26 14:46:21 +01:00
|
|
|
%if 0%{?build_py2}
|
2019-12-10 16:22:43 +01:00
|
|
|
python setup.py --with-salt-version=%{version} --salt-transport=both build
|
2018-01-26 14:46:21 +01:00
|
|
|
cp ./build/lib/salt/_version.py ./salt
|
|
|
|
mv build _build.python2
|
|
|
|
%endif
|
|
|
|
%if 0%{?build_py3}
|
2019-12-10 16:22:43 +01:00
|
|
|
python3 setup.py --with-salt-version=%{version} --salt-transport=both build
|
2017-12-02 13:25:02 +01:00
|
|
|
cp ./build/lib/salt/_version.py ./salt
|
2018-01-26 14:46:21 +01:00
|
|
|
mv build _build.python3
|
|
|
|
%endif
|
2013-05-16 11:38:22 +02:00
|
|
|
|
2016-09-28 09:49:13 +02:00
|
|
|
%if %{with docs} && %{without builddocs}
|
|
|
|
# extract docs from the tarball
|
|
|
|
mkdir -p doc/_build
|
|
|
|
pushd doc/_build/
|
2017-11-10 08:17:55 +01:00
|
|
|
tar xfv %{S:3}
|
2016-09-28 09:49:13 +02:00
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with docs} && %{with builddocs}
|
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
|
2018-01-26 14:46:21 +01:00
|
|
|
%if 0%{?build_py2}
|
|
|
|
mv _build.python2 build
|
2019-12-10 16:22:43 +01:00
|
|
|
python setup.py --salt-transport=both install --prefix=%{_prefix} --root=%{buildroot}
|
2018-01-26 14:46:21 +01:00
|
|
|
mv build _build.python2
|
|
|
|
%endif
|
|
|
|
%if 0%{?build_py3}
|
|
|
|
mv _build.python3 build
|
2019-12-10 16:22:43 +01:00
|
|
|
python3 setup.py --salt-transport=both install --prefix=%{_prefix} --root=%{buildroot}
|
2018-01-26 14:46:21 +01:00
|
|
|
mv build _build.python3
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?default_py3}
|
|
|
|
DEF_PYPATH=_build.python3/scripts-*/
|
|
|
|
%else
|
|
|
|
DEF_PYPATH=_build.python2/scripts-*/
|
|
|
|
%endif
|
|
|
|
|
|
|
|
rm -f %{buildroot}%{_bindir}/*
|
|
|
|
for script in $DEF_PYPATH/*; do
|
|
|
|
install -m 0755 $script %{buildroot}%{_bindir}
|
|
|
|
done
|
|
|
|
|
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
|
2017-08-04 12:29:26 +02:00
|
|
|
install -Dd -m 0750 %{buildroot}%{_localstatedir}/cache/salt/cloud
|
2017-02-16 16:09:53 +01:00
|
|
|
install -Dd -m 0750 %{buildroot}/var/lib/salt
|
2015-10-19 22:52:40 +02:00
|
|
|
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
|
|
|
|
2019-01-17 10:18:02 +01:00
|
|
|
# Install salt-support profiles
|
|
|
|
%if 0%{?build_py2}
|
|
|
|
install -Dpm 0644 salt/cli/support/profiles/* %{buildroot}%{python_sitelib}/salt/cli/support/profiles
|
|
|
|
%endif
|
|
|
|
%if 0%{?build_py3}
|
|
|
|
install -Dpm 0644 salt/cli/support/profiles/* %{buildroot}%{python3_sitelib}/salt/cli/support/profiles
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2016-05-12 08:02:59 +02:00
|
|
|
## Install Zypper plugins only on SUSE machines
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_prefix}/lib/zypp/plugins/commit
|
2018-01-26 14:46:21 +01:00
|
|
|
%{__install} scripts/suse/zypper/plugins/commit/zyppnotify %{buildroot}%{_prefix}/lib/zypp/plugins/commit/zyppnotify
|
2018-02-28 16:27:22 +01:00
|
|
|
%if 0%{?default_py3}
|
|
|
|
sed -i '1s=^#!/usr/bin/\(python\|env python\)[0-9.]*=#!/usr/bin/python3=' %{buildroot}%{_prefix}/lib/zypp/plugins/commit/zyppnotify
|
|
|
|
%endif
|
2016-05-12 08:02:59 +02:00
|
|
|
%endif
|
|
|
|
|
2017-02-16 16:09:53 +01:00
|
|
|
# Install Yum plugins only on RH machines
|
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
|
|
install -Dd %{buildroot}%{_prefix}/share/yum-plugins
|
|
|
|
install -Dd %{buildroot}/etc/yum/pluginconf.d
|
2018-01-26 14:46:21 +01:00
|
|
|
%{__install} scripts/suse/yum/plugins/yumnotify.py %{buildroot}%{_prefix}/share/yum-plugins
|
|
|
|
%{__install} scripts/suse/yum/plugins/yumnotify.conf %{buildroot}/etc/yum/pluginconf.d
|
2017-02-16 16:09:53 +01:00
|
|
|
%endif
|
|
|
|
|
2014-02-22 18:17:25 +01:00
|
|
|
## install init and systemd scripts
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2018-01-26 14:46:21 +01:00
|
|
|
install -Dpm 0644 pkg/suse/salt-master.service %{buildroot}%{_unitdir}/salt-master.service
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
2017-02-16 16:09:53 +01:00
|
|
|
install -Dpm 0644 pkg/suse/salt-minion.service %{buildroot}%{_unitdir}/salt-minion.service
|
2017-08-04 14:51:31 +02:00
|
|
|
%else
|
2018-01-26 14:46:21 +01:00
|
|
|
install -Dpm 0644 pkg/suse/salt-minion.service.rhel7 %{buildroot}%{_unitdir}/salt-minion.service
|
2017-08-04 14:51:31 +02:00
|
|
|
%endif
|
2015-10-19 22:52:40 +02:00
|
|
|
install -Dpm 0644 pkg/salt-syndic.service %{buildroot}%{_unitdir}/salt-syndic.service
|
2017-08-04 14:51:31 +02:00
|
|
|
install -Dpm 0644 pkg/suse/salt-api.service %{buildroot}%{_unitdir}/salt-api.service
|
2017-02-16 16:09:53 +01:00
|
|
|
install -Dpm 0644 pkg/salt-proxy@.service %{buildroot}%{_unitdir}/salt-proxy@.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
|
|
|
|
2017-08-04 14:51:31 +02:00
|
|
|
## Install sysV salt-minion watchdog for SLES11 and RHEL6
|
|
|
|
%if 0%{?rhel} == 6 || 0%{?suse_version} == 1110
|
2018-01-26 14:46:21 +01:00
|
|
|
install -Dpm 0755 scripts/suse/watchdog/salt-daemon-watcher %{buildroot}%{_bindir}/salt-daemon-watcher
|
2017-08-04 14:51:31 +02:00
|
|
|
%endif
|
|
|
|
|
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
|
|
|
#
|
2018-01-26 14:46:21 +01:00
|
|
|
## install logrotate file (for RHEL6 we use without sudo)
|
|
|
|
%if 0%{?rhel} > 6 || 0%{?suse_version}
|
|
|
|
install -Dpm 0644 pkg/suse/salt-common.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/salt
|
|
|
|
%else
|
2014-02-22 18:17:25 +01:00
|
|
|
install -Dpm 0644 pkg/salt-common.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/salt
|
2018-01-26 14:46:21 +01:00
|
|
|
%endif
|
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
|
|
|
|
|
2019-05-23 11:12:16 +02:00
|
|
|
# Standalone Salt formulas configuration
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_prefix}/share/salt-formulas
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_prefix}/share/salt-formulas/states
|
|
|
|
install -Dd -m 0750 %{buildroot}%{_prefix}/share/salt-formulas/metadata
|
|
|
|
install -Dpm 0640 conf/suse/standalone-formulas-configuration.conf %{buildroot}%{_sysconfdir}/salt/master.d
|
|
|
|
|
2016-09-28 09:49:13 +02:00
|
|
|
%if 0%{?suse_version} > 1020
|
2017-11-10 08:17:55 +01:00
|
|
|
%fdupes %{buildroot}%{_docdir}
|
2018-01-26 14:46:21 +01:00
|
|
|
%if 0%{?build_py2}
|
|
|
|
%fdupes %{buildroot}%{python_sitelib}
|
|
|
|
%endif
|
|
|
|
%if 0%{?build_py3}
|
2017-11-10 08:17:55 +01:00
|
|
|
%fdupes %{buildroot}%{python3_sitelib}
|
2016-09-28 09:49:13 +02:00
|
|
|
%endif
|
2018-01-26 14:46:21 +01:00
|
|
|
%endif
|
2016-09-28 09:49:13 +02:00
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
%check
|
|
|
|
%if %{with test}
|
2018-01-26 14:46:21 +01:00
|
|
|
%if 0%{?default_py3}
|
2019-12-10 16:22:43 +01:00
|
|
|
python3 setup.py test --runtests-opts=-u
|
2018-01-26 14:46:21 +01:00
|
|
|
%else
|
2019-12-10 16:22:43 +01:00
|
|
|
python setup.py test --runtests-opts=-u
|
2018-01-26 14:46:21 +01:00
|
|
|
%endif
|
2015-10-19 22:52:40 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%pre
|
2017-08-04 12:29:26 +02:00
|
|
|
S_HOME="/var/lib/salt"
|
|
|
|
S_PHOME="/srv/salt"
|
2017-11-10 08:17:55 +01:00
|
|
|
getent passwd salt | grep $S_PHOME >/dev/null && usermod -d $S_HOME salt
|
2015-10-19 22:52:40 +02:00
|
|
|
getent group salt >/dev/null || %{_sbindir}/groupadd -r salt
|
2017-08-04 12:29:26 +02:00
|
|
|
getent passwd salt >/dev/null || %{_sbindir}/useradd -r -g salt -d $S_HOME -s /bin/false -c "salt-master daemon" salt
|
2017-11-10 08:17:55 +01:00
|
|
|
if [[ -d "$S_PHOME/.ssh" ]]; then
|
2017-08-04 12:29:26 +02:00
|
|
|
mv $S_PHOME/.ssh $S_HOME
|
|
|
|
fi
|
2015-10-19 22:52:40 +02:00
|
|
|
|
|
|
|
%post
|
2016-09-28 09:49:13 +02:00
|
|
|
%if %{with systemd}
|
2015-10-19 22:52:40 +02:00
|
|
|
systemd-tmpfiles --create /usr/lib/tmpfiles.d/salt.conf || true
|
2016-09-28 09:49:13 +02:00
|
|
|
%else
|
|
|
|
dbus-uuidgen --ensure
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%preun proxy
|
|
|
|
%if %{with systemd}
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
2016-09-28 09:49:13 +02:00
|
|
|
%service_del_preun salt-proxy@.service
|
|
|
|
%else
|
2017-08-04 14:51:31 +02:00
|
|
|
%systemd_preun salt-proxy@.service
|
|
|
|
%endif
|
|
|
|
%else
|
2016-09-28 09:49:13 +02:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%stop_on_removal salt-proxy
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%pre proxy
|
|
|
|
%if %{with systemd}
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
2016-09-28 09:49:13 +02:00
|
|
|
%service_add_pre salt-proxy@.service
|
|
|
|
%endif
|
2017-08-04 14:51:31 +02:00
|
|
|
%endif
|
2016-09-28 09:49:13 +02:00
|
|
|
|
|
|
|
%post proxy
|
|
|
|
%if %{with systemd}
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
2016-09-28 09:49:13 +02:00
|
|
|
%service_add_post salt-proxy@.service
|
|
|
|
%fillup_only
|
|
|
|
%else
|
2017-08-04 14:51:31 +02:00
|
|
|
%systemd_post salt-proxy@.service
|
|
|
|
%endif
|
|
|
|
%else
|
2016-09-28 09:49:13 +02:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%fillup_and_insserv
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%postun proxy
|
|
|
|
%if %{with systemd}
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
2016-09-28 09:49:13 +02:00
|
|
|
%service_del_postun salt-proxy@.service
|
|
|
|
%else
|
2017-08-04 14:51:31 +02:00
|
|
|
%systemd_postun_with_restart salt-proxy@.service
|
|
|
|
%endif
|
|
|
|
%else
|
2016-09-28 09:49:13 +02:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%insserv_cleanup
|
|
|
|
%restart_on_update salt-proxy
|
|
|
|
%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 syndic
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-05-16 11:38:22 +02:00
|
|
|
%service_del_preun salt-syndic.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
2017-08-04 14:51:31 +02:00
|
|
|
%systemd_preun salt-syndic.service
|
|
|
|
%endif
|
|
|
|
%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}
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
2014-08-05 10:24:27 +02:00
|
|
|
%service_add_pre salt-syndic.service
|
|
|
|
%endif
|
2017-08-04 14:51:31 +02:00
|
|
|
%endif
|
2014-08-05 10:24:27 +02:00
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%post syndic
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
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
|
2017-08-04 14:51:31 +02:00
|
|
|
%systemd_post salt-syndic.service
|
|
|
|
%endif
|
|
|
|
%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}
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-05-16 11:38:22 +02:00
|
|
|
%service_del_postun salt-syndic.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
2017-08-04 14:51:31 +02:00
|
|
|
%systemd_postun_with_restart salt-syndic.service
|
|
|
|
%endif
|
|
|
|
%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}
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-05-16 11:38:22 +02:00
|
|
|
%service_del_preun salt-master.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
2017-08-04 14:51:31 +02:00
|
|
|
%systemd_preun salt-master.service
|
|
|
|
%endif
|
|
|
|
%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}
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
2014-08-05 10:24:27 +02:00
|
|
|
%service_add_pre salt-master.service
|
|
|
|
%endif
|
2017-08-04 14:51:31 +02:00
|
|
|
%endif
|
2014-08-05 10:24:27 +02:00
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%post master
|
2016-06-06 12:54:59 +02:00
|
|
|
if [ $1 -eq 2 ] ; then
|
|
|
|
# Upgrading from an earlier version. If this is from 2014, where daemons
|
|
|
|
# ran as root, we need to chown some stuff to salt in order for the new
|
|
|
|
# version to actually work. It seems a manual restart of salt-master may
|
|
|
|
# still be required, but at least this will actually work given the file
|
|
|
|
# ownership is correct.
|
2020-03-05 13:49:45 +01:00
|
|
|
# Symlinks are excluded to avoid possible user escalation (bsc#1157465) (CVE-2019-18897).
|
2016-06-06 12:54:59 +02:00
|
|
|
for file in master.{pem,pub} ; do
|
2020-03-05 13:49:45 +01:00
|
|
|
[ -f /etc/salt/pki/master/$file ] && [ ! -L /etc/salt/pki/master/$file ] && chown --no-dereference salt /etc/salt/pki/master/$file
|
2016-06-06 12:54:59 +02:00
|
|
|
done
|
2017-08-04 14:51:31 +02:00
|
|
|
MASTER_CACHE_DIR="/var/cache/salt/master"
|
2020-03-05 13:49:45 +01:00
|
|
|
[ -d $MASTER_CACHE_DIR ] && find $MASTER_CACHE_DIR -type d | xargs -r chown --no-dereference salt:salt
|
|
|
|
[ -d $MASTER_CACHE_DIR ] && find $MASTER_CACHE_DIR -type f | xargs -r chown --no-dereference salt:salt
|
|
|
|
[ -f $MASTER_CACHE_DIR/.root_key ] && chown --no-dereference root:root $MASTER_CACHE_DIR/.root_key
|
2016-06-06 12:54:59 +02:00
|
|
|
true
|
|
|
|
fi
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2018-02-08 12:05:40 +01:00
|
|
|
if [ `rpm -q systemd --queryformat="%%{VERSION}"` -lt 228 ]; then
|
2017-10-13 15:57:09 +02:00
|
|
|
# On systemd < 228 the 'TasksTask' attribute is not available.
|
|
|
|
# Removing TasksMax from salt-master.service on SLE12SP1 LTSS (bsc#985112)
|
|
|
|
sed -i '/TasksMax=infinity/d' %{_unitdir}/salt-master.service
|
|
|
|
fi
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
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
|
2017-08-04 14:51:31 +02:00
|
|
|
%systemd_post salt-master.service
|
|
|
|
%endif
|
|
|
|
%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}
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-05-16 11:38:22 +02:00
|
|
|
%service_del_postun salt-master.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
2017-08-04 14:51:31 +02:00
|
|
|
%systemd_postun_with_restart salt-master.service
|
|
|
|
%endif
|
|
|
|
%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}
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-05-16 11:38:22 +02:00
|
|
|
%service_del_preun salt-minion.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
2017-08-04 14:51:31 +02:00
|
|
|
%systemd_preun salt-minion.service
|
|
|
|
%endif
|
|
|
|
%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}
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
2014-08-05 10:24:27 +02:00
|
|
|
%service_add_pre salt-minion.service
|
|
|
|
%endif
|
2017-08-04 14:51:31 +02:00
|
|
|
%endif
|
2014-08-05 10:24:27 +02:00
|
|
|
|
2013-11-18 10:54:21 +01:00
|
|
|
%post minion
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
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
|
2017-08-04 14:51:31 +02:00
|
|
|
%systemd_post salt-minion.service
|
|
|
|
%endif
|
|
|
|
%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}
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-05-16 11:38:22 +02:00
|
|
|
%service_del_postun salt-minion.service
|
2013-10-18 19:23:33 +02:00
|
|
|
%else
|
2017-08-04 14:51:31 +02:00
|
|
|
%systemd_postun_with_restart salt-minion.service
|
|
|
|
%endif
|
|
|
|
%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}
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
2014-11-24 11:13:31 +01:00
|
|
|
%service_del_preun salt-api.service
|
|
|
|
%else
|
2017-08-04 14:51:31 +02:00
|
|
|
%systemd_preun salt-api.service
|
|
|
|
%endif
|
|
|
|
%else
|
2014-11-24 11:13:31 +01:00
|
|
|
%stop_on_removal
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%pre api
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
2014-11-24 11:13:31 +01:00
|
|
|
%service_add_pre salt-api.service
|
|
|
|
%endif
|
2017-08-04 14:51:31 +02:00
|
|
|
%endif
|
2014-11-24 11:13:31 +01:00
|
|
|
|
|
|
|
%post api
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
2014-11-24 11:13:31 +01:00
|
|
|
%service_add_post salt-api.service
|
|
|
|
%else
|
2017-08-04 14:51:31 +02:00
|
|
|
%systemd_post salt-api.service
|
|
|
|
%endif
|
|
|
|
%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}
|
2017-08-04 14:51:31 +02:00
|
|
|
%if 0%{?suse_version}
|
2014-11-24 11:13:31 +01:00
|
|
|
%service_del_postun salt-api.service
|
|
|
|
%else
|
2017-08-04 14:51:31 +02:00
|
|
|
%systemd_postun_with_restart salt-api.service
|
|
|
|
%endif
|
|
|
|
%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
|
|
|
|
2019-10-10 13:49:11 +02:00
|
|
|
%if 0%{?build_py2}
|
2018-03-19 09:54:13 +01:00
|
|
|
%posttrans -n python2-salt
|
|
|
|
# force re-generate a new thin.tgz
|
|
|
|
rm -f %{_localstatedir}/cache/salt/master/thin/version
|
2018-05-16 11:48:03 +02:00
|
|
|
rm -f %{_localstatedir}/cache/salt/minion/thin/version
|
2019-10-10 13:49:11 +02:00
|
|
|
%endif
|
2018-03-19 09:54:13 +01:00
|
|
|
|
|
|
|
%if 0%{?build_py3}
|
|
|
|
%posttrans -n python3-salt
|
|
|
|
# force re-generate a new thin.tgz
|
|
|
|
rm -f %{_localstatedir}/cache/salt/master/thin/version
|
2018-05-16 11:48:03 +02:00
|
|
|
rm -f %{_localstatedir}/cache/salt/minion/thin/version
|
2018-03-19 09:54:13 +01: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
|
2017-08-04 12:29:26 +02:00
|
|
|
%dir %attr(0750, root, salt) %{_localstatedir}/cache/salt/cloud
|
2018-01-26 14:46:21 +01:00
|
|
|
%if 0%{?default_py3}
|
2017-11-10 08:17:55 +01:00
|
|
|
%attr(755,root,root)%{python3_sitelib}/salt/cloud/deploy/bootstrap-salt.sh
|
2018-01-26 14:46:21 +01:00
|
|
|
%else
|
|
|
|
%attr(755,root,root)%{python_sitelib}/salt/cloud/deploy/bootstrap-salt.sh
|
|
|
|
%endif
|
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
|
2016-05-12 08:02:59 +02:00
|
|
|
|
2016-09-28 15:09:18 +02:00
|
|
|
# Install plugin only on SUSE machines
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%{_prefix}/lib/zypp/plugins/commit/zyppnotify
|
|
|
|
%endif
|
|
|
|
|
2017-02-16 16:09:53 +01:00
|
|
|
# Install Yum plugins only on RH machines
|
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
|
|
%{_prefix}/share/yum-plugins/
|
|
|
|
/etc/yum/pluginconf.d/yumnotify.conf
|
|
|
|
%endif
|
|
|
|
|
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
|
|
|
|
|
2017-08-04 14:51:31 +02:00
|
|
|
## Install sysV salt-minion watchdog for SLES11 and RHEL6
|
|
|
|
%if 0%{?rhel} == 6 || 0%{?suse_version} == 1110
|
|
|
|
%{_bindir}/salt-daemon-watcher
|
|
|
|
%endif
|
|
|
|
|
2015-10-19 22:52:40 +02:00
|
|
|
%files proxy
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/salt-proxy
|
|
|
|
%{_mandir}/man1/salt-proxy.1.gz
|
2016-06-06 12:54:59 +02:00
|
|
|
%if %{with systemd}
|
|
|
|
%{_unitdir}/salt-proxy@.service
|
|
|
|
%endif
|
2015-10-19 22:52:40 +02:00
|
|
|
|
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/
|
2017-02-16 16:09:53 +01:00
|
|
|
%dir %attr(0755, salt, salt) /var/lib/salt
|
2015-10-19 22:52:40 +02:00
|
|
|
%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/
|
|
|
|
|
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
|
2019-01-17 10:18:02 +01:00
|
|
|
%{_bindir}/salt-support
|
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
|
2016-09-28 09:49:13 +02:00
|
|
|
%{_mandir}/man1/spm.1.gz
|
2013-05-16 11:38:22 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/salt
|
2018-09-17 16:18:45 +02:00
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
%doc LICENSE AUTHORS README.rst HACKING.rst README.SUSE
|
|
|
|
%else
|
2018-07-30 13:52:13 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc AUTHORS README.rst HACKING.rst README.SUSE
|
2018-09-17 16:18:45 +02:00
|
|
|
%endif
|
2015-10-19 22:52:40 +02:00
|
|
|
#
|
2016-09-28 09:49:13 +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
|
2015-10-19 22:52:40 +02:00
|
|
|
%if %{with systemd}
|
|
|
|
/usr/lib/tmpfiles.d/salt.conf
|
|
|
|
%endif
|
2017-02-16 16:09:53 +01:00
|
|
|
%{_mandir}/man1/salt.1.*
|
2014-06-16 21:33:44 +02:00
|
|
|
|
2018-01-26 14:46:21 +01:00
|
|
|
%if 0%{?build_py2}
|
|
|
|
%files -n python2-salt
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{python_sitelib}/*
|
|
|
|
%exclude %{python_sitelib}/salt/cloud/deploy/*.sh
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?build_py3}
|
|
|
|
%files -n python3-salt
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
%exclude %{python3_sitelib}/salt/cloud/deploy/*.sh
|
|
|
|
%endif
|
|
|
|
|
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
|
|
|
|
2019-05-23 11:12:16 +02:00
|
|
|
%files standalone-formulas-configuration
|
|
|
|
%defattr(-,root,root)
|
2019-06-14 14:50:01 +02:00
|
|
|
%config(noreplace) %attr(0640, root, salt) %{_sysconfdir}/salt/master.d/standalone-formulas-configuration.conf
|
2019-09-26 14:48:15 +02:00
|
|
|
%dir %attr(0755, root, salt) %{_prefix}/share/salt-formulas/
|
|
|
|
%dir %attr(0755, root, salt) %{_prefix}/share/salt-formulas/states/
|
|
|
|
%dir %attr(0755, root, salt) %{_prefix}/share/salt-formulas/metadata/
|
2019-05-23 11:12:16 +02:00
|
|
|
|
2015-08-05 06:50:25 +02:00
|
|
|
%changelog
|
2019-01-17 10:18:02 +01:00
|
|
|
|
|
|
|
|