Compare commits

..

263 commits

Author SHA1 Message Date
Salt Project Packaging
53fd020df7 Merge develop into stable for v2024.12.09 release 2024-12-09 23:10:50 +00:00
Salt Project Packaging
b08a1f31b8 Update sha256 checksums 2024-11-29 17:58:26 +00:00
Salt Project Packaging
0bf5ed695c Merge develop into stable for v2024.11.29 release 2024-11-29 17:58:26 +00:00
Salt Project Packaging
f8cac033b9 Update sha256 checksums 2024-11-27 18:57:06 +00:00
Salt Project Packaging
cf8cf0df60 Merge develop into stable for v2024.11.27 release 2024-11-27 18:57:06 +00:00
Salt Project Packaging
6e86781af1 Update sha256 checksums 2024-11-26 16:40:54 +00:00
Salt Project Packaging
f69f185e1b Merge develop into stable for v2024.11.26 release 2024-11-26 16:40:54 +00:00
Salt Project Packaging
70b1976650 Update sha256 checksums 2024-11-21 22:10:22 +00:00
Salt Project Packaging
bb3ab6b7d4 Merge develop into stable for v2024.11.21 release 2024-11-21 22:10:22 +00:00
Salt Project Packaging
0624dcd0dd Update sha256 checksums 2024-11-07 21:41:52 +00:00
Salt Project Packaging
11a924b561 Merge develop into stable for v2024.11.07 release 2024-11-07 21:41:51 +00:00
Salt Project Packaging
1c54e2f3d7
Update sha256 checksums 2024-09-24 21:40:51 +00:00
Salt Project Packaging
6f4ed89aa4
Merge develop into stable for v2024.09.24 release 2024-09-24 21:40:49 +00:00
Salt Project Packaging
5e3c4e2f01
Update sha256 checksums 2024-07-23 21:46:06 +00:00
Salt Project Packaging
bd29f9f1bf
Merge develop into stable for v2024.07.23 release 2024-07-23 21:46:05 +00:00
Salt Project Packaging
fa25b2e734
Update sha256 checksums 2024-07-18 16:20:59 +00:00
Salt Project Packaging
2fc7161c24
Merge develop into stable for v2024.07.18 release 2024-07-18 16:20:57 +00:00
Salt Project Packaging
ec20b9a7db
Update sha256 checksums 2024-07-16 15:12:30 +00:00
Salt Project Packaging
08bd053f24
Merge develop into stable for v2024.07.16 release 2024-07-16 15:12:29 +00:00
Salt Project Packaging
1f055fce16
Update sha256 checksums 2024-07-12 15:22:49 +00:00
Salt Project Packaging
67e0c0511a
Merge develop into stable for v2024.07.12 release 2024-07-12 15:22:48 +00:00
Salt Project Packaging
cbcbd3c287
Update sha256 checksums 2024-04-03 15:16:49 +00:00
Salt Project Packaging
b5c189488d
Merge develop into stable for v2024.04.03 release 2024-04-03 15:16:48 +00:00
Salt Project Packaging
772a618f4d
Update sha256 checksums 2024-01-04 22:33:05 +00:00
Salt Project Packaging
840cf5fca9
Merge develop into stable for v2024.01.04 release 2024-01-04 22:33:04 +00:00
Salt Project Packaging
459b5e676d
Update sha256 checksums 2023-11-16 19:52:17 +00:00
Salt Project Packaging
4d5c2b120a
Merge develop into stable for v2023.11.16 release 2023-11-16 19:52:15 +00:00
Salt Project Packaging
bc8cb646a1
Update sha256 checksums 2023-11-07 18:36:22 +00:00
Salt Project Packaging
561a376d67
Merge develop into stable for v2023.11.07 release 2023-11-07 18:36:20 +00:00
Salt Project Packaging
01bce21941
Update sha256 checksums 2023-08-03 16:31:23 +00:00
Salt Project Packaging
8df6404f90
Merge develop into stable for v2023.08.03 release 2023-08-03 16:31:21 +00:00
Salt Project Packaging
3d95a10eff
Update sha256 checksums 2023-07-25 20:05:18 +00:00
Salt Project Packaging
482b2056c4
Merge develop into stable for v2023.07.25 release 2023-07-25 20:05:16 +00:00
Salt Project Packaging
3dcbea6a43
Update sha256 checksums 2023-06-28 20:27:54 +00:00
Salt Project Packaging
42475f735f
Merge develop into stable for v2023.06.28 release 2023-06-28 20:27:53 +00:00
Salt Project Packaging
ba3f9328ac
Update sha256 checksums 2023-04-26 18:45:01 +00:00
Salt Project Packaging
535bf70577
Merge develop into stable for v2023.04.26 release 2023-04-26 18:45:00 +00:00
Salt Project Packaging
de22841936
Update sha256 checksums 2023-04-21 16:57:22 +00:00
Salt Project Packaging
841ab5227a
Merge develop into stable for v2023.04.21 release 2023-04-21 16:57:20 +00:00
github-actions[bot] on behalf of @garethgreenaway
03f4f9dcf7 Update sha256 checksums 2023-04-06 17:47:33 +00:00
github-actions[bot] on behalf of @garethgreenaway
bb50b9c83c Merge develop into stable for v2023.04.06 release 2023-04-06 17:47:29 +00:00
github-actions[bot] on behalf of @s0undt3ch
99a13b2f30 Update sha256 checksums 2022-10-04 17:17:52 +00:00
github-actions[bot] on behalf of @s0undt3ch
74153c5e7f Merge develop into stable for v2022.10.04 release 2022-10-04 17:17:49 +00:00
github-actions[bot] on behalf of @s0undt3ch
635f4ced6d Update sha256 checksums 2022-08-13 22:08:21 +00:00
github-actions[bot] on behalf of @s0undt3ch
51289fdd5e Merge develop into stable for v2022.08.13 release 2022-08-13 22:08:19 +00:00
Pedro Algarvio
10b9a9cb8d No locked Gemfile
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2022-08-12 19:02:19 +01:00
Pedro Algarvio
5511dff5a1 Stable releases on stable branches
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2022-08-12 19:02:19 +01:00
Pedro Algarvio
5333af4c9e Remove conflicts
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2022-08-12 17:06:57 +01:00
Pedro Algarvio
2a1ba7fb09 Remove old workflows that did not get removed by the merge from develop
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2022-08-12 17:06:57 +01:00
github-actions[bot] on behalf of @s0undt3ch
23931c8522 Merge develop into stable(auto resolving conflicts to the develop version) 2022-08-12 12:43:31 +00:00
Kirill Ponomarev
71eb6f0a75
Merge pull request #1831 from saltstack/create-pull-request/patch
Update sha256 checksums
2022-05-19 15:26:49 +02:00
krionbsd
bc2d8f2b20 Update sha256 checksums 2022-05-19 13:25:52 +00:00
Kirill Ponomarev
8c2c3e7baa
Merge pull request #1830 from krionbsd/new_rel
2022.05.19 release
2022-05-19 15:25:31 +02:00
krionbsd
0cb75a5536
2022.05.19 release 2022-05-19 14:58:16 +02:00
Kirill Ponomarev
fd466ea7f0
Merge pull request #1807 from saltstack/create-pull-request/patch
Update sha256 checksums
2022-03-15 14:10:38 +01:00
s0undt3ch
8df2941696 Update sha256 checksums 2022-03-15 13:04:06 +00:00
krionbsd
438f06b9c7 Bump version to 2022.03.15 release 2022-03-15 13:03:48 +00:00
Imran Iqbal
92117f6625 ci(kitchen): set LEGACY crypto policy on Fedora (get 35 working)
Using successfully in the `salt-image-builder` for almost a year now:

* https://gitlab.com/saltstack-formulas/infrastructure/salt-image-builder/-/commit/ac145f3022a13
2022-03-15 13:03:48 +00:00
Imran Iqbal
b2d56a6b21 ci: remove fedora-33 (EOL)
* https://docs.fedoraproject.org/en-US/releases/eol/
  - Release:   Fedora Linux 33
  - EOL since: 2021-11-30
2022-03-15 13:03:48 +00:00
Imran Iqbal
e3ff84df78 ci: remove centos-8 (EOL)
* https://www.centos.org/centos-linux-eol/
  - "CentOS Linux 8 will reach End Of Life (EOL) on December 31st, 2021."
2022-03-15 13:03:48 +00:00
Imran Iqbal
d209023419 ci(gemfile+lock): update to latest versions 2022-03-15 13:03:48 +00:00
Imran Iqbal
78a1458c21 ci(rockylinux): add 3004 testing (stable and git) 2022-03-15 13:03:48 +00:00
Imran Iqbal
86058da36b ci(kitchen): use official Rocky Linux image on Docker Hub
* https://hub.docker.com/_/rockylinux?tab=tags
2022-03-15 13:03:48 +00:00
Imran Iqbal
f805365b11 feat(bootstrap-salt): add Rocky Linux detection and functions
Fix #1803.
2022-03-15 13:03:48 +00:00
Imran Iqbal
f16a2ffbd3 feat(bootstrap-salt): add AlmaLinux detection and functions
Fix #1803.
2022-03-15 13:03:48 +00:00
Joseph Pacura
3f0a3aba2e Use native repositories for Debian 11
Remove best-effort support for Debian Testing
Remove Ubuntu 20.10 support because it is end-of-life
2022-03-15 13:03:48 +00:00
Dafydd Jones
22a56aacf4 fix(windows): copy configs to correct config dirs (v3004+) 2022-03-15 13:03:48 +00:00
krionbsd
a143b26bd4 Remove 3001 from CI: EoL 2022-03-15 13:03:48 +00:00
krionbsd
33f23e97e4 Add CI for v3004 2022-03-15 13:03:48 +00:00
krionbsd
ce779b02ab Add CI for Ubuntu-21.10 and remove for 21.04 2022-03-15 13:03:48 +00:00
Bo Zhang
fb8105c15e Support Non-LTS Ubuntu 21.04 & 21.10
Ubuntu 21.10 is out, adjust the script accordingly.
2022-03-15 13:03:48 +00:00
Imran Iqbal
e7adfe409f ci(kitchen): add ssh-rsa to PubkeyAcceptedAlgorithms on Gentoo 2022-03-15 13:03:48 +00:00
Imran Iqbal
41f0ae7d32 ci(vagrant): use conditional local settings (inc. synced_folders) 2022-03-15 13:03:48 +00:00
Imran Iqbal
52ffe58df8 ci(proxy): replace deprecated windows-2016 with windows-2022
* https://github.com/actions/virtual-environments/issues/4312
2022-03-15 13:03:48 +00:00
Imran Iqbal
3eb6001e5c ci(freebsd): replace 12.2 with newly released 12.3 box
* https://app.vagrantup.com/bento/boxes/freebsd-12.3
2022-03-15 13:03:48 +00:00
Dafydd Jones
bd6a408aac ci(proxy): fix setting up WinRM
Same fix as provided for the SaltStack Formulas organisation:

* https://github.com/myii/ssf-formula/pull/392
2022-03-15 13:03:48 +00:00
Simon TheUser
b3d29d5f0a Restored extra line 2022-03-15 13:03:48 +00:00
Simon TheUser
e209b259d2 Create new process with all command-line parameters when UAC is enabled 2022-03-15 13:03:48 +00:00
Jille Timmermans
4387dfd260 Add support for Raspbian 11
Tested on my Raspberry Pi.

This solves the error `ERROR: No dependencies installation function found. Exiting...` when running on Raspbian 11.
2022-03-15 13:03:48 +00:00
Imran Iqbal
bbc3213454 ci(kitchen): add ssh-rsa to PubkeyAcceptedAlgorithms on Tumbleweed 2022-03-15 13:03:48 +00:00
krionbsd
6cce7051b6 Add openrc to alpine:latest dependencies 2022-03-15 13:03:48 +00:00
Bryce Larson
b6272a1b34 fix indentation, remove unnecessary IFS changes 2022-03-15 13:03:48 +00:00
Jeff Neel
f82cf912ad correct install 2022-03-15 13:03:48 +00:00
Jeff Neel
b5417e74cc correct install location 2022-03-15 13:03:48 +00:00
Jeff Neel
9e385fbe15 add rhel ubi tests and needed package 2022-03-15 13:03:48 +00:00
Jeff Neel
0031919e8d correct install 2022-03-15 13:03:48 +00:00
Jeff Neel
168b6787d8 correct install location 2022-03-15 13:03:48 +00:00
Jeff Neel
8ec0e8d130 fix lint for sh 2022-03-15 13:03:48 +00:00
Jeff Neel
3b43309236 fix fetch url 2022-03-15 13:03:48 +00:00
Jeff Neel
b5c022a4fb fix key import 2022-03-15 13:03:48 +00:00
Jeff Neel
1a24a1c7ca fix quotes 2022-03-15 13:03:48 +00:00
Jeff Neel
098a08950d Add CentOS GPG key for RHEL7 for successful builds 2022-03-15 13:03:48 +00:00
Imran Iqbal
68d22715a0 ci(centos-stream8): add platform 2022-03-15 13:03:48 +00:00
Nascire
0bd70a2e53 Fix git master install on alpine 3.12+
With default version 3003.3, you run into https://github.com/saltstack/salt/issues/55159, which was fixed by https://github.com/saltstack/salt/pull/60811
If you want to install from git master, it fails because py2-pip is unavailable - Alpine 3.11 was the last version to include py2-pip
This PR changes the git master process to python3 and adds all requirements for a successful build
2022-03-15 13:03:48 +00:00
Imran Iqbal
f55c2b4e32 ci(kitchen): add ssh-rsa to PubkeyAcceptedAlgorithms on Arch Linux 2022-03-15 13:03:48 +00:00
krionbsd
c63dafa4b1 Sort help alphabetically 2022-03-15 13:03:48 +00:00
krionbsd
6fb638fa2b Re-add CI for Ubuntu-16 2022-03-15 13:03:48 +00:00
krionbsd
d2681a36c0 Update README.rst with 2021.09.17 release sha256sum 2022-03-15 13:03:48 +00:00
krionbsd
48628c27bd Update sha256 checksums 2021-09-17 09:37:30 +01:00
Kirill Ponomarev
bb9e407b6f
Merge pull request #1596 from krionbsd/new_stable
Update to new release 2021.09.17
2021-09-17 09:35:39 +02:00
krionbsd
1a1e74b689 Merge branch 'develop' into new_stable 2021-09-17 09:27:23 +02:00
krionbsd
a9d40a44c4 Merge branch 'stable' of github.com:krionbsd/salt-bootstrap into stable 2021-09-15 07:42:03 +02:00
krionbsd
693657d80e Merge branch 'stable' of github.com:krionbsd/salt-bootstrap into stable 2021-09-15 07:41:57 +02:00
krionbsd
545aec75b8 Update sha256 checksums 2021-09-14 14:13:53 +02:00
krionbsd
2dc2badee8 Update to new release 2021.09.14 2021-09-14 10:30:49 +02:00
krionbsd
9f11cbe52a Pin latest salt version to README 2021-09-14 10:30:49 +02:00
Bryce Larson
637a923fd4 don't output info if using the default -x value 2021-09-14 10:30:49 +02:00
Bryce Larson
60545e7f42 remove py2 and 3000 jobs from test suite 2021-09-14 10:30:49 +02:00
Bryce Larson
94ebb80bdb make python3 the default
This should be released to stable at the same time or right before
3000.x releases are moved from repo.saltproject.io to
archive.repo.saltproject.io on 2021-09-15
2021-09-14 10:30:49 +02:00
krionbsd
8f39791c2c Change master to develop branch 2021-09-14 10:30:49 +02:00
krionbsd
62a2c8bb81 Update README.rst with 2021.08.19 release sha256sum 2021-09-14 10:30:49 +02:00
krionbsd
c95db60145 Merge branch 'stable' of github.com:krionbsd/salt-bootstrap into stable 2021-09-14 08:50:26 +02:00
krionbsd
ea738bd23f Update sha256 checksums 2021-08-19 21:00:49 +02:00
krionbsd
6fac8b774a Update to new release 2021-08-19 19:43:09 +02:00
krionbsd
112cbcc0fc Update version for new release 2021-08-19 19:40:14 +02:00
Pedro Algarvio
a6229b7340
Merge pull request #1569 from saltstack/create-pull-request/patch
Update sha256 checksums
2021-06-30 10:44:52 +01:00
s0undt3ch
e32bd9f93c Update sha256 checksums 2021-06-30 09:12:28 +00:00
Pedro Algarvio
a00fa52f30
Merge pull request #1568 from s0undt3ch/stable
Stable Release
2021-06-30 10:12:10 +01:00
Pedro Algarvio
14287fbbe1
Merge remote-tracking branch 'upstream/develop' into stable 2021-06-29 19:19:55 +01:00
s0undt3ch
6a058cbd76 Update sha256 checksums 2021-03-02 13:07:15 +00:00
Pedro Algarvio
e04245f6ee Fix release version in ChangeLog 2021-03-02 13:03:04 +00:00
Pedro Algarvio
13ed3c527b Update version for release 2021-03-02 13:03:04 +00:00
Pedro Algarvio
cafa1b6dfc Support the upcoming Salt 3003 release 2021-03-02 13:03:04 +00:00
Pedro Algarvio
3f375cd938 Update AUTHORS and ChangeLog 2021-03-02 13:03:04 +00:00
Pedro Algarvio
e85c4edc80 Update RELEASE.md 2021-03-02 13:03:04 +00:00
Pedro Algarvio
1186b0103f Additionally, open a PR against Salt 2021-03-02 13:03:04 +00:00
Pedro Algarvio
e57528fb67 Just a better name 2021-03-02 13:03:04 +00:00
Bryce Larson
d515d103bc use https for fetching gem 2021-03-02 13:03:04 +00:00
Imran Iqbal
3ef81f56c1 refactor(kitchen): prefer kitchen.yml to .kitchen.yml
* Quoting from https://kitchen.ci/docs/getting-started/kitchen-yml/:
  - As of test-kitchen 1.21.0, we now prefer `kitchen.yml` over `.kitchen.yml`.
  - This preference applies to `kitchen.local.yml` as well.
  - This is backward compatible so the dot versions continue to work.
* Mirrors contribution to `saltstack/salt` repo:
  - https://github.com/saltstack/salt/pull/54442
* `.gitignore`:
  - 46f96e4f37/.gitignore (L112-L116)
2021-03-02 13:03:04 +00:00
Imran Iqbal
478b28bb3a ci(oraclelinux): add CI for Oracle Linux 7 2021-03-02 13:03:04 +00:00
Bryce Larson
5e7442b37e apt-key is deprecated on debian10+ and ubuntu20+ 2021-03-02 13:03:04 +00:00
Dafydd Jones
c35cbb9804 fix(ps1): missing comma 2021-03-02 13:03:04 +00:00
Dafydd Jones
721ceacd4c refactor(ps1): use similar copy command for Vagrant minion key files 2021-03-02 13:03:04 +00:00
Dafydd Jones
2bc74e06bc feat(ps1): implement Vagrant grains_config option
bootstrap-salt.sh already does this.
2021-03-02 13:03:04 +00:00
Dafydd Jones
6510a2f44a feat(ps1): implement configure only option (for Vagrant) 2021-03-02 13:03:04 +00:00
Joseph Pacura
fe832d0eb1 Add Ubuntu 20.10 support using Ubuntu 20.04 packages
Remove support for Debian 8
Remove support for Ubuntu 14.04, 18.10, 19.04, and 19.10
2021-03-02 13:03:04 +00:00
Imran Iqbal
f4e61fe32d fix(opensuse): fix & add CI for openSUSE Tumbleweed
When `systemd` is installed on Tumbleweed, `systemctl` is actually
located at `/usr/bin/systemctl`.  It appears that the same applies for
openSUSE Leap except that a symlink is also provided there, i.e.
`/bin/systemctl` => `/usr/bin/systemctl`.

Tumbleweed installs Python 3.8, which was first supported in `3001` (Sodium).
Hence, testing on `2019.2` and `3000` is not possible.

When provisioning in Kitchen, another package is supplied compared to
openSUSE Leap:

* `systemd`: It appears that this is implicitly installed in Leap as a
  dependency of the `openssh` package; this doesn't apply in Tumbleweed,
  so it is installed explicitly.
2021-03-02 13:03:04 +00:00
Bryce Larson
672dbe1513 limit pip to < 21.0 for python 3.5 2021-03-02 13:03:04 +00:00
Bryce Larson
6ca8b7364e upgrade the minimum pip version 2021-03-02 13:03:04 +00:00
Bryce Larson
4e067acf82 update supported oses 2021-03-02 13:03:04 +00:00
Bryce Larson
2aac4774a2 move everything to point at saltproject.io urls 2021-03-02 13:03:04 +00:00
Brad Davis
1855474852 FreeBSD also needs the _PKI_DIR reset 2021-03-02 13:03:04 +00:00
Marek Knappe
2d68b299f8 Added www/py-tornado4 package as requirment for freebsd #1521 2021-03-02 13:03:04 +00:00
Ivo Jánský
bd2d410e3c Gentoo - use ksmanis/stage3 image
Use an alternative image until gentoo/stage3 gets pushed to Docker Hub again.
2021-03-02 13:03:04 +00:00
ScriptAutomate
9a5a318d7a Adding examples using stable; adding help output 2021-03-02 13:03:04 +00:00
Ivo Jánský
6dbdbcbe34 Gentoo - install Salt 2019 (GIT) with msgpack <1.0. 2021-03-02 13:03:04 +00:00
Ivo Jánský
49351b08d5 Gentoo - disable x.0 version tests. 2021-03-02 13:03:04 +00:00
Ivo Jánský
6ddf62a3f0 Gentoo - install Salt 3000 (GIT) with Python 3.7. 2021-03-02 13:03:04 +00:00
Bryce Larson
8275732c6c add debian-11 tests 2021-03-02 13:03:04 +00:00
Joseph Pacura
4c1903f004 Debian 11 (bullseye/testing) support using Debian 10 packages 2021-03-02 13:03:04 +00:00
Bryce Larson
11a0c6fee0 fix .0 tests 2021-03-02 13:03:04 +00:00
Bryce Larson
c291d741f5 only run gentoo on branch, black everything 2021-03-02 13:03:04 +00:00
Bryce Larson
b8a6066350 update tested oses 2021-03-02 13:03:04 +00:00
Pedro Algarvio
5fe4b06b6c
Merge pull request #1511 from saltstack/create-pull-request/patch
Changes by create-pull-request action
2020-10-21 15:09:04 +01:00
s0undt3ch
defd13df5b Update sha256 checksums 2020-10-21 14:05:26 +00:00
Pedro Algarvio
446d269b65
Merge pull request #1509 from saltstack/create-pull-request/patch
Changes by create-pull-request action
2020-10-21 14:28:12 +01:00
Pedro Algarvio
18b0b9e6d4
Merge remote-tracking branch 'upstream/develop' into stable 2020-10-21 13:45:08 +01:00
Pedro Algarvio
ddc16e0fa0
Merge pull request #1507 from s0undt3ch/stable
Merge develop branch for 2020.10.20 release
2020-10-21 12:28:08 +01:00
Pedro Algarvio
2fb55a93fb
Merge develop branch for 2020.10.20 release 2020-10-21 10:25:25 +01:00
Pedro Algarvio
b3786e5ad7
Merge pull request #1505 from s0undt3ch/stable
Release 2020.10.19
2020-10-19 17:38:35 +01:00
SaltStack GH Automation
7f3872a126 Update sha256 checksums 2020-10-19 12:02:10 +00:00
Pedro Algarvio
d8412c3749
Merge develop for stable release 2020-10-19 12:34:57 +01:00
Pedro Algarvio
895b594c3e
Merge pull request #1484 from bryceml/release-2020-06-23
Release 2020 06 23
2020-06-23 22:50:48 +01:00
Bryce Larson
b5bed486d6
add sha256 files for release 2020-06-23 13:44:39 -06:00
Bryce Larson
393fbfc25d
Merge branch develop into stable 2020-06-23 13:43:23 -06:00
Pedro Algarvio
d3c771f48c
Merge pull request #1472 from s0undt3ch/stable
Merge Develop For Stable Release
2020-05-28 20:51:05 +01:00
Pedro Algarvio
f047c6dc0d
Merge remote-tracking branch 'upstream/develop' into stable 2020-05-28 16:54:12 +01:00
Pedro Algarvio
f682de029c
Merge pull request #1435 from s0undt3ch/stable
Merge Develop Into Stable For Release
2020-02-24 18:32:31 +00:00
Pedro Algarvio
6e43b3a801
Merge remote-tracking branch 'upstream/develop' into stable 2020-02-24 16:39:39 +00:00
Pedro Algarvio
913653f79a
Merge pull request #1427 from s0undt3ch/stable
Merge Develop Into Stable For Release
2020-02-05 06:27:53 +00:00
Pedro Algarvio
b4f4187b48
Merge remote-tracking branch 'upstream/develop' into stable 2020-02-04 17:30:36 +00:00
Pedro Algarvio
cca21c02eb
Merge pull request #1422 from s0undt3ch/stable
Merge the develop branch for stable release
2020-01-29 17:20:07 +00:00
Pedro Algarvio
0e8dc139fd
Merge the develop branch for stable release 2020-01-29 17:03:32 +00:00
Bryce Larson
72aa4573de
Merge pull request #1411 from s0undt3ch/stable
Merge develop into stable for release
2020-01-21 14:49:02 -07:00
Pedro Algarvio
5315c72483
Merge develop for stable release 2020-01-21 18:18:49 +00:00
Megan Wilhite
818481e267
Merge pull request #1384 from Ch3LL/merge_stable
Merge develop into stable for 2019.11.04 release
2019-11-04 10:24:12 -05:00
ch3ll
0964335792
Merge branch 'develop' into stable 2019-11-04 10:05:22 -05:00
Pedro Algarvio
33e831bef9
Merge pull request #1373 from s0undt3ch/stable
Merge Develop branch into stable for release
2019-10-03 16:43:31 +01:00
Pedro Algarvio
2bdcfa302a
Merge remote-tracking branch 'upstream/develop' into stable 2019-10-03 15:43:24 +01:00
Pedro Algarvio
13b8215645
Merge pull request #1348 from s0undt3ch/stable
[Stable] Merge forward from develop
2019-05-20 16:30:22 +01:00
Pedro Algarvio
02effe06ce
Merge remote-tracking branch 'upstream/develop' into stable 2019-05-20 16:28:38 +01:00
Pedro Algarvio
a92556163e
Merge remote-tracking branch 'upstream/develop' into stable 2019-05-20 11:02:01 +01:00
Megan Wilhite
fb7115f3df
Merge pull request #1342 from saltstack/tls_support_stable
Add tls support for version 1.2
2019-04-15 13:02:46 -04:00
twangboy
c252c74dc8
Add tls support for version 1.2 2019-04-15 10:18:16 -06:00
Pedro Algarvio
0b16d1eb7e
Merge pull request #1325 from s0undt3ch/stable
Merge develop into stable for release
2019-02-27 16:24:01 +00:00
Pedro Algarvio
08093ba317
Merge remote-tracking branch 'upstream/develop' into stable 2019-02-27 15:25:50 +00:00
Pedro Algarvio
47085aa3a0
Merge pull request #1303 from s0undt3ch/stable
Merge Develop Branch into Stable for Release
2019-01-09 14:03:19 +00:00
Pedro Algarvio
a9e72ad7b7
Merge remote-tracking branch 'upstream/develop' into stable 2019-01-09 09:55:56 +00:00
Daniel Wallace
096f111b65
Merge pull request #1281 from Ch3LL/merge_stable
[stable] Merge develop into stable for new release 2018.08.15
2018-08-15 14:12:53 -05:00
Ch3LL
de93938dfd
[stable] Merge develop into stable for new release 2018.08.15 2018-08-15 15:04:26 -04:00
Nicole Thomas
36f843063e
Merge pull request #1275 from rallytime/merge-stable
[stable] Merge develop into stable for new release
2018-08-13 13:51:50 -04:00
rallytime
bbd3244788
Merge branch 'develop' into 'stable'
No conflicts.
2018-08-13 13:48:47 -04:00
Nicole Thomas
466d62fccc
Merge pull request #1222 from rallytime/merge-stable
[stable] Merge forward from develop to stable
2018-04-25 15:38:35 -04:00
rallytime
127b14b001
Merge branch 'develop' into 'stable'
No conflicts.
2018-04-25 15:35:50 -04:00
Nicole Thomas
04f4b7054d
Merge pull request #1210 from pjcreath/fix-centos-stable-rev
Fix for silently ignored version argument on CentOS/RHEL
2018-03-26 09:20:47 -04:00
pjcreath
f1df3ec949 Add 'yum clean metadata' after updating the saltstack.repo file as requested.
According to https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-working_with_yum_cache
this option "eliminates all files that yum uses to determine the remote
availability of packages."
2018-03-16 20:12:41 -04:00
pjcreath
aa52ca51dd bootstrap-salt.sh: fix for silently ignored version argument on CentOS/RHEL
This commit adds a warning when a pre-existing saltstack.repo
on CentOS/RHEL causes the version argument to be ignored.

It also allows the -F (forced overwrite) option to override
this situation, overwriting the saltstack.repo file, and
thus installing the specified version.

Resolves #1209.
2018-03-14 16:25:19 -04:00
Nicole Thomas
e6aa6d7830
Merge pull request #1177 from rallytime/merge-stable
[stable] Merge forward from develop to stable
2017-12-13 13:14:33 -05:00
rallytime
5d3ac2549d
Merge branch 'develop' into 'stable'
Conflicts:
  - bootstrap-salt.sh
2017-12-13 13:09:21 -05:00
Nicole Thomas
ec6e9bffe6 Merge pull request #1132 from rallytime/merge-stable
[stable] Merge forward from develop to stable for next release
2017-08-17 12:10:37 -04:00
rallytime
6b2658f3d2 Merge branch 'develop' into 'stable'
Conflicts:
  - bootstrap-salt.sh
2017-08-17 12:02:19 -04:00
Nicole Thomas
d226809b64 Merge pull request #1079 from Ch3LL/merge-stable_SsL
[stable] Merge develop into stable
2017-05-24 12:25:55 -06:00
Ch3LL
7ea1a8773d
Merge branch 'develop' into 'stable'
No conflicts.
2017-05-24 14:05:44 -04:00
Nicole Thomas
b2d6b80ec1 Merge pull request #1013 from rallytime/merge-stable
[stable] Merge develop into stable
2017-01-10 14:51:41 -07:00
rallytime
d419105e99 Merge branch 'develop' into 'stable'
No conflicts.
2017-01-10 14:47:44 -07:00
Nicole Thomas
b3e6e973da Merge pull request #980 from rallytime/merge-stable
[stable] Merge develop into stable
2016-10-25 15:49:22 -06:00
rallytime
9e301c09ba Merge branch 'develop' into 'stable'
No conflicts.
2016-10-25 15:46:22 -06:00
Nicole Thomas
13cf650b2c Merge pull request #938 from rallytime/merge-stable
[stable] Merge develop into stable branch
2016-08-16 10:51:44 -06:00
rallytime
0af4681fc9 Merge branch 'develop' into 'stable'
No conflicts.
2016-08-16 10:42:47 -06:00
Nicole Thomas
9d6a0a0611 Merge pull request #934 from rallytime/merge-stable
[stable] Merge develop into stable branch
2016-08-15 13:08:34 -06:00
rallytime
a631dd9955 Merge branch 'develop' into 'stable' 2016-08-15 13:05:01 -06:00
Nicole Thomas
4372218c9f Merge pull request #912 from rallytime/merge-stable
[stable] Merge develop into stable branch
2016-07-07 16:17:28 -04:00
rallytime
3674b31c97 Merge branch 'develop' into 'stable'
Conflicts:
  - bootstrap-salt.sh
2016-07-07 14:14:35 -06:00
Nicole Thomas
1c7497dfb3 Merge pull request #892 from rallytime/merge-stable
[stable] Merge develop into stable branch
2016-06-27 14:11:35 -04:00
rallytime
012ea0c264 Merge branch 'develop' into 'stable' 2016-06-27 12:02:31 -06:00
Nicole Thomas
e44c2a2f70 Merge pull request #887 from rallytime/merge-stable
[stable] Merge develop into stable branch
2016-06-24 18:42:46 -04:00
rallytime
9c0e36b411 Merge branch 'develop' into 'stable' 2016-06-24 16:38:52 -06:00
Nicole Thomas
39b54462c2 Merge pull request #850 from rallytime/merge-stable
[stable] Merge develop into stable branch
2016-05-11 14:32:57 -06:00
rallytime
a1d7af6ff3 Merge branch 'develop' into 'stable'
No conflicts.
2016-05-11 14:26:42 -06:00
Nicole Thomas
7e4aaef801 Merge pull request #843 from rallytime/merge-stable
[stable] Merge develop into stable branch
2016-05-10 16:38:55 -06:00
rallytime
d032d49807 Merge branch 'develop' into 'stable'
No conflicts.
2016-05-10 16:34:35 -06:00
Pedro Algarvio
0b3decfff0 Merge pull request #816 from jfindlay/stable
Merge develop into stable for new release
2016-04-18 21:27:24 +01:00
Justin Findlay
e68d6682ac Merge remote-tracking branch 'saltstack/develop' into stable 2016-04-18 12:49:35 -06:00
RuriRyan
2b13563439 Update epel-release version number (#809) 2016-04-18 12:44:50 -06:00
Pedro Algarvio
e5e5f9f274 Merge branch 'develop' into stable for v2015.11.09 release 2015-11-09 16:25:57 +00:00
Pedro Algarvio
29fc62f9bd Merge branch 'develop' into stable for v2015.11.04 release 2015-11-04 12:29:55 +00:00
Pedro Algarvio
4584f5e5d8 Merge branch 'develop' into stable 2015-08-06 14:37:43 +01:00
Pedro Algarvio
85e6ed8ce2 Merge branch 'develop' into stable for stable v2015.08.06
Fixes #637
2015-08-06 14:35:15 +01:00
Pedro Algarvio
f8732ce6f2 Merge remote-tracking branch 'upstream/develop' into stable for v2015.07.22 release 2015-07-22 13:18:28 +01:00
Pedro Algarvio
1370165d86 Merge remote-tracking branch 'upstream/develop' into stable for release 2015-07-17 12:13:48 +01:00
Pedro Algarvio
b1ee9c7137 Merge branch 'develop' into stable for v2015.04.07 stable release 2015-05-07 17:04:05 +01:00
Pedro Algarvio
a62337e907 Merge branch 'develop' into stable for v2015.05.04 2015-05-04 11:03:36 +01:00
Pedro Algarvio
67b4d7ab5d Merge pull request #592 from saltstack/revert-589-patch-1
Revert "Fix Debian Squeeze backports mirror"
2015-04-30 11:58:42 +01:00
Pedro Algarvio
3e2fee978a Revert "Fix Debian Squeeze backports mirror" 2015-04-30 11:58:21 +01:00
Pedro Algarvio
10b6d053fa Merge pull request #589 from panticz/patch-1
Fix Debian Squeeze backports mirror
2015-04-30 11:43:09 +01:00
panticz
08dfaab188 Fix Debian Squeeze backports mirror
http://http.debian.net/debian-backports is not available anymore
2015-04-27 18:08:56 +02:00
Pedro Algarvio
902da73446 Merge branch 'develop' into stable for v2015.03.15 release 2015-03-11 19:01:02 +00:00
Pedro Algarvio
fe14312234 Merge branch 'develop' into stable 2015-03-04 16:42:20 +00:00
Pedro Algarvio
103bb7dc7f Merge branch 'develop' into stable 2015-02-28 15:07:24 +00:00
Pedro Algarvio
1a36092814 Merge branch 'develop' into stable 2015-02-27 01:39:50 +00:00
Pedro Algarvio
81514c5035 Merge pull request #12 from s0undt3ch/develop
Merge current develop into stable
2015-02-27 01:38:32 +00:00
Pedro Algarvio
6080a18e6c Merge pull request #530 from rallytime/merge_develop
Merge develop into stable
2015-01-12 22:12:10 +00:00
rallytime
76cc5bb78f Merge branch 'develop' into merge_develop 2015-01-12 15:09:38 -07:00
rallytime
0cb31058bc Merge branch 'develop' into merge_develop 2015-01-12 14:56:25 -07:00
Pedro Algarvio
bcad396c3f Merge branch 'develop' into stable for v2014.12.11 release 2014-12-11 20:42:58 +00:00
Pedro Algarvio
05b840f224 Merge branch 'develop' of github.com:saltstack/salt-bootstrap into stable 2014-11-08 09:17:14 +00:00
Pedro Algarvio
723fd61c7e Merge branch 'develop' into stable for v2014.10.30 2014-10-30 01:23:06 +00:00
Pedro Algarvio
534cd6856d Bump version for stable release 2014-10-30 01:21:58 +00:00
Pedro Algarvio
96bb6d90f6 Update changes log 2014-10-30 01:21:20 +00:00
Pedro Algarvio
224ebd305c Apply the forking patch to openSUSE git installations.
This is needed while SuSE/openSUSE doesn't ship the systemd python
bindings.

Closes saltstack/salt#16982
2014-10-30 01:16:07 +00:00
Pedro Algarvio
8b29491c01 Merge branch 'develop' into stable for v2014.10.28 release 2014-10-28 02:07:23 +00:00
Pedro Algarvio
68329b80c8 If using the default git clone URL, also update it to use HTTPS if the flag is passed. 2014-10-28 02:04:53 +00:00
Pedro Algarvio
79e9c7e7fb Bump version for stable release. 2014-10-28 02:04:26 +00:00
Pedro Algarvio
50de0fda08 Merge branch 'develop' into stable for v2014.10.21 2014-10-21 23:12:03 +01:00
Pedro Algarvio
322f4382fe Merge branch 'develop' into stable for v2014.10.14 2014-10-14 05:42:30 +01:00
Pedro Algarvio
54a38f4461 Bump version for stable release 2014-10-14 05:42:05 +01:00
Pedro Algarvio
bf9364a9ba Merge branch 'develop' into stable for v2014.09.25 2014-09-25 16:38:11 +01:00
Pedro Algarvio
b549ca9d1f Merge branch 'develop' into stable for v2014.09.24 release 2014-09-24 15:56:14 +01:00
Pedro Algarvio
46e6746e7c Merge branch 'develop' into stable for next stable release 2014-09-09 23:07:47 +01:00
Pedro Algarvio
40c2289798 Merge branch 'develop' into stable for v2014.08.30 stable release 2014-08-30 14:29:10 +01:00
Pedro Algarvio
c14c38b74d Merge branch 'develop' into stable 2014-08-23 14:09:29 +01:00
Pedro Algarvio
76cf0ae8d7 Merge branch 'develop' into stable 2014-08-23 14:07:06 +01:00
Pedro Algarvio
f0608fb22e The stable branch should not see the unstable warning messagunstable e 2014-08-03 21:59:56 +01:00
15 changed files with 1101 additions and 315 deletions

View file

@ -114,6 +114,22 @@ jobs:
macos-12:
name: macOS 12
if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true'
uses: ./.github/workflows/test-macos.yml
needs:
- lint
- generate-actions-workflow
with:
distro-slug: macos-12
display-name: macOS 12
container-slug: macos-12
timeout: 20
runs-on: macos-12
instances: '["stable-3006", "stable-3006-8", "stable-3007", "stable-3007-1", "latest"]'
macos-13: macos-13:
name: macOS 13 name: macOS 13
if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true' if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true'
@ -164,36 +180,6 @@ jobs:
amazonlinux-2023:
name: Amazon 2023
if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true'
uses: ./.github/workflows/test-linux.yml
needs:
- lint
- generate-actions-workflow
with:
distro-slug: amazonlinux-2023
display-name: Amazon 2023
container-slug: amazonlinux-2023
timeout: 20
instances: '["stable-3006", "onedir-3006", "stable-3006-8", "stable-3007", "onedir-3007", "stable-3007-1", "latest", "default"]'
debian-11:
name: Debian 11
if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true'
uses: ./.github/workflows/test-linux.yml
needs:
- lint
- generate-actions-workflow
with:
distro-slug: debian-11
display-name: Debian 11
container-slug: debian-11
timeout: 20
instances: '["stable-3006", "onedir-3006", "stable-3006-8", "stable-3007", "onedir-3007", "stable-3007-1", "latest", "default"]'
debian-12: debian-12:
name: Debian 12 name: Debian 12
if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true' if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true'
@ -204,7 +190,7 @@ jobs:
with: with:
distro-slug: debian-12 distro-slug: debian-12
display-name: Debian 12 display-name: Debian 12
container-slug: debian-12 container-slug: systemd-debian-12
timeout: 20 timeout: 20
instances: '["stable-3007", "git-3007", "onedir-3007", "stable-3007-1", "git-master", "latest", "default"]' instances: '["stable-3007", "git-3007", "onedir-3007", "stable-3007-1", "git-master", "latest", "default"]'
@ -219,7 +205,7 @@ jobs:
with: with:
distro-slug: photon-5 distro-slug: photon-5
display-name: Photon OS 5 display-name: Photon OS 5
container-slug: photon-5 container-slug: systemd-photon-5
timeout: 20 timeout: 20
instances: '["stable-3006", "onedir-3006", "stable-3006-8", "stable-3007", "onedir-3007", "stable-3007-1", "latest", "default"]' instances: '["stable-3006", "onedir-3006", "stable-3006-8", "stable-3007", "onedir-3007", "stable-3007-1", "latest", "default"]'
@ -234,7 +220,7 @@ jobs:
with: with:
distro-slug: rockylinux-8 distro-slug: rockylinux-8
display-name: Rocky Linux 8 display-name: Rocky Linux 8
container-slug: rockylinux-8 container-slug: systemd-rockylinux-8
timeout: 20 timeout: 20
instances: '["stable-3006", "onedir-3006", "stable-3006-8", "stable-3007", "onedir-3007", "stable-3007-1", "latest", "default"]' instances: '["stable-3006", "onedir-3006", "stable-3006-8", "stable-3007", "onedir-3007", "stable-3007-1", "latest", "default"]'
@ -249,7 +235,7 @@ jobs:
with: with:
distro-slug: rockylinux-9 distro-slug: rockylinux-9
display-name: Rocky Linux 9 display-name: Rocky Linux 9
container-slug: rockylinux-9 container-slug: systemd-rockylinux-9
timeout: 20 timeout: 20
instances: '["stable-3006", "onedir-3006", "stable-3006-8", "stable-3007", "onedir-3007", "stable-3007-1", "latest", "default"]' instances: '["stable-3006", "onedir-3006", "stable-3006-8", "stable-3007", "onedir-3007", "stable-3007-1", "latest", "default"]'
@ -264,7 +250,7 @@ jobs:
with: with:
distro-slug: ubuntu-2204 distro-slug: ubuntu-2204
display-name: Ubuntu 22.04 display-name: Ubuntu 22.04
container-slug: ubuntu-22.04 container-slug: systemd-ubuntu-22.04
timeout: 20 timeout: 20
instances: '["stable-3006", "git-3006", "onedir-3006", "stable-3006-8", "stable-3007", "git-3007", "onedir-3007", "stable-3007-1", "git-master", "latest", "default"]' instances: '["stable-3006", "git-3006", "onedir-3006", "stable-3006-8", "stable-3007", "git-3007", "onedir-3007", "stable-3007-1", "git-master", "latest", "default"]'
@ -277,11 +263,10 @@ jobs:
needs: needs:
- lint - lint
- generate-actions-workflow - generate-actions-workflow
- macos-12
- macos-13 - macos-13
- macos-14 - macos-14
- windows-2022 - windows-2022
- amazonlinux-2023
- debian-11
- debian-12 - debian-12
- photon-5 - photon-5
- rockylinux-8 - rockylinux-8

View file

@ -6,15 +6,17 @@ import pathlib
os.chdir(os.path.abspath(os.path.dirname(__file__))) os.chdir(os.path.abspath(os.path.dirname(__file__)))
# only test against current containers with systemd
# will add these when they become available with systemd
# "amazonlinux-2", # "amazonlinux-2",
# "amazonlinux-2023",
# "debian-11",
# "debian-13", # "debian-13",
# "fedora-40", # "fedora-40",
# "photon-4", # "photon-4",
# "ubuntu-2004", # "ubuntu-2004",
# "ubuntu-2404", # "ubuntu-2404",
LINUX_DISTROS = [ LINUX_DISTROS = [
"amazonlinux-2023",
"debian-11",
"debian-12", "debian-12",
"photon-5", "photon-5",
"rockylinux-8", "rockylinux-8",
@ -27,19 +29,22 @@ WINDOWS = [
] ]
OSX = [ OSX = [
"macos-12",
"macos-13", "macos-13",
"macos-14", "macos-14",
] ]
# only test against current containers with systemd
# will add these when they become available with systemd
# "amazonlinux-2", # "amazonlinux-2",
# "amazonlinux-2023",
# "debian-11",
# "debian-13", # "debian-13",
# "fedora-40", # "fedora-40",
# "photon-4", # "photon-4",
# "ubuntu-2004", # "ubuntu-2004",
# "ubuntu-2404", # "ubuntu-2404",
STABLE_DISTROS = [ STABLE_DISTROS = [
"amazonlinux-2023",
"debian-11",
"debian-12", "debian-12",
"photon-5", "photon-5",
"rockylinux-8", "rockylinux-8",
@ -47,15 +52,17 @@ STABLE_DISTROS = [
"ubuntu-2204", "ubuntu-2204",
] ]
# only test against current containers with systemd
# will add these when they become available with systemd
# "amazonlinux-2", # "amazonlinux-2",
# "amazonlinux-2023",
# "debian-11",
# "debian-13", # "debian-13",
# "fedora-40", # "fedora-40",
# "photon-4", # "photon-4",
# "ubuntu-2004", # "ubuntu-2004",
# "ubuntu-2404", # "ubuntu-2404",
ONEDIR_DISTROS = [ ONEDIR_DISTROS = [
"amazonlinux-2023",
"debian-11",
"debian-12", "debian-12",
"photon-5", "photon-5",
"rockylinux-8", "rockylinux-8",
@ -63,6 +70,8 @@ ONEDIR_DISTROS = [
"ubuntu-2204", "ubuntu-2204",
] ]
# only test against current containers with systemd
# will add these when they become available with systemd
# "amazonlinux-2", # "amazonlinux-2",
# "amazonlinux-2023", # "amazonlinux-2023",
# "photon-4", # "photon-4",
@ -93,7 +102,6 @@ BLACKLIST_GIT_3006 = [
"amazonlinux-2023", "amazonlinux-2023",
"debian-11", "debian-11",
"debian-12", "debian-12",
"debian-13",
"fedora-40", "fedora-40",
"photon-4", "photon-4",
"photon-5", "photon-5",
@ -202,25 +210,27 @@ DISTRO_DISPLAY_NAMES = {
"ubuntu-2004": "Ubuntu 20.04", "ubuntu-2004": "Ubuntu 20.04",
"ubuntu-2204": "Ubuntu 22.04", "ubuntu-2204": "Ubuntu 22.04",
"ubuntu-2404": "Ubuntu 24.04", "ubuntu-2404": "Ubuntu 24.04",
"macos-12": "macOS 12",
"macos-13": "macOS 13", "macos-13": "macOS 13",
"macos-14": "macOS 14", "macos-14": "macOS 14",
"windows-2022": "Windows 2022", "windows-2022": "Windows 2022",
} }
CONTAINER_SLUG_NAMES = { CONTAINER_SLUG_NAMES = {
"amazonlinux-2": "amazonlinux-2", "amazonlinux-2": "systemd-amazonlinux-2",
"amazonlinux-2023": "amazonlinux-2023", "amazonlinux-2023": "systemd-amazonlinux-2023",
"debian-11": "debian-11", "debian-11": "systemd-debian-11",
"debian-12": "debian-12", "debian-12": "systemd-debian-12",
"debian-13": "debian-13", "debian-13": "systemd-debian-13",
"fedora-40": "fedora-40", "fedora-40": "systemd-fedora-40",
"photon-4": "photon-4", "photon-4": "systemd-photon-4",
"photon-5": "photon-5", "photon-5": "systemd-photon-5",
"rockylinux-8": "rockylinux-8", "rockylinux-8": "systemd-rockylinux-8",
"rockylinux-9": "rockylinux-9", "rockylinux-9": "systemd-rockylinux-9",
"ubuntu-2004": "ubuntu-20.04", "ubuntu-2004": "systemd-ubuntu-20.04",
"ubuntu-2204": "ubuntu-22.04", "ubuntu-2204": "systemd-ubuntu-22.04",
"ubuntu-2404": "ubuntu-24.04", "ubuntu-2404": "systemd-ubuntu-24.04",
"macos-12": "macos-12",
"macos-13": "macos-13", "macos-13": "macos-13",
"macos-14": "macOS 14", "macos-14": "macOS 14",
"windows-2022": "windows-2022", "windows-2022": "windows-2022",

13
.github/workflows/templates/main.yml vendored Normal file
View file

@ -0,0 +1,13 @@
# DO NOT EDIT THIS FILE DIRECTLY!
#
# This file was generated by .github/workflows/templates/generate.py
#
# yamllint disable rule:line-length rule:empty-lines
---
name: {name}
'on': [{on}]
jobs:
{jobs}

View file

@ -32,6 +32,10 @@ jobs:
Test: Test:
name: ${{ matrix.instance }} name: ${{ matrix.instance }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: ghcr.io/saltstack/salt-ci-containers/testing:${{ inputs.container-slug }}
options: --privileged
timeout-minutes: ${{ inputs.timeout }} timeout-minutes: ${{ inputs.timeout }}
strategy: strategy:
max-parallel: 2 max-parallel: 2
@ -42,6 +46,16 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install Python Dependencies with pip breakage
if: ${{ ( inputs.distro-slug == 'debian-11' ) || ( inputs.distro-slug == 'debian-12' ) || ( inputs.distro-slug == 'debian-13' ) || ( inputs.distro-slug == 'ubuntu-2404' ) }}
run: |
python3 -m pip install --break-system-packages -r tests/requirements.txt
- name: Install Python Dependencies without pip breakage
if: ${{ ( inputs.distro-slug != 'debian-11' ) && ( inputs.distro-slug != 'debian-12' ) && ( inputs.distro-slug != 'debian-13' ) && ( inputs.distro-slug != 'ubuntu-2404' ) }}
run: |
python3 -m pip install -r tests/requirements.txt
- name: Get Version - name: Get Version
run: | run: |
# We need to get the version here and make it an environment variable # We need to get the version here and make it an environment variable
@ -51,39 +65,17 @@ jobs:
vt_parm_ver=$(echo "${{ matrix.instance }}" | sed 's/-/ /' | sed 's/-/./' | awk -F ' ' '{print $2}') vt_parm_ver=$(echo "${{ matrix.instance }}" | sed 's/-/ /' | sed 's/-/./' | awk -F ' ' '{print $2}')
echo "SaltVersion=$vt_parm_ver" >> $GITHUB_ENV echo "SaltVersion=$vt_parm_ver" >> $GITHUB_ENV
- name: "Pull container ${{ inputs.container-slug }}"
run: |
docker pull ghcr.io/saltstack/salt-ci-containers/testing:${{ inputs.container-slug }}
- name: "Create container ${{ inputs.container-slug }}"
run: |
/usr/bin/docker create --name ${{ github.run_id }}_salt-test --workdir /_w/ --privileged -e "HOME=/github/home" -e GITHUB_ACTIONS=true -e CI=true -e $GITHUB_ENV -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work":"/__w" -v "/home/runner/work/_temp":"/__w/_temp" -v "/home/runner/work/_actions":"/__w/_actions" -v "/opt/hostedtoolcache":"/__t" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/salt-bootstrap/salt-bootstrap":"/_w/btstrap" --entrypoint "/usr/lib/systemd/systemd" ghcr.io/saltstack/salt-ci-containers/testing:${{ inputs.container-slug }} --systemd --unit rescue.target
- name: "Start container ${{ inputs.container-slug }}"
run: |
/usr/bin/docker start ${{ github.run_id }}_salt-test
- name: "Install Python Dependencies with pip breakage in container ${{ inputs.container-slug }}"
if: ${{ ( inputs.distro-slug == 'debian-12' ) || ( inputs.distro-slug == 'debian-13' ) || ( inputs.distro-slug == 'ubuntu-2404' ) }}
run: |
docker exec ${{ github.run_id}}_salt-test python3 -m pip install --break-system-packages -r /_w/btstrap/tests/requirements.txt
- name: "Install Python Dependencies without pip breakage in container ${{ inputs.container-slug }}"
if: ${{ ( inputs.distro-slug != 'debian-12' ) && ( inputs.distro-slug != 'debian-13' ) && ( inputs.distro-slug != 'ubuntu-2404' ) }}
run: |
docker exec ${{ github.run_id}}_salt-test python3 -m pip install -r /_w/btstrap/tests/requirements.txt
- name: Bootstrap Salt - name: Bootstrap Salt
run: | run: |
# sed 1st - becomes space, 2nd - becomes dot # sed 1st - becomes space, 2nd - becomes dot
bt_arg1=$(echo "${{ matrix.instance }}" | sed 's/-/ /' | sed 's/-/./' | awk -F ' ' '{print $1}') bt_arg1=$(echo "${{ matrix.instance }}" | sed 's/-/ /' | sed 's/-/./' | awk -F ' ' '{print $1}')
bt_arg2=$(echo "${{ matrix.instance }}" | sed 's/-/ /' | sed 's/-/./' | awk -F ' ' '{print $2}') bt_arg2=$(echo "${{ matrix.instance }}" | sed 's/-/ /' | sed 's/-/./' | awk -F ' ' '{print $2}')
echo "bt parms ,$bt_parms, bt_arg1 ,$bt_arg1, bt_arg2 ,$bt_arg2," echo "bt parms ,$bt_parms, bt_arg1 ,$bt_arg1, bt_arg2 ,$bt_arg2,"
docker exec ${{ github.run_id}}_salt-test sh -x /_w/btstrap/bootstrap-salt.sh "$bt_arg1" "$bt_arg2" sh -x ./bootstrap-salt.sh "$bt_arg1" "$bt_arg2"
- name: Test Bootstrap - name: Test Bootstrap
run: | run: |
docker exec ${{ github.run_id}}_salt-test pytest --cache-clear -v -s -ra --log-cli-level=debug /_w/btstrap/tests/integration/ pytest --cache-clear -v -s -ra --log-cli-level=debug tests/integration/
- name: Set Exit Status - name: Set Exit Status
if: always() if: always()

View file

@ -48,12 +48,12 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install Python Dependencies with pip breakage - name: Install Python Dependencies with pip breakage
if: ${{ inputs.distro-slug != 'macos-13' }} if: ${{ ( inputs.distro-slug != 'macos-12' ) && ( inputs.distro-slug != 'macos-13' ) }}
run: | run: |
python3 -m pip install --break-system-packages -r tests/requirements.txt python3 -m pip install --break-system-packages -r tests/requirements.txt
- name: Install Python Dependencies without pip breakage - name: Install Python Dependencies without pip breakage
if: ${{ inputs.distro-slug == 'macos-13' }} if: ${{ ( inputs.distro-slug == 'macos-12' ) || ( inputs.distro-slug == 'macos-13' ) }}
run: | run: |
python3 -m pip install -r tests/requirements.txt python3 -m pip install -r tests/requirements.txt

View file

@ -30,7 +30,7 @@ repos:
- actionlint - actionlint
- repo: https://github.com/jazzband/pip-tools - repo: https://github.com/jazzband/pip-tools
rev: 7.4.1 rev: 7.3.0
hooks: hooks:
- id: pip-compile - id: pip-compile
files: ^requirements/release\.(in|txt)$ files: ^requirements/release\.(in|txt)$
@ -41,10 +41,8 @@ repos:
rev: v3.15.0 rev: v3.15.0
hooks: hooks:
- id: pyupgrade - id: pyupgrade
name: Rewrite Code to be Py3.6+ name: Rewrite Code to be Py3.9+
args: [--py36-plus] args: [--py39-plus]
## DGM name: Rewrite Code to be Py3.9+
## DGM args: [--py39-plus]
- repo: https://github.com/asottile/reorder_python_imports - repo: https://github.com/asottile/reorder_python_imports
rev: v3.12.0 rev: v3.12.0

View file

@ -1,23 +1,3 @@
# v2025.02.24
## What's Changed
- Update requirements to address security issues by @twangboy in https://github.com/saltstack/salt-bootstrap/pull/2073
- Use treeless clone to 'shallow' clone again. by @mrichar1 in https://github.com/saltstack/salt-bootstrap/pull/2022
- Fix powershell instructions by @twangboy in https://github.com/saltstack/salt-bootstrap/pull/2074
- Remove support for macos-12, as deprecated by github by @dmurphy18 in https://github.com/saltstack/salt-bootstrap/pull/2076
**Full Changelog**: https://github.com/saltstack/salt-bootstrap/compare/v2024.12.12...v2025.02.24
# v2024.12.12
## What's Changed
- Restrict use of dnf to Fedora only, otherwise use yum when dealing with RedHat family by @dmurphy18 in https://github.com/saltstack/salt-bootstrap/pull/2070
- Updating container usage to that used in new Salt pipelines for CI/CD, fix Amazon Linux by @dmurphy18 in https://github.com/saltstack/salt-bootstrap/pull/2071
**Full Changelog**: https://github.com/saltstack/salt-bootstrap/compare/v2024.12.09...v2024.12.12
# v2024.12.09 # v2024.12.09
## What's Changed ## What's Changed

873
ChangeLog~HEAD Normal file
View file

@ -0,0 +1,873 @@
Version TBD (In Progress on the Develop Branch):
Version 2022.03.15:
* Add detection and functions for AlmaLinux and Rocky Linux (myii) #1803
* Copy configs to correct config dirs (v3004+) (dafyddj) #1798
* Support Non-LTS Ubuntu 21.04 & 21.10 (blindpirate) #1793
* Use native repositories for Debian 11 (jpacura) #1615
* Keep all command-line parameters when UAC is enabled (Simon-TheUser) #1613
* Add support for Raspbian (Jille) #1612
* Add openrc to alpine:latest dependencies (krionbsd) #1609
* Add CentOS 7 base key (bryceml) #1608
* Fix git master install on alpine 3.12+ (Nascire) #1604
* Sort help alphabetically (krionbsd) #1601
Version 2021.09.17:
* Re-add Ubuntu-16 support as it's still supported with 3001 and 3002 (krionbsd) #1594
* Add oncoming 3004 release (krionbsd) #1593
Version 2021.09.14:
* Update latest Salt version in README (krionbsd) #1588
* Make Python 3 the default (bryceml) #1577
* Don't output info if using the default -x value (bryceml) #1587
Version 2021.08.19:
* Update README with instructions to use salt-bootstrap custom version (ari) #1580
* Remove unsupported versions (bryceml) #1578
* Update FreeBSD default Python version to 3.8 (myii) #1574
Version 2021.06.23:
* Use salt.list instead of saltstack.list (bryceml) #1563
* Use fetch_url function for curl (xeacott) #1562
* Add Ubuntu 21.04 support (krionbsd) #1559
* Remove python2-futures package for ArchLinux (myii) #1546
Version 2020.03.02:
* Debian 11 (bullseye/testing) support using Debian 10 packages (jpacura, bryceml) #1514
* Fix bootstrap on Gentoo (ijansky) #1516 #1518
* Fix project URLs (bryceml) #1526
* FreeBSD also needs the _PKI_DIR reset (krionbsd) #1523
* Fix openSUSE Tumbleweed support. (myii) #1525
* Fix Debian and Ubuntu version support. (jpacura) #1529
* Powershell: Implement configure only option (for Vagrant). (dafyddj) #1530
* Powershell: Handle Vagrant's `grains_config` option. (dafyddj) #1520
* apt-key is deprecated on Debian 10+ and Ubuntu 20+ (bryceml) #1533
* Fix python Tornado on FreeBSD. (krionbsd) #1522
Version 2020.10.20:
* Add support to allow bootstrapping Salt 3002 (s0undt3ch) #1506
Version 2020.10.19:
* Fix v3000+ with git install on FreeBSD (krionbsd) #1487
* Update README giving ONE example of WINDOWS bootstrapping. Default to python3 instead of
python2. (noelmcloughlin) #1496
* Support git and stable salt-bootstrap on Gentoo. (ijansky) #1500
* Add support for Linux Mint 20. (taigrr) #1502
* Adding missing functions for Red Hat 8. (mbochenk) #1489
* Allow pinning minor 3xxx versions. (max-arnold) #1491
Version 2020.06.23:
* Fix for Cumulus Linux 4.1 (darylturner) #1474
* Fix file download exit code, improve error message on failed download (bryceml) #1478
* Add support for Ubuntu 20.04 (bryceml) #1479
* Default Ubuntu 20.04 to Py3 since there isn't a Py2 release for it (bryceml) #1480
* Warn instead of exit when using -R and -x python3 on centos to allow installing python3
versions of salt on centos from other repos. Old unsupported releases probably need to
manually install epel-release before running the bootstrap script for versions before 2018.3.5
and before 2019.2.1 (bryceml) #1482
* Start maintaining .sha256 files for the bootstrap script
Version 2020.05.28:
* Fix Opensuse Tumbleweed (noelmcloughlin) #1441
* Remove Debian 8 from Python 3 supported list (jay1648) #1448
* Fixed deps parsing for FreeBSD git installs (cedwards) #1462
* Added support for the upcoming Sodium release (s0undt3ch) #1466
* Fixed KDE Neon detection (ender8282) #1466
* Updated README python 2 and 3 installations (gdebunne) #1466
* Updated README and CONTRIBUTING to prefer Salt's master branch (DmitryKuzmenko) #1466
* Fixed IUS repo addresses (oeuftete) #1469
* Updated tests to assert target Python and Salt versions (s0undt3ch) #1470
* Fixed Amazon 2 -x support (s0undt3ch) #1470
* Fix Fedora stable installs for older releases (s0undt3ch) #1470
* Fix CentOS 8 installations (s0undt3ch) #1470
* Default Debian 10 to Py3 (s0undt3ch) #1470
* Fix Arch Linux installs (s0undt3ch) #1470
Version 2020.02.24:
* Fix SLES 15 install (max298) #1431
* Fix 3000(Neon) stable install (sblaisot) #1433
* Fix Amazon Linux Py3 install (s0undt3ch) #1434
Version 2020.02.04:
* Add support for the Salt Neon(3000) release (s0undt3ch) #1424
* Drop support for Fedora < 30 (s0undt3ch) #1424
* Drop support for Debian < 8 (s0undt3ch) #1424
Version 2020.01.29:
* FreeBSD fixes (cedwards) #1413
* Support the upcoming Neon release (s0undt3ch) #1420
Version 2020.01.21:
* FreeBSD fixes (kgbsd) #1376
* Fix macOS support (s0undt3ch) #1397
Version 2019.11.04:
* Fix busybox mktemp compatibility (stanzgy) #1369
* Install debian 10 packages on debian 10 instead of 9 (kiemlicz) #1375
* move centos to python36, use python specified by -x (Ch3LL,bryceml) #1380
* Add debian 10 git install support (Ch3LL) #1378
Version 2019.10.03:
* Fix possible typo with `gnupg-curl` vs `gnupg curl` (zahiar)
* Install only python3 packges if requested on ubuntu (noelmcloughlin) #1356
* Fixing debian wheezy (bryceml) #1359
* Fixed Amazon Linux 2 detection when lsb_release is installed (jars99) #1361
* Mac OS Support (felippeb) #1363 #1364 #1365 #1366
Version 2019.05.20:
* Allow stable version selection for amazon linux (puluanau) #1328
* FreeBSD 12 support (sticky-note) #1329
* Apt wait for lock modification (ripesensor) #1335
* Opensuse 15 Git installation fixes (s0undt3ch) #1340 #1341
* Amazon Linux Image fixes (nshenry03) #1343
* apt_key_fetch fixes (greut) #1344
* CentOS Git and PIP installation m2crypto fixes (s0undt3ch) #1347
* CI process enhancements/fixes (s0undt3ch) #1347
Version 2019.02.27:
* Add support for bunsenlabs devian derivative (kevinquinnyo) #1300
* Add support for TurnKey devian derivative (dafyddj) #1313
* Fix BSD develop install (hackacad) #1316
* Ensure python-concurrent.futures is installed for Ubuntu (garethgreenaway) #1321
Version 2019.01.08:
* use official amazon linux 2 repo for amazon linux 2 (mchugh19) #1287
* Add release info to applicable docs (rallytime) #1292
* Modify wait_for_apt function (ripesensor) #1291
* Add support for LinuxMint 19 (darkocerdic) #1289
* FIX #1237 SmartOS should use pkgin show-deps (sjorge) #1283
* Fedora: Reduce DNF calls to 2 during install_dep phase (The-Loeki) #1278
Version 2018.08.15:
* Add tests using kitchen-salt (gtmanfred) #1279
* Add python-futures to Py2 installs (gtmanfred) #1279
Version 2018.08.13:
* Fedora Py3 fixes (The-Loeki) #1273
* Handle commented lines in the requirements files for pip pkgs (rallytime) #1271
* Remove typo: extra 'c' was accidentally added in #1269 (rallytime) #1270
* [Arch] Add python2-futures to list of pkgs on git install (rallytime) #1269
* Fix undefined variable warn_msg on amd64 (alexandruavadanii) #1268
* SLES12SP changed packages git to git-core and libzmq3 to libzmq4 (mfapouw) #1266
* Add opensuse 15 specific installation functions (rallytime) #1263
* Remove support for openSUSE Leap 42.2 (rallytime) #1262
* Remove support for Fedora 26 (rallytime) #1261
* Remove support for Ubuntu 17.10 (rallytime) #1260
* Ensure pipe is absent before mkfifo/mknod (noelmcloughlin) #1256
* fix for opensuse15 if no lsb_release pkg (noelmcloughlin) #1255
* Fix Up ShellCheck errors/warnings for latest version of shellcheck (rallytime) #1253
* Remove daily install option on Ubuntu system (icy) #1250
* Add python 3 support for Ubuntu 18 (rallytime) #1248
* Return immediately if apt-get fails (icy) #1247
* Disable shell error about unbound variable during daily install (icy) #1246
* OpenSuse_Leap_15.0 saltstack repo support (noelmcloughlin) #1244
* Add Python3 package support for Debian 9 (rallytime) #1243
* Add Python3 package support for CentOS 7 (rallytime) #1242
* Shellcheck fixes found when running latest version (rallytime) #1239
* Add Python3 package support for Ubuntu 16.04 (rallytime) #1238
* Fix the variable ref from #803 (rallytime) #1229
* Add Ubuntu 18.04 support (rallytime) #1228
* Call __git_clone_and_checkout directly (jheidbrink) #1226
* Fix for silently ignored version argument on CentOS/RHEL (pjcreath) #1210
Version 2018.04.25:
* Install py-tornado4 for FreeBSD. (abednarik) #1219
* Remove COPR repos configuration for Fedora (vutny ) #1211
* Fix for silently ignored version argument on CentOS/RHEL (pjcreath) #1210
* Use integer parameter for sleep command (bdrung) #1205
* Add 2018.3 branch to list of stable options (rallytime) #1204
* If installing with -P, install tornado<5.0. (rallytime) #1203
* Add M2Crypto to python27 centos 6 bootstrap install (Ch3LL) #1201
* Update README to include mention of bootstrap-salt.ps1 for Windows (rallytime) #1200
* Port spelling fixes from change in Salt to Bootstrap (rallytime) #1199
* Add M2Crypto package back to git install functions (rallytime) #1198
* OpenBSD has a cdn which handles selecting the best mirror (jasperla) #1197
* Change gnupg2 pacakge to gnupg for non-LTS versions of Ubuntu (rallytime) #1196
* Install swig30 as freebsd dep instead of swig. (abednarik) #1191
* make salt-syndic optional on salt bootstrap (sybix) #1190
* Add __wait_for_apt function: avoid locking on the apt-get process (rallytime) #1186
* Update the README.rst file with some grammatical changes (rallytime) #1185
* Update Fedora support: 25 is EOL, 27 is supported (rallytime) #1184
* Add a note about the use of sudo when running commands to README (rallytime) #1183
* Adding support for minor release pinning on AWS Linux (cmclaughlin) #1182
* Wait for zypper processes to finish before calling zypper again (rallytime) #1181
* only install ca-certificates on opensuse if it isn't already installed (gtmanfred) #1179
Version 2017.12.13:
* Use HTTPS URL for OpenSuse's saltstack repo (gdm85) #1174
* Respect disable repos (-r) option on OpenBSD (eradman) #1171
* Fix #1168 : -b option causes error (vutny) #1170
* Fix fatal error with using the -b option. (arizvisa) #1169
* Devuan support (ymasson) #1165
* Fix yum repo on AWS Linux (cmclaughlin) #1164
* Use suse repo to install packages, rather than defining them (rallytime) #1157
* Remove patch-level-1 specific code for SLES installs (rallytime) #1156
* priority sort fedora-release (toanju) #1153
* Declare EOL for SUSE Linux Enterprise Server releases (vutny) #1150
* Fix #1142: allow git install on Raspbian 9 (vutny) #1146
* Follow symlinks when parsing distro release files (vutny) #1145
* fedora: use dnf-utils for F26 and above (toanju) #1144
* Declare EOL for openSUSE LEAP 42.1 (vutny) #1143
* Fix #1137: import GPG key through an HTTP(S) proxy (vutny) #1139
* Fix #1138: git install on Debian/Ubuntu various arches (vutny) #1141
* Declare EOL for openSUSE releases earlier and including 13.X (vutny) #1136
* Update Fedora support: 24 is EOL (rallytime) #1134
Version 2017.08.17:
* Add new authors (rallytime) #1130
* README: Fix typo and Table of Contents for Debian section (vutny) #1129
* Reduce the # of days an issue is stale to 6 months (rallytime) #1125
* Only install Python version if "-y" is defined (rallytime) #1124
* Allow powershell bootstrap script to specify PY2 or 3 (rallytime) #1123
* Remove the test that checks if the EPEL RPM was installed (amendlik) #1122
* added latest version string of nitrogen release 2017.7 (sourceindex) #1120
* use versions specified in base.txt when doing pip installs (aflat) #1116
* Remove pip install requirement on Fedora git installs (rallytime) #1114
* Introductory support for Debian 10 (Buster) (rallytime) #1113
* Add Debian 9 support using official repo.saltstack.com packages (rallytime) #1111
* Fix 1105 (vernondcole) #1110
* Move SUSE specific function closer to related code (vutny) #1107
* Update Authors file (rallytime) #1103
* Fix ubuntu 16.04 LTS installation (BlaineAtAffirm) #1102
* Add debian_codename_translation function, similar to Ubuntu (rallytime) #1101
* Add the CODE_OF_CONDUCT.md file (rallytime) #1100
* Update Debian and Ubuntu service file paths to be consistent with salt (rallytime) #1099
* Add hash verification information to installation instructions (rallytime) #1098
* Fix installing salt-cloud package on Arch Linux (rallytime) #1097
* Support bootstrapping on upcoming Debian GNU/Linux 9.0 (vutny) #1096
* Removes faulty explicit version ordering (absolutejam) #1095
* Remove configuring EPEL repo for Amazon Linux (vutny) #1093
* Fix -j/-J (JSON configs) options for Debian 8 (vutny) #1092
* Fix #1035: detect and log errors earlier (vutny) #1091
* Update AUTHORS file (rallytime) #1089
* Autounmask as separate step (decomposite) #1088
* Ensure presence of CONFIG_PROTECT_MASK files (decomposite) #1087
* Update Fedora support: 23 is EOL now. (rallytime) #1084
* Fix the -R option on Debian/Ubuntu (rallytime) #1082
* Declare End-Of-Life for Ubuntu 12.04 LTS (vutny) #1080
Version 2017.05.24:
* Use freebsd repo to query for salt dependencies (Ch3LL) #1076
* Allow amazon to work with python2.7 on installs over 2016.11 (Ch3LL) #1073
* ensure sles12 enables services with stable installs (Ch3LL) #1075
* Declare End-of-Life for RHEL 5 and its variants (vutny) #1070
* Fix configuring SaltStack's repo URL for RHEL variants (vutny) #1068
* Add Manjaro as Arch derivative (luthes) #1063
* Add "unmarkComment" option to probot-stale config (rallytime) #1064
* Properly detect all supported Debian GNU/Linux derivatives (vutny) #1062
* Archlinux must always update (gtmanfred) #1060
* Alpine: fix adding, checking and running Salt Syndic in stable mode (vutny) #1059
* Add KDE neon... (EHJ-52n) #1058
* Update probot-stale message formatting. (rallytime) #1057
* Fix `git` bootstrap mode for CentOS (vutny) #1054
* update install_freebsd_10_stable to use FreeBSD repo (bytesatwork-xx) #1053
* Support OpenBSD 6.1 (eradman) #1048
* Update daysUntilStale value in probot-stale config (rallytime) #1055
* Add ability to install and use a different python version when installing salt (Ch3LL) #1049
* Add non-LTS type support for Ubuntu 17.04 (rallytime) #1051
* Allow -R option to work for Debian/Ubuntu (rallytime) #1045
* Adjust "daysUntilStale" variable to 190 days. #1047
* Reduce the number of days an issue is considered "stale" (rallytime) #1046
* Alpine: fix bootstrapping from Git -- install OpenRC initscripts (vutny) #1044
* Add probot-stale config file (rallytime) #1042
* Shallow cloning and Python setup fix for BSD (amontalban) #1040
* Fix not needed quoting for salt/salt-bootstrap#1026 (amontalban) #1039
* Update README file with supported release documentation (rallytime) #1034
* Remove <<< bashism (The-Loeki) #1032
* [-R option] Fix logic error where we trying to enable epel with -R (rallytime) #1033
* Alpine: check Salt services have been enabled to start on boot (vutny) #1031
* AWS Linux Native Support (bkruger99) #1022
* Correct package name for FreeBSD installation (amontalban) #1030
* README: describe architectures support for Salt deps on Linux distros (vutny) #1029
* This commit addresses some of the issues in salt/salt-bootstrap#996 (amontalban) #1026
* Add support for stable installation on Alpine Linux release 3.5 (vutny) #1028
* Alpine Linux: fix installation of multiple pkgs ("stable" bootstrap) (vutny) #1027
* Add Void Linux support (ndrwdn) #1025
* RHEL6: disable stdin to fix shell session hang on killing tee pipe (vutny) #1018
* Adding 2016.11 to stable version (ashokrajar) #1017
* Update bootstrap-salt.sh (caelor) #1015
* Alpine Linux support #1009 (ek9) #1010
* Add Table of Contents in README (vutny) #1014
Version 2017.01.10:
* Update AUTHORS.rst with new contributors (rallytime) #1011
* fix bootstrap in Arch Linux by updating package name from salt-zmq to salt (ek9) #1007
* Add python-systemd package to debian 8 git install (rallytime) #1003
* Updated supported versions for Ubuntu: 12.04, 14.04, 16.04, and 16.10 (best effort) (rallytime) #1002
* Add "yakkety" to ubuntu_codename_translation function (rallytime) #1001
* Update supported versions for Fedora: 23, 24, and 25. (rallytime) #1000
* Handle renaming of gnupg-curl to gnupg1-curl for Ubuntu 16.10 (marco-m) #998
* fix systemctl path (dmitrievav) #997
* Drop unnecessary workarounds (creating directories) for early releases (vutny) #995
* Let's detect newly released Salt 2016.11 stable release (vutny) #994
* Adjust code examples to use the actual bootstrap-salt.sh file name (rallytime) #993
* Install TLS certs before cloning git repo via https (vutny) #991
* Remove fix me comment and fix systemsmanagement link (rallytime) #990
* Correct usage description about "config only" mode (vutny) #989
* Fix overwriting Minion config from temporarily directory (vutny) #988
* Configure Salt components after the dependencies installation (vutny) #987
* Add CloudLinux support (rallytime) #986
* Apply the insecure flag to git as well (cachedout) #981
Version 2016.10.25:
* Update AUTHORS.rst with new contributors (rallytime) #978
* Let's start detecting the upcoming Debian 9 (Stretch) (lhost) #975
* FreeBSD: set _SALT_ETC_DIR directory to match ports (eradman) #970
* Update OpenBSD 6.0+ provisioning (eradman) #969
* adds supports for Cumulus Linux (plumbis) #967
* Run "pip install -U futures" for SmartOS git install (rallytime) #966
* Change /pkg/rpm/ to /pkg/deb/ in install_ubuntu_git_post func (rallytime) #965
* SUSE: Refactor systemsmanagement_saltstack repo checks to be DRY (rallytime) #964
* Fix detection of EPEL repository with not-expired metadata (sp1r) #963
* Display warning message about deprecating the `-G` option (vutny) #958
* Allow correct salt paths to be used when -c is passed (justinta) #955
* Fix issues with replacing configs when python3 is default in os. (fizmat) #954
* Remove m2crypto package installs (rallytime) #951
* Try to install SP4 packages on SLE 11 when SP version is older (rallytime) #950
* Add python-futures package to install_centos_git_deps (rallytime) #948
* Add /etc/portage/package.accept_keywords to CONFIG_PROTECT_MASK (rallytime) #947
* Deprecate `-G` option: use `https` scheme for GitHub by default (vutny) #945
* [SECURITY] Properly handle GnuPG keys for APT repositories (vutny) #940
Version 2016.08.16:
* Ubuntu git mode: install all deps from SaltStack corp repo by default. (vutny) #936
Version 2016.08.15:
* Remove chris-lea python-zmq repo. (rallytime) #929
* Disable the '--enablerepo=${_EPEL_REPO}' part of yum install cmds when passing -R/-r. (rallytime) #928
* Fix grep pattern in `__check_services_sysvinit`. (vutny) #927
* Missing python dependency for salt-cloud added. (toanju) #925
* Fix git install mode when using commit hash with `-g` option. (vutny) #922
* Install `salt-cloud` package with `-L` option in `stable` mode. (vutny) #919
* Fix bootstrapping from Git on CentOS7 when `systemd` is not running. (vutny) #915
Version 2016.07.07:
* Add new contributors to authors list. (rallytime) #910
* Split up python-requests and python-msgpack packages for newer Fedora. (rallytime) #909
* Fix typo in repository configuration for FreeBSD. (ekollof) #907
* Make sure $STABLE_REV is set before setting up SaltStack repo. (rallytime) #906
* Remove tests written question from template. (rallytime) #904
* Adding support for Linux Mint 18 (based on Ubuntu 16.04). (eliezerlp) #902
* Allow git installation for SLES 12. (rallytime) #903
* Set repo_arch for raspberry pi installs. (mrichar1) #899
* Change temporary directory for storing executable to C:\Windows\Temp. (themalkolm) #897
* add apt-transport-https for ubuntu. (epcim) #896
* Fix expanding shell script position parameters with nounset enabled. (vutny) #895
* RFC: Add tests for bootstrap-salt.ps1. (themalkolm) #893
* Keep original name of salt executable executable. (themalkolm) #857
Version 2016.06.27:
* Fix race condition when doing one-liner bootstrap. (vutny) #889
* Add space back in between 'install' and '--install'. (rallytime) #890
Version 2016.06.24:
* Save invocation command and arguments into variables. (jfindlay) #885
* Update the authors list with new contributors. (rallytime) #884
* Add option to make setup.py install quiet. (nasenbaer13) #865
* Fix lint. (jfindlay) #881
* Add -R option to allow a custom repo URL. (rallytime) #877
* Exclude path of script when called from another dir. (l2ol33rt) #871
* Print invocation info. (jfindlay) #869
* Always refresh the Arch Linux keyring if needed. (cachedout) #868
* Ubuntu 16.04 LTS Xenial Support. (notpeter) #852
* Install Salt packages from repo.saltstack.com on Debian 7 "Wheezy". (vutny) #864
* Drop support for Debian 6 old-old-stable "squeeze": reached end-of-life. (vutny) #860
* Removed ubuntu version restriction for apt-get update. (marccardinal) #859
* Fix bootstrapping from git on Debian 8 by installing latest `tornado` via pip. (vutny) #828
* Add the ability to override master and/or minion configs from CLI. (rallytime) #841
* Don't sleep 11 seconds if the user allowed overwrite of config files. (poelzi) #832
Version 2016.05.11:
* Only overwrite the minion config file if '-C' is passed. Otherwise, preserve it. (rallytime) #848
Version 2016.05.10:
* Removed libzmq4 and forking-deamon-patch for Opensuse13. (jtand) #840
* Ubuntu 12.04 needs to be updated before installing packages. (jtand) #829
* Always download and install *latest* `epel-release` package on RHEL systems. (vutny) #825
* Fix Amazon Linux EOL check. (vutny) #818
Version 2016.04.18:
* Add support for openSUSE Leap. Thanks Roman Inflianskas(rominf). #693
* Fix missing deps installation on Debian. Thanks Steve Groesz(wolfpackmars2). #699
* Update SaltStack repo location and latest version for Windows. (brandon099) #711
* Better EPEL repository detection on RHEL and CentOS. (vutny) #717
* Fix git invocation fail when `man` command is not available. (vutny) #718
* Fix `epel-release` package installation on CentOS/RHEL 5. (vutny) #719
* Removed deprecated cli option. (abednarik) #705
* Remove RHEL optional repo check and enable. (vutny) #720
* Remove SaltStack COPR repository configuration for CentOS/RHEL5. (vutny) #721
* Add opensuse_Tumbleweed support. (aboe76) #725
* Sometimes bootstrap doesn't install zmq. (jtand) #726
* Process -s (default sleep for service restarts) in bootstrap-salt.sh. (hipikat) #692
* Minion keys and /etc/salt/minion should be overwritten on -C. (cro) #541
* Fix for -C (_CONFIG_ONLY). (beaucephus) #544
* Fix when using upstream tags. (The-Loeki) #564
* COPR project moved. (rmohr) #738
* Update license year range. (pra85) #743
* Use POSIX-Compliant Command-Exists Test. (kojiromike) #741
* Add -f option to force shallow cloning. (eyj) #660
* add SLE 12 support, fix OpenSUSE support. (grep4linux) #748
* Fix CentOS git setup.py syntax error upon installation. (The-Loeki) #746
* Enable shallow cloning for version branches by default, not only tags. (vutny) #750
* do not install copr repo on fedora 22+. (toanju) #751
* Add support for pegged versions on YUM based OS'ses through repo.saltstack.com. (The-Loeki) #685
* fix for FreeBSD 11 CURRENT install functions. (serge-p) #723
* Don't add zypp repo if it already exists. (furlongm) #731
* switch repositories for suse and sles fixes `#706`_. (aboe76) #734
* Reformat and correct usage instructions. (vutny) #755
* fixed missing repo for suse 12. (aboe76) #756
* fix for Amazon Linux. (shawnbutts) #700
* adding support for OpenBSD distribution. (serge-p) #722
* fixing syntax errors. (beardedeagle) #760
* Import CentOS 7 GPG key on RHEL for installing base dependencies from Salt corp repo. (vutny) #765
* Fix multiple lint errors (shellcheck) and make some refactoring. (vutny) #768
* Fix sleep time option to recognize a numeric argument. (vutny) #771
* Update README. (vutny) #787
* get tornado from pip on a fedora git install. (jfindlay) #785
* Remove the Saltstack repo's alias. (cro) #794
* Ability to change cache dir. (clarkperkins) #761
* Add config_freebsd_salt func so freebsd puts cfgs in the right place. (ryanwalder) #779
* Allow archive versions. (clarkperkins) #769
* Lack of HTTPS for RPM packages. (jaredestroud) #783
* Ability to change cache dir. (clarkperkins) #761
* Bootstrap on Docker. (vutny) #793
* add downstream pkg repo for SUSE. (jfindlay) #791
* Fixed use of HTTP over HTTPS for anonscm.debian.org. (gdm85) #788
* Bump Salt version to latest stable in PS bootstrap script for Windows. (vutny) #801
* Add an -l option to switch https to http links. (rallytime) #795
* Virtualenv support for Ubuntu. (l2ol33rt) #666
* Lint. (jfindlay) #805
* use portable command check. (jfindlay) #806
* Update epel-release version number (RuriRyan) #809
Version 2015.11.09
* Make sure that wget is installed. #868
Version 2015.11.04:
* Allow bypassing dependencies installation. Thanks EYJ. #656.
* Add FreeBSD 11 support. Thanks Chris Buechler(cbuechler). #653
* Move RHEL installations to use repo.saltstack.com #674
* Move Debian 8 installation to use repo.saltstack.com #674
* Fix error finding python-jinja2 in RHEL 7. Thanks Rob Eden(hedinfaok). #654
* Move Ubuntu 12 and 14 installations to use repo.saltstack.com #674
* Move FreeBSD installations to use repo.saltstack.com #674
* Use dnf on Fedora 22 and later. Thanks Michele Bologna (mbologna). #665
Version 2015.08.06:
* Fix python-requests installations for Ubuntu >= 14.04 LTS. #631, #632, #633
* Install python-crypto from Chris Lea's PPA for Ubuntu < 14.04
* Exit the git checkout directory before deleting it. Thanks Bret Fisher. #634
* Use prefix /usr for centos git install. Thanks Stanislav B. #638
* Drop Ubuntu EOL versions. All Ubuntu version before 12.04.
* Make sure python-dev is installed wheb trying to install tornado from PyPi. #640
Version 2015.07.22:
* Fix tornado installation in Ubuntu. Thanks Yushi Nakai. #627
* Install tornado using pip on Ubuntu for Salt's v2015.8.xx onward stable releases.
* Install requests on Ubuntu from Chris Lea's PPA. #630
Version 2015.07.17:
* Make sure setuptools is installed before using it. #598.
* `systemd` is only fully supported from 15.04 onwards. #602
* Fix debian mirrors issue. Thanks Wolodja Wentland(babilen). #606
* Fix python-jinja2 repo move on RHEL6. Thanks lomeroe. #621
* Allow skipping services. Thanks denmat. #455
* Fix missing Debian init script. #607 saltstack/salt#25270 and saltstack/salt#25456
* Fix SmartOS etc path. Thanks Bret Fisher. #624
* Fix possible unbound variable in Gentoo. #625
* Properly detect the git binary in SmartOS. #611
Version 2015.05.07:
* Lower required requests version dependency. Use system requests package where possible.
* Allow Ubuntu alternate ppas. Thanks Peter Tripp(notpeter). #563
Version 2015.05.04:
* Fix the configuration path for FreeBSD. #567/#552. Thanks Ronald van Zantvoort(The-Loeki).
+ Fix non grouping support in POSIX sed. Thanks Ronald van Zantvoort(The-Loeki).
* Add Debian 8 support. Thanks Matt Black(mafrosis)
* Improve Debian version parsing. Thanks Mark Lee(malept)
* Make sure we update packages list one Chris Lea's PPA repository is added.
* Hard code the Debian Squeeze backports to the DE mirror since the main repository is down.
Thanks @panticz. #589.
* Only install git if not already installed. #560
* Fix openSUSE 13.2 where we need to pass --replaceflags. Thanks Roman Inflianskas(rominf).
#504.
* Make sure that a recent enough requests package is installed in Debian/Ubuntu.
* Install tornado on git installs for the develop branch if necessary. #580
* Add support for Ubuntu 15.04
Version 2015.03.15:
* Add multi-master support. Thanks Fred Reimer(freimer). #555
Version 2015.03.04:
* Fix the salt package selection on Arch stable installs.
Version 2015.02.28:
* Fix Debian backports repository.
Version 2015.02.27:
* Try other tools besides wget when downloading the COPR repo file. Thanks Ronald van
Zantvoort(The-Loeki)
* No need to install packages from the Unstable repository for debian, use backports. Thanks
Ari Aosved(devaos)
* Fix an issue in CentOS where the syndic package wasn't being installed(since it's now a
separate package). Thanks Ronald van Zantvoort(The-Loeki)
* Enable the server-optionals repository for RHEL >= 7
* RHEL/CentOS 5 now uses the COPR repository. #533
Version 2015.01.12:
* Add package upgrades support to FreeBSD. Thanks William Eshagh(eshagl).
* Make sure wget is installed on debian bare systems.
* Make sure the Arch pacman database is up to date
* Install `python-hashlib` in CentOS 5 in order to use the COPR repository
Version 2014.12.11:
* Enable binary installations on CentOS 7. Thanks ggillies
* Updated the URL for EPEL 7
Version 2014.10.30:
* Apply the forking patch to openSUSE git installations.
Version 2014.10.28:
* Install the python systemd bindings for Arch and Fedora git installations
* Allow cloning from Salt's git repository using HTTPS. #475
Version 2014.10.21:
* Fix path to python on FreeBSD. Thanks Pavel Snagovsky(paha)
* Fix syndic installation on RHEL based installations. Thanks markgaylard
* Properly detect the git checkout `basename` directory instead of hard coding it. Thanks
Howard Mei(HowardMei).
* Allow installing ZMQ for SaltStack's COPR repository.
* Allow installing ZMQ4/PyZMQ14 from Chris Lea's PPA repository.
Version 2014.10.14:
* Fixed a regex issue with matching Salt's tags. Match v2014.7 but not 2014.7 as a valid tag
* Distro Support Added:
* Added Linux Mint 17 support(Thanks Skyler Berg)
* Disrto Suuport Fixed:
* Init pacman keys if not done so previously
Version 2014.09.25:
* Properly detect Amazon AMI's >= 2014.9. #468
Version 2014.09.09:
* Distro Support Fixes:
* Updated the URL for EPEL 7
* PIP based installations on Ubuntu 10.04 need setuptools installed
* Arch stopped providing the version information on `/etc/arch-release`
* Complete `salt-api` services checking. #450
Version 2014.08.30:
* Skip service checks for `salt-api`, since this should be an opt-in service not necessarily
meant to start at boot time.
* Distro Support Fixes:
* Also install the salt-api service on RHEL based distributions for git based
installations.
* Properly detect Arch Linux when lsb-release is available
* Updated the URL for EPEL 7
Version 2014.08.23:
* Avoid redirect breakage when installing EPEL with rpm on RHEL 5
* Ensure python-apt is installed by the bootstrap script for Debian & Ubuntu minions. Thanks
@garethgreenaway.
* Don't shallow clone on git versions lower than 1.7.10
* Only shallow clone on git tag based installations
* Configurable Salt repository clone directory for git based installations
* Distro Support Fixed:
* Fixed the URL to download EPEL for Cent 5
* Use the full path to the `chkconfig` binary when checking for services in SysV init
systems.
* Fixed an issue where the default sleep period(3 secs) on Ubuntu would cause a race
condition with upstart wherein the package installation would call an upstart start and
before it could complete, bootstrap would call another. The result was *two* copies of salt
running which ended up causing a most stubborn bug that's documented in
https://github.com/saltstack/salt/issues/12248
Version 2014.07.29:
* Shallow clone Salt's repository for speed improvements. In case of failure, resume old
behaviour.
* Fixed bug introduced in 0577622 when salt-api service install and checks were added
* Distro Support Fixed:
* Fixed infinite loop when handling RHEL dependencies. Thanks Dan Mick(@dmick).
Version 2014.07.27:
* Amazon Linux AMI 2010.xx is not explicitly not supported.
* Install the `salt-api` scripts if available when the `salt-master` is also installed.
* Added support for a configurable sleep time when starting, restarting and checking for
enabled services.
* Drop the `tsflags` requirement for RHEL and RHEL based distributions.
* When sorting release files, oracle-release has higher priority than redhat-release.
* Distro Support Fixed:
* Debian >= 7 uses system's python-requests package, not PIP
* Install 'python-zypp' in SuSE and openSUSE(required by Salt's zypper module)
* Only install EPEL on requiring distributions if not already installed
* CentOS 7 now uses systemd and the script now properly handles it
* systemd in openSUSE 12.2 complains if service does not contain `.service``
* Properly detect openSUSE using `lsb_release
* SLES 11 SP3 ships with both python-M2Crypto-0.22.* and python-m2crypto-0.21 and we will
be asked which we want to install, even with --non-interactive. Let's try to install the
higher version first and then the lower one in case of failure.
* Allow some extra time on RHEL for the optionals repo check in case the repository
subscription is being managed externally.
Version 2014.06.30:
* Distro Support Fixed:
* Bump build/maintenance version for epel-release package. Thanks Gregory Meno(GregMeno)
* Properly detect Amazon Linux AMI when using `lsb_release`
* Fix `tsflags` installation.
Version 2014.06.28:
* Fixed `tsflags` packages detection for RHEL and Oracle Linux 6.5
Version 2014.06.21:
* Also export the HTTPS proxy environment variable. Thanks Giuseppe Iannello(gianello).
* Distro Support Fixed:
* Improve Oracle Linux Server detection
* Overcome the Oracle Linux awkwardness. `--enablerepo=XYX` disables ALL OTHER REPOS!!!!
* Oracle Linux also support testing repositories installation
Version 2014.06.19:
* Allow passing the master address as an environment variable, `BS_SALT_MASTER_ADDRESS`
* Fixed an issue with the keys pre-seed. We were passing absolute paths where we only needed
basenames.
* Added HTTP proxy configuration support. Thanks Giuseppe Iannello(gianello),
* Distro Support Added:
* Elementary OS
* RHEL 7 Beta/RC
* Kali Linux. Thanks Valentin Bud(valentinbud)
* Distro Support Fixed:
* Improved RHEL optionals repository detection
Version 2014.04.16:
* Fixed a bug for RHEL 6 based distributions where yum-utils was not getting installed.
* Added minor version check for RHEL 6 optional channel.
* Added quotes around "apache-libcloud>=$_LIBCLOUD_MIN_VERSION" for proper version requirements
handling.
* Install the python 'requests' package which is now a hard dependency in Salt.
* When installing from a user defined repository add the official one as a remote and fetch
its tags for proper versioning.
* Distro Support Fixed:
* CentOS netinstall ISO's don't install `chkconfig`
* Improved RHEL optional repository detection. This allows user repository usage, which
don't need the optional repository support since they usually provide their packages.
* Distro Support Added:
* Oracle Linux
* Scientific Linux
Version 2014.03.10-1:
* Distro Support Fixed:
* Fix the Debian services running function
Version 2014.03.10:
* Debian based distributions which don't use upstart now also check if the salt services are
enabled.
* Distro Support Fixed:
* RedHat based distributions now have a proper services enabled checker.
Version 2014.02.27:
* Fixed a bug on the services enabled function searching logic.
* Arch, Fedora, openSUSE and SuSE now check for services enabled, if using systemd
* CentOS(and any RedHat based) and Ubuntu now check for services enabled is using upstart
* Distro Support Added:
* Debian 8. Thank You Boris Feld(Lothiraldan).
Version 2014.02.19:
* Fixed a problem with the quotes of an error message
* Arch installations now uses the community repository
* Distro Support Fixed:
* Fixed Fedora Git based installations(git was not being installed)
Version 2014.02.18:
* Debian based distribution now get a warning stating that NOT starting daemons does not work
as supposed, mainly because that's the Debian policy.
* Fix bug introduced when implementing the master ip flag. The default minion includes
directory is `minion.d`, not `minion.conf.d`
Version 2014.02.16:
* The script now allows setting up the salt-master address as a separate configuration file by
passing `-A` to the script.
* Add support to install apache-libcloud by passing the `-L` flag. In some distribution it's
also needed to pass `-P` because the minimal apache-libcloud version is `0.14.0`. This support
is still missing for FreeBSD and SmartOS.
* Fixed an issue when copying or moving files. We now test to see if the destination is a
directory and create a full path from that so that the "do not override" logic works as
supposed. #294.
* Allow passing additional package names to install while installing Salt's dependencies. #262
* Pass the salt configuration directory, default or from environment variable to the setup.py
script for git based installations. #305
* Distro Support Fixed:
* FreeBSD `fetch` now has a notion of insecure certificates. Handle this properly. Thank
You Mike Carlson(m87carlson).
* Arch, openSUSE and SuSE are now upgradable when the `-U` flag is passed.
* Force overwrites now works for existing init.d scripts on CentOS git installations. #259
* Distro Support Added:
* FreeBSD 10 is now also supported. Thank You Mike Carlson(m87carlson).
* Red Had Enterprise Workstation is now supported.
Version 1.5.11:
* Fixed an out of scope variable missed when moving functions around.
Version 1.5.10:
* Salt no longer has the master branch in git, install from develop as default.
* Installing from Git on Red Hat based distributions now also needs `yum-utils` installed.
* Allow the script to use a different git repository to install from.
* Fixed a bug where a branch name with dashes would be wrongly detected as an option to the
script.
* Default to secure file downloads(if any).
* Distro Support Fixed:
* Minimal Ubuntu installation might not have upstart installed, fixed.
* FreeBSD now uses the official FreeBSD repository. Thank You Paul Brian(lifeisstillgood)!
Version 1.5.9:
* Allow to not start the daemons after bootstrapping salt. This will allow `vagrant-lxc`
installations, `debootstrap*`, etc, to finish properly. Thanks Henrik Holmboe (holmboe).
* Distro Support Fixed:
* Salt >= 0.17 requires ElementTree which is on the python standard library after python
2.6 but openSUSE split that into a separate package.
* Fixed a logic preventing proper Ubuntu bootstrapping on some situations.
Version 1.5.8:
* Fixed an Ubuntu regression. `add-apt-repository` is only available on
`software-properties-common` after 12.10, inclusive. Thanks Diego Woitasen(diegows)
Version 1.5.7:
* For RedHat based distributions which rely on `epel`, the user can now pass `testing` to the
script and `epel-testing` shall be used to bootstrap salt and it's dependencies.
* No full system upgrades, if optional by the distribution, shall be done unless `-U` is passed
to the bootstrap script(required upgrade procedures must exist on the script, currently Debian
and RedHat based distributions support system upgrades).
* Fixed an issue where passing BS_KEEP_TEMP_FILES=1 to the script was causing an error. #206.
* Switched FreeBSD default packages repository to PCBSD(http://www.pcbsd.org) and added
multiple repository support to install salt from the SaltStack's FreeBSD repository. Thanks
Christer Edwards(cedwards).
* Improved Gentoo Support. Thanks Elias Probst(eliasp).
* Stop execution soon for end of life distributions or non supported distribution versions.
* Distro Support Fixed:
* Fixed an unbound variable while bootstraping Gentoo.
* Fixed CentOS/RHEL 5.
* Fixed crypto++ compilation. Thanks Kenneth Wilke(KennethWilke)!
* Fixed FreeBSD git installations not pointing to the proper salt configuration directory,
which on FreeBSD is '/usr/local/etc/salt'.
* Fixed testing installation for Red Hat based distributions. Thanks Jeff Strunk(jstrunk)
* Fixed wrong package name on Arch. Thanks Niels Abspoel(aboe76)
* Make sure the Ubuntu universe repository is enabled. Thanks Karl Grzeszczak(karlgrz).
* Fixed SmartOS installation. Thanks Matthieu Guegan(mguegan).
Version 1.5.6:
* If there's a `grains` file on the provided temporary configuration directory, move it to the
proper place while moving the minion configuration file.
* Gentoo bootstraps can now use a bin host to provide binary packages, just set the
`BS_GENTOO_USE_BINHOST` environment variable.
* If `BS_KEEP_TEMP_FILES=1` is found on the environment, the script will copy the files instead
of moving them.
* There were still some `mv` and `cp` occurrences which were not using their `{move,copy}file`
replacements which ended up on now respecting the "Do not override existing configuration"
feature.
* Distro Support Fixed:
* Arch now upgrades it's system package properly as suggested on their mailing list.
* Arch now moves back any configuration files provided by the user renamed by pacman on the
installation process.
* Fixed SmartOS detection(was being detected as Solaris) and bootstrapping. Fixed SmartOS
different gcc package names for different package sets.
* Fixed FreeBSD git based installations(no rc.d scripts were available).
* Fixed FreeBSD not re-evaluating the `PKI_DIR` variable since the `SALT_ETC_DIR` was
redefined.
* Distro Support Added:
* Linux Mint. Thanks Alex Van't Hof(alexvh)!
* Linaro.
Version 1.5.5:
* Fixed a variable error in the new pre-seed feature.
* Fixed the destination path to where the pre-seed minions keys should be copied.
* Debian installations now use SaltStack's repository.
* Configuration files can now be passed as an URL to a compressed file. Thanks Geoff Garside!
* Distro Support Fixed:
* Debian's optional ZMQ3 support was fixed (libzmq3 has moved from experimental to
unstable).
* Ubuntu Lucid Daily PPA
* SmartOS no longer ignores $SALT_ETC_DIR. Matthieu Guegan!
* FreeBSD no longer ignores $SALT_ETC_DIR. Thanks Geoff Garside!
* FreeBSD does not try to install pkgng if pkg is installed. Thanks Geoff Garside!
* SunOS (Make use of XPG4 binaries on SunOS). Thanks Matthieu Guegan!
* openSUSE (Don't fail if only one of the repositories failed to update)
* Arch (Fixed the GPG issues for git installations)
* Distro Support Added:
* Gentoo. Thanks kaithar!
Version 1.5.4:
* Fixed an issue we had when /proc/cpuinfo had more than one CPU. Detected on AMD CPUs.
* OpenSUSE 12.3 uses lsb_release. Fix the returned distro name "openSUSE project" to "openSUSE"
which the script handles.
* Added an custom move function which will only override if required and if we permit it.
* Implemented the necessary function to pre-seed minion keys on a salt master as an optional
argument.
* Distro Support Fixed:
* FreeBSD (Don't let the script fail if PACKAGESITE is not set)
* Debian Stable installations (the function search was not working as supposed)
* Distro Support Added:
* Ubuntu 13.04 (Was disabled because of a bad beta1. Fixed in beta2)
Version 1.5.3:
* Return 0 or 1 from functions
* Convert several pipes into a single awk call
* Fixed `/etc/os-release` parsing
* Fixed `config_salt()`
* Distro Support Fixed:
* EPEL-based installations (CentOS, Amazon Linux, RedHat)
* SuSE/OpenSUSE (problem running the script twice, ie, existing `devel_languages_python`
repository)
* SuSE 11 SP1 (pip based install and config trigger)
* Distro Support Added:
* Debian 7 (Only git installations at the moment)
Version 1.5.2:
* Fix issue with Travis testing (it installs it's own ZeroMQ3 lib
* Allow setting the debug output from an environment variable
* Fix an escape issue in the `printf` calls used in our echo calls
* Don't overwrite files (`config`, `init.d`, etc). Use a specific flag to force overwrites.
* Distro Support Fixed:
* Ubuntu daily installs.
* Distro Support Added:
* Trisquel 6.0 (Ubuntu 12.04)
Version 1.5.1:
* Improved unittesting.
* Starting daemons.
* Make sure that daemons are really running.
* For the users to make the choice if installing from PIP (if required since there aren't system
pacakges).
* Fixed salt's git cloning when the salt git tree is already present on the system.
* Distro Support Fixed:
* Debian 6
* Ubuntu 12.10
* CentOS
* Distro Support Added:
* SuSE 11 SP1/11 SP2
* OpenSUSE 12.x
Version 1.5:
* First stable version of the script
* Support for:
* Ubuntu 10.x/11.x/12.x
* Debian 6.x
* CentOS 5/6
* Red Hat 5/6
* Red Hat Enterprise 5/6
* Fedora
* Arch
* SmartOS
* FreeBSD 9.0
# Don't remove the line below.
# vim: fenc=utf-8 spell spl=en cc=100 tw=99 fo=want ts=4

View file

@ -37,9 +37,6 @@ sum** of the downloaded ``bootstrap-salt.sh`` file.
The SHA256 sum of the ``bootstrap-salt.sh`` file, per release, is: The SHA256 sum of the ``bootstrap-salt.sh`` file, per release, is:
- 2025.02.24: ``a0e3a58fc6358a7c6f708ee4910229e72fbdab7161819514b0696146a2edb62d``
- 2024.12.12: ``7cc91adfa5a15ff57d203dc2b79608c773efc639d4e9bf03861198903e11becd``
- 2024.12.09: ``44f9405a6d9622ad8fa7c93e83a52e01ca328f27e4e9dea4a52268c6a22dbe6d``
- 2024.11.29: ``0ac87384dee051aceded69704485a5de0e4a308551a462b10c262111b57acff0`` - 2024.11.29: ``0ac87384dee051aceded69704485a5de0e4a308551a462b10c262111b57acff0``
- 2024.11.27: ``e972bd1ef01d09cd1d9294374ef974c9e3dd9a2aee37cf3859144585fd8bf1d0`` - 2024.11.27: ``e972bd1ef01d09cd1d9294374ef974c9e3dd9a2aee37cf3859144585fd8bf1d0``
- 2024.11.26: ``832c7a20b96e1df171d715323df9afff8a11aef42d15598c007f240bc89d723c`` - 2024.11.26: ``832c7a20b96e1df171d715323df9afff8a11aef42d15598c007f240bc89d723c``
@ -375,7 +372,7 @@ Using ``PowerShell`` to install latest stable version:
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls12' [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls12'
Invoke-WebRequest -Uri https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.ps1 -OutFile "$env:TEMP\bootstrap-salt.ps1" Invoke-WebRequest -Uri https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.ps1 -OutFile "$env:TEMP\bootstrap-salt.ps1"
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force; & "$env:TEMP\bootstrap-salt.ps1" Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser & "$env:TEMP\bootstrap-salt.ps1"
Display information about the install script parameters: Display information about the install script parameters:

View file

@ -108,7 +108,7 @@ if ($help) {
exit 0 exit 0
} }
$__ScriptVersion = "2025.02.24" $__ScriptVersion = "2024.12.09"
$ScriptName = $myInvocation.MyCommand.Name $ScriptName = $myInvocation.MyCommand.Name
# We'll check for the Version next, because it also has no requirements # We'll check for the Version next, because it also has no requirements

View file

@ -0,0 +1 @@
839c02a7a850c880ff7f01befe591328bc5a65f668209be7230e0297a4b46262

View file

@ -26,7 +26,7 @@
#====================================================================================================================== #======================================================================================================================
set -o nounset # Treat unset variables as an error set -o nounset # Treat unset variables as an error
__ScriptVersion="2025.02.24" __ScriptVersion="2024.12.09"
__ScriptName="bootstrap-salt.sh" __ScriptName="bootstrap-salt.sh"
__ScriptFullName="$0" __ScriptFullName="$0"
@ -2161,19 +2161,21 @@ __git_clone_and_checkout() {
fi fi
if [ "$__SHALLOW_CLONE" -eq $BS_TRUE ]; then if [ "$__SHALLOW_CLONE" -eq $BS_TRUE ]; then
# Let's try 'treeless' cloning to speed up. Treeless cloning omits trees and blobs ('files') # Let's try shallow cloning to speed up.
# but includes metadata (commit history, tags, branches etc. # Test for "--single-branch" option introduced in git 1.7.10, the minimal version of git where the shallow
# Test for "--filter" option introduced in git 2.19, the minimal version of git where the treeless
# cloning we need actually works # cloning we need actually works
if [ "$(git clone 2>&1 | grep 'filter')" != "" ]; then if [ "$(git clone 2>&1 | grep 'single-branch')" != "" ]; then
# The "--filter" option is supported: attempt treeless cloning # The "--single-branch" option is supported, attempt shallow cloning
echoinfo "Attempting to shallow clone $GIT_REV_ADJ from Salt's repository ${_SALT_REPO_URL}" echoinfo "Attempting to shallow clone $GIT_REV_ADJ from Salt's repository ${_SALT_REPO_URL}"
echodebug "git command, git clone --filter=tree:0 --branch $GIT_REV_ADJ $_SALT_REPO_URL $__SALT_CHECKOUT_REPONAME" ## Shallow cloning is resulting in the wrong version of Salt, even with a depth of 5
if git clone --filter=tree:0 --branch "$GIT_REV_ADJ" "$_SALT_REPO_URL" "$__SALT_CHECKOUT_REPONAME"; then ## getting 3007.0+0na.246d066 when it should be 3007.1+410.g246d066457, disabling for now
## if git clone --depth 1 --branch "$GIT_REV_ADJ" "$_SALT_REPO_URL" "$__SALT_CHECKOUT_REPONAME"; then
echodebug "git command, git clone --branch $GIT_REV_ADJ $_SALT_REPO_URL $__SALT_CHECKOUT_REPONAME"
if git clone --branch "$GIT_REV_ADJ" "$_SALT_REPO_URL" "$__SALT_CHECKOUT_REPONAME"; then
# shellcheck disable=SC2164 # shellcheck disable=SC2164
cd "${_SALT_GIT_CHECKOUT_DIR}" cd "${_SALT_GIT_CHECKOUT_DIR}"
__SHALLOW_CLONE=$BS_TRUE __SHALLOW_CLONE=$BS_TRUE
echoinfo "shallow path git cloned $GIT_REV_ADJ, version $(python3 salt/version.py)" echoinfo "shallow path (disabled shallow) git cloned $GIT_REV_ADJ, version $(python3 salt/version.py)"
else else
# Shallow clone above failed(missing upstream tags???), let's resume the old behaviour. # Shallow clone above failed(missing upstream tags???), let's resume the old behaviour.
echowarn "Failed to shallow clone." echowarn "Failed to shallow clone."
@ -3187,8 +3189,11 @@ install_ubuntu_git_deps() {
__PACKAGES="${__PACKAGES} util-linux-extra" __PACKAGES="${__PACKAGES} util-linux-extra"
fi fi
# Additionally install procps pciutils and sudo which allows for Docker bootstraps. See 366#issuecomment-39666813 # Additionally install procps and pciutils which allows for Docker bootstraps. See 366#issuecomment-39666813
__PACKAGES="${__PACKAGES} procps pciutils sudo" __PACKAGES="${__PACKAGES} procps pciutils"
# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
__apt_get_install_noinput ${__PACKAGES} || return 1 __apt_get_install_noinput ${__PACKAGES} || return 1
@ -3587,12 +3592,15 @@ install_debian_onedir_deps() {
return 1 return 1
fi fi
# Additionally install procps, pciutils and sudo which allows for Docker bootstraps. See 366#issuecomment-39666813 # Additionally install procps and pciutils which allows for Docker bootstraps. See 366#issuecomment-39666813
__PACKAGES='procps pciutils sudo' __PACKAGES='procps pciutils'
# YAML module is used for generating custom master/minion configs # YAML module is used for generating custom master/minion configs
__PACKAGES="${__PACKAGES} python${PY_PKG_VER}-yaml" __PACKAGES="${__PACKAGES} python${PY_PKG_VER}-yaml"
# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
__apt_get_install_noinput ${__PACKAGES} || return 1 __apt_get_install_noinput ${__PACKAGES} || return 1
@ -3635,8 +3643,11 @@ install_debian_git_deps() {
__PACKAGES="python${PY_PKG_VER}-dev python${PY_PKG_VER}-pip python${PY_PKG_VER}-setuptools gcc" __PACKAGES="python${PY_PKG_VER}-dev python${PY_PKG_VER}-pip python${PY_PKG_VER}-setuptools gcc"
echodebug "install_debian_git_deps() Installing ${__PACKAGES}" echodebug "install_debian_git_deps() Installing ${__PACKAGES}"
# Additionally install procps, pciutils and sudo which allows for Docker bootstraps. See 366#issuecomment-39666813 # Additionally install procps and pciutils which allows for Docker bootstraps. See 366#issuecomment-39666813
__PACKAGES="${__PACKAGES} procps pciutils sudo" __PACKAGES="${__PACKAGES} procps pciutils"
# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
__apt_get_install_noinput ${__PACKAGES} || return 1 __apt_get_install_noinput ${__PACKAGES} || return 1
@ -3936,11 +3947,14 @@ install_fedora_deps() {
__PACKAGES="${__PACKAGES} dnf-utils libyaml procps-ng python${PY_PKG_VER}-crypto python${PY_PKG_VER}-jinja2" __PACKAGES="${__PACKAGES} dnf-utils libyaml procps-ng python${PY_PKG_VER}-crypto python${PY_PKG_VER}-jinja2"
__PACKAGES="${__PACKAGES} python${PY_PKG_VER}-msgpack python${PY_PKG_VER}-requests python${PY_PKG_VER}-zmq" __PACKAGES="${__PACKAGES} python${PY_PKG_VER}-msgpack python${PY_PKG_VER}-requests python${PY_PKG_VER}-zmq"
__PACKAGES="${__PACKAGES} python${PY_PKG_VER}-pip python${PY_PKG_VER}-m2crypto python${PY_PKG_VER}-pyyaml" __PACKAGES="${__PACKAGES} python${PY_PKG_VER}-pip python${PY_PKG_VER}-m2crypto python${PY_PKG_VER}-pyyaml"
__PACKAGES="${__PACKAGES} python${PY_PKG_VER}-systemd sudo" __PACKAGES="${__PACKAGES} python${PY_PKG_VER}-systemd"
if [ "${_EXTRA_PACKAGES}" != "" ]; then if [ "${_EXTRA_PACKAGES}" != "" ]; then
echoinfo "Installing the following extra packages as requested: ${_EXTRA_PACKAGES}" echoinfo "Installing the following extra packages as requested: ${_EXTRA_PACKAGES}"
fi fi
# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
__dnf_install_noinput ${__PACKAGES} ${_EXTRA_PACKAGES} || return 1 __dnf_install_noinput ${__PACKAGES} ${_EXTRA_PACKAGES} || return 1
@ -3971,7 +3985,10 @@ install_fedora_git_deps() {
# shellcheck disable=SC2119 # shellcheck disable=SC2119
__git_clone_and_checkout || return 1 __git_clone_and_checkout || return 1
__PACKAGES="python${PY_PKG_VER}-devel python${PY_PKG_VER}-pip python${PY_PKG_VER}-setuptools gcc gcc-c++ sudo" __PACKAGES="python${PY_PKG_VER}-devel python${PY_PKG_VER}-pip python${PY_PKG_VER}-setuptools gcc gcc-c++"
# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
__dnf_install_noinput ${__PACKAGES} || return 1 __dnf_install_noinput ${__PACKAGES} || return 1
@ -4100,7 +4117,10 @@ install_fedora_onedir_deps() {
__install_saltstack_fedora_onedir_repository || return 1 __install_saltstack_fedora_onedir_repository || return 1
fi fi
__PACKAGES="dnf-utils chkconfig procps-ng sudo" __PACKAGES="dnf-utils chkconfig procps-ng"
# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
__yum_install_noinput ${__PACKAGES} || return 1 __yum_install_noinput ${__PACKAGES} || return 1
@ -4204,8 +4224,8 @@ __install_saltstack_rhel_onedir_repository() {
REPO_REV_MAJOR=$(echo "$ONEDIR_REV" | cut -d '.' -f 1) REPO_REV_MAJOR=$(echo "$ONEDIR_REV" | cut -d '.' -f 1)
if [ "$REPO_REV_MAJOR" -eq "3007" ]; then if [ "$REPO_REV_MAJOR" -eq "3007" ]; then
# Enable the Salt 3007 STS repo # Enable the Salt 3007 STS repo
yum config-manager --set-disable salt-repo-* dnf config-manager --set-disable salt-repo-*
yum config-manager --set-enabled salt-repo-3007-sts dnf config-manager --set-enabled salt-repo-3007-sts
fi fi
elif [ "$(echo "$ONEDIR_REV" | grep -E '^([3-9][0-5]{2}[6-9](\.[0-9]*)?)')" != "" ]; then elif [ "$(echo "$ONEDIR_REV" | grep -E '^([3-9][0-5]{2}[6-9](\.[0-9]*)?)')" != "" ]; then
# using minor version # using minor version
@ -4223,11 +4243,11 @@ __install_saltstack_rhel_onedir_repository() {
fi fi
else else
# Enable the Salt LATEST repo # Enable the Salt LATEST repo
yum config-manager --set-disable salt-repo-* dnf config-manager --set-disable salt-repo-*
yum config-manager --set-enabled salt-repo-latest dnf config-manager --set-enabled salt-repo-latest
fi fi
yum clean expire-cache || return 1 dnf clean expire-cache || return 1
yum makecache || return 1 dnf makecache || return 1
elif [ "$ONEDIR_REV" != "latest" ]; then elif [ "$ONEDIR_REV" != "latest" ]; then
echowarn "salt.repo already exists, ignoring salt version argument." echowarn "salt.repo already exists, ignoring salt version argument."
echowarn "Use -F (forced overwrite) to install $ONEDIR_REV." echowarn "Use -F (forced overwrite) to install $ONEDIR_REV."
@ -4260,7 +4280,10 @@ install_centos_stable_deps() {
__install_saltstack_rhel_onedir_repository || return 1 __install_saltstack_rhel_onedir_repository || return 1
fi fi
__PACKAGES="yum-utils chkconfig procps-ng findutils sudo" __PACKAGES="yum-utils chkconfig procps-ng findutils"
# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
__yum_install_noinput ${__PACKAGES} || return 1 __yum_install_noinput ${__PACKAGES} || return 1
@ -4306,6 +4329,9 @@ install_centos_stable() {
__PACKAGES="${__PACKAGES} salt-api$MINOR_VER_STRG" __PACKAGES="${__PACKAGES} salt-api$MINOR_VER_STRG"
fi fi
# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
yum makecache || return 1 yum makecache || return 1
__yum_install_noinput ${__PACKAGES} || return 1 __yum_install_noinput ${__PACKAGES} || return 1
@ -4384,7 +4410,10 @@ install_centos_git_deps() {
return 1 return 1
fi fi
__PACKAGES="${__PACKAGES} python${PY_PKG_VER}-devel python${PY_PKG_VER}-pip python${PY_PKG_VER}-setuptools gcc sudo" __PACKAGES="${__PACKAGES} python${PY_PKG_VER}-devel python${PY_PKG_VER}-pip python${PY_PKG_VER}-setuptools gcc"
# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
__yum_install_noinput ${__PACKAGES} || return 1 __yum_install_noinput ${__PACKAGES} || return 1
@ -4480,7 +4509,10 @@ install_centos_onedir_deps() {
__install_saltstack_rhel_onedir_repository || return 1 __install_saltstack_rhel_onedir_repository || return 1
fi fi
__PACKAGES="yum-utils chkconfig procps-ng findutils sudo" __PACKAGES="yum-utils chkconfig procps-ng findutils"
# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
__yum_install_noinput ${__PACKAGES} || return 1 __yum_install_noinput ${__PACKAGES} || return 1
@ -4527,8 +4559,8 @@ install_centos_onedir() {
fi fi
# shellcheck disable=SC2086 # shellcheck disable=SC2086
yum makecache || return 1 dnf makecache || return 1
yum list salt-minion || return 1 dnf list salt-minion || return 1
__yum_install_noinput ${__PACKAGES} || return 1 __yum_install_noinput ${__PACKAGES} || return 1
return 0 return 0
@ -5581,7 +5613,10 @@ install_amazon_linux_ami_2_git_deps() {
# shellcheck disable=SC2119 # shellcheck disable=SC2119
__git_clone_and_checkout || return 1 __git_clone_and_checkout || return 1
__PACKAGES="python${PY_PKG_VER}-pip python${PY_PKG_VER}-setuptools python${PY_PKG_VER}-devel gcc sudo" __PACKAGES="python${PY_PKG_VER}-pip python${PY_PKG_VER}-setuptools python${PY_PKG_VER}-devel gcc"
# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
__yum_install_noinput ${__PACKAGES} || return 1 __yum_install_noinput ${__PACKAGES} || return 1
@ -5603,7 +5638,10 @@ install_amazon_linux_ami_2_deps() {
# We need to install yum-utils before doing anything else when installing on # We need to install yum-utils before doing anything else when installing on
# Amazon Linux ECS-optimized images. See issue #974. # Amazon Linux ECS-optimized images. See issue #974.
__PACKAGES="yum-utils sudo" __PACKAGES="yum-utils"
# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"
__yum_install_noinput ${__PACKAGES} __yum_install_noinput ${__PACKAGES}
@ -5614,10 +5652,8 @@ install_amazon_linux_ami_2_deps() {
if [ $_DISABLE_REPOS -eq $BS_FALSE ] || [ "$_CUSTOM_REPO_URL" != "null" ]; then if [ $_DISABLE_REPOS -eq $BS_FALSE ] || [ "$_CUSTOM_REPO_URL" != "null" ]; then
if [ ! -s "${YUM_REPO_FILE}" ]; then if [ ! -s "${YUM_REPO_FILE}" ]; then
## Amazon Linux yum (v3) doesn't support config-manager FETCH_URL="https://github.com/saltstack/salt-install-guide/releases/latest/download/salt.repo"
## FETCH_URL="https://github.com/saltstack/salt-install-guide/releases/latest/download/salt.repo" __fetch_url "${YUM_REPO_FILE}" "${FETCH_URL}"
## __fetch_url "${YUM_REPO_FILE}" "${FETCH_URL}"
# shellcheck disable=SC2129
if [ "$STABLE_REV" != "latest" ]; then if [ "$STABLE_REV" != "latest" ]; then
# 3006.x is default, and latest for 3006.x branch # 3006.x is default, and latest for 3006.x branch
if [ "$(echo "$STABLE_REV" | grep -E '^(3006|3007)$')" != "" ]; then if [ "$(echo "$STABLE_REV" | grep -E '^(3006|3007)$')" != "" ]; then
@ -5625,33 +5661,14 @@ install_amazon_linux_ami_2_deps() {
REPO_REV_MAJOR=$(echo "$STABLE_REV" | cut -d '.' -f 1) REPO_REV_MAJOR=$(echo "$STABLE_REV" | cut -d '.' -f 1)
if [ "$REPO_REV_MAJOR" -eq "3007" ]; then if [ "$REPO_REV_MAJOR" -eq "3007" ]; then
# Enable the Salt 3007 STS repo # Enable the Salt 3007 STS repo
echo "[salt-repo-3007-sts]" > "${YUM_REPO_FILE}" dnf config-manager --set-disable salt-repo-*
echo "name=Salt Repo for Salt v3007 STS" >> "${YUM_REPO_FILE}" dnf config-manager --set-enabled salt-repo-3007-sts
echo "baseurl=https://${_REPO_URL}/saltproject-rpm/" >> "${YUM_REPO_FILE}"
echo "skip_if_unavailable=True" >> "${YUM_REPO_FILE}"
echo "priority=10" >> "${YUM_REPO_FILE}"
echo "enabled=1" >> "${YUM_REPO_FILE}"
echo "enabled_metadata=1" >> "${YUM_REPO_FILE}"
echo "gpgcheck=1" >> "${YUM_REPO_FILE}"
echo "exclude=*3006* *3008* *3009* *3010*" >> "${YUM_REPO_FILE}"
echo "gpgkey=https://${_REPO_URL}/api/security/keypair/SaltProjectKey/public" >> "${YUM_REPO_FILE}"
else
# Salt 3006 repo
echo "[salt-repo-3006-lts]" > "${YUM_REPO_FILE}"
echo "name=Salt Repo for Salt v3006 LTS" >> "${YUM_REPO_FILE}"
echo "baseurl=https://${_REPO_URL}/saltproject-rpm/" >> "${YUM_REPO_FILE}"
echo "skip_if_unavailable=True" >> "${YUM_REPO_FILE}"
echo "priority=10" >> "${YUM_REPO_FILE}"
echo "enabled=1" >> "${YUM_REPO_FILE}"
echo "enabled_metadata=1" >> "${YUM_REPO_FILE}"
echo "gpgcheck=1" >> "${YUM_REPO_FILE}"
echo "exclude=*3007* *3008* *3009* *3010*" >> "${YUM_REPO_FILE}"
echo "gpgkey=https://${_REPO_URL}/api/security/keypair/SaltProjectKey/public" >> "${YUM_REPO_FILE}"
fi fi
elif [ "$(echo "$STABLE_REV" | grep -E '^([3-9][0-5]{2}[6-9](\.[0-9]*)?)')" != "" ]; then elif [ "$(echo "$STABLE_REV" | grep -E '^([3-9][0-5]{2}[6-9](\.[0-9]*)?)')" != "" ]; then
# using minor version # using minor version
STABLE_REV_DOT=$(echo "$STABLE_REV" | sed 's/-/\./') STABLE_REV_DOT=$(echo "$STABLE_REV" | sed 's/-/\./')
echo "[salt-repo-${STABLE_REV_DOT}-lts]" > "${YUM_REPO_FILE}" echo "[salt-repo-${STABLE_REV_DOT}-lts]" > "${YUM_REPO_FILE}"
# shellcheck disable=SC2129
echo "name=Salt Repo for Salt v${STABLE_REV_DOT} LTS" >> "${YUM_REPO_FILE}" echo "name=Salt Repo for Salt v${STABLE_REV_DOT} LTS" >> "${YUM_REPO_FILE}"
echo "baseurl=https://${_REPO_URL}/saltproject-rpm/" >> "${YUM_REPO_FILE}" echo "baseurl=https://${_REPO_URL}/saltproject-rpm/" >> "${YUM_REPO_FILE}"
echo "skip_if_unavailable=True" >> "${YUM_REPO_FILE}" echo "skip_if_unavailable=True" >> "${YUM_REPO_FILE}"
@ -5663,18 +5680,11 @@ install_amazon_linux_ami_2_deps() {
fi fi
else else
# Enable the Salt LATEST repo # Enable the Salt LATEST repo
echo "[salt-repo-latest]" > "${YUM_REPO_FILE}" dnf config-manager --set-disable salt-repo-*
echo "name=Salt Repo for Salt LATEST release" >> "${YUM_REPO_FILE}" dnf config-manager --set-enabled salt-repo-latest
echo "baseurl=https://${_REPO_URL}/saltproject-rpm/" >> "${YUM_REPO_FILE}"
echo "skip_if_unavailable=True" >> "${YUM_REPO_FILE}"
echo "priority=10" >> "${YUM_REPO_FILE}"
echo "enabled=1" >> "${YUM_REPO_FILE}"
echo "enabled_metadata=1" >> "${YUM_REPO_FILE}"
echo "gpgcheck=1" >> "${YUM_REPO_FILE}"
echo "gpgkey=https://${_REPO_URL}/api/security/keypair/SaltProjectKey/public" >> "${YUM_REPO_FILE}"
fi fi
yum clean expire-cache || return 1 dnf clean expire-cache || return 1
yum makecache || return 1 dnf makecache || return 1
fi fi
fi fi
@ -5693,7 +5703,10 @@ install_amazon_linux_ami_2_onedir_deps() {
# We need to install yum-utils before doing anything else when installing on # We need to install yum-utils before doing anything else when installing on
# Amazon Linux ECS-optimized images. See issue #974. # Amazon Linux ECS-optimized images. See issue #974.
__PACKAGES="yum-utils chkconfig procps-ng findutils sudo" __PACKAGES="yum-utils"
# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"
__yum_install_noinput ${__PACKAGES} __yum_install_noinput ${__PACKAGES}
@ -5704,10 +5717,8 @@ install_amazon_linux_ami_2_onedir_deps() {
if [ $_DISABLE_REPOS -eq $BS_FALSE ] || [ "$_CUSTOM_REPO_URL" != "null" ]; then if [ $_DISABLE_REPOS -eq $BS_FALSE ] || [ "$_CUSTOM_REPO_URL" != "null" ]; then
if [ ! -s "${YUM_REPO_FILE}" ]; then if [ ! -s "${YUM_REPO_FILE}" ]; then
## Amazon Linux yum (v3) doesn't support config-manager FETCH_URL="https://github.com/saltstack/salt-install-guide/releases/latest/download/salt.repo"
## FETCH_URL="https://github.com/saltstack/salt-install-guide/releases/latest/download/salt.repo" __fetch_url "${YUM_REPO_FILE}" "${FETCH_URL}"
## __fetch_url "${YUM_REPO_FILE}" "${FETCH_URL}"
# shellcheck disable=SC2129
if [ "$ONEDIR_REV" != "latest" ]; then if [ "$ONEDIR_REV" != "latest" ]; then
# 3006.x is default, and latest for 3006.x branch # 3006.x is default, and latest for 3006.x branch
if [ "$(echo "$ONEDIR_REV" | grep -E '^(3006|3007)$')" != "" ]; then if [ "$(echo "$ONEDIR_REV" | grep -E '^(3006|3007)$')" != "" ]; then
@ -5715,33 +5726,14 @@ install_amazon_linux_ami_2_onedir_deps() {
REPO_REV_MAJOR=$(echo "$ONEDIR_REV" | cut -d '.' -f 1) REPO_REV_MAJOR=$(echo "$ONEDIR_REV" | cut -d '.' -f 1)
if [ "$REPO_REV_MAJOR" -eq "3007" ]; then if [ "$REPO_REV_MAJOR" -eq "3007" ]; then
# Enable the Salt 3007 STS repo # Enable the Salt 3007 STS repo
echo "[salt-repo-3007-sts]" > "${YUM_REPO_FILE}" dnf config-manager --set-disable salt-repo-*
echo "name=Salt Repo for Salt v3007 STS" >> "${YUM_REPO_FILE}" dnf config-manager --set-enabled salt-repo-3007-sts
echo "baseurl=https://${_REPO_URL}/saltproject-rpm/" >> "${YUM_REPO_FILE}"
echo "skip_if_unavailable=True" >> "${YUM_REPO_FILE}"
echo "priority=10" >> "${YUM_REPO_FILE}"
echo "enabled=1" >> "${YUM_REPO_FILE}"
echo "enabled_metadata=1" >> "${YUM_REPO_FILE}"
echo "gpgcheck=1" >> "${YUM_REPO_FILE}"
echo "exclude=*3006* *3008* *3009* *3010*" >> "${YUM_REPO_FILE}"
echo "gpgkey=https://${_REPO_URL}/api/security/keypair/SaltProjectKey/public" >> "${YUM_REPO_FILE}"
else
# Salt 3006 repo
echo "[salt-repo-3006-lts]" > "${YUM_REPO_FILE}"
echo "name=Salt Repo for Salt v3006 LTS" >> "${YUM_REPO_FILE}"
echo "baseurl=https://${_REPO_URL}/saltproject-rpm/" >> "${YUM_REPO_FILE}"
echo "skip_if_unavailable=True" >> "${YUM_REPO_FILE}"
echo "priority=10" >> "${YUM_REPO_FILE}"
echo "enabled=1" >> "${YUM_REPO_FILE}"
echo "enabled_metadata=1" >> "${YUM_REPO_FILE}"
echo "gpgcheck=1" >> "${YUM_REPO_FILE}"
echo "exclude=*3007* *3008* *3009* *3010*" >> "${YUM_REPO_FILE}"
echo "gpgkey=https://${_REPO_URL}/api/security/keypair/SaltProjectKey/public" >> "${YUM_REPO_FILE}"
fi fi
elif [ "$(echo "$ONEDIR_REV" | grep -E '^([3-9][0-5]{2}[6-9](\.[0-9]*)?)')" != "" ]; then elif [ "$(echo "$ONEDIR_REV" | grep -E '^([3-9][0-5]{2}[6-9](\.[0-9]*)?)')" != "" ]; then
# using minor version # using minor version
ONEDIR_REV_DOT=$(echo "$ONEDIR_REV" | sed 's/-/\./') ONEDIR_REV_DOT=$(echo "$ONEDIR_REV" | sed 's/-/\./')
echo "[salt-repo-${ONEDIR_REV_DOT}-lts]" > "${YUM_REPO_FILE}" echo "[salt-repo-${ONEDIR_REV_DOT}-lts]" > "${YUM_REPO_FILE}"
# shellcheck disable=SC2129
echo "name=Salt Repo for Salt v${ONEDIR_REV_DOT} LTS" >> "${YUM_REPO_FILE}" echo "name=Salt Repo for Salt v${ONEDIR_REV_DOT} LTS" >> "${YUM_REPO_FILE}"
echo "baseurl=https://${_REPO_URL}/saltproject-rpm/" >> "${YUM_REPO_FILE}" echo "baseurl=https://${_REPO_URL}/saltproject-rpm/" >> "${YUM_REPO_FILE}"
echo "skip_if_unavailable=True" >> "${YUM_REPO_FILE}" echo "skip_if_unavailable=True" >> "${YUM_REPO_FILE}"
@ -5753,18 +5745,11 @@ install_amazon_linux_ami_2_onedir_deps() {
fi fi
else else
# Enable the Salt LATEST repo # Enable the Salt LATEST repo
echo "[salt-repo-latest]" > "${YUM_REPO_FILE}" dnf config-manager --set-disable salt-repo-*
echo "name=Salt Repo for Salt LATEST release" >> "${YUM_REPO_FILE}" dnf config-manager --set-enabled salt-repo-latest
echo "baseurl=https://${_REPO_URL}/saltproject-rpm/" >> "${YUM_REPO_FILE}"
echo "skip_if_unavailable=True" >> "${YUM_REPO_FILE}"
echo "priority=10" >> "${YUM_REPO_FILE}"
echo "enabled=1" >> "${YUM_REPO_FILE}"
echo "enabled_metadata=1" >> "${YUM_REPO_FILE}"
echo "gpgcheck=1" >> "${YUM_REPO_FILE}"
echo "gpgkey=https://${_REPO_URL}/api/security/keypair/SaltProjectKey/public" >> "${YUM_REPO_FILE}"
fi fi
yum clean expire-cache || return 1 dnf clean expire-cache || return 1
yum makecache || return 1 dnf makecache || return 1
fi fi
fi fi
@ -5850,7 +5835,10 @@ install_amazon_linux_ami_2023_git_deps() {
# shellcheck disable=SC2119 # shellcheck disable=SC2119
__git_clone_and_checkout || return 1 __git_clone_and_checkout || return 1
__PACKAGES="python${PY_PKG_VER}-pip python${PY_PKG_VER}-setuptools python${PY_PKG_VER}-devel gcc sudo" __PACKAGES="python${PY_PKG_VER}-pip python${PY_PKG_VER}-setuptools python${PY_PKG_VER}-devel gcc"
# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
__yum_install_noinput ${__PACKAGES} || return 1 __yum_install_noinput ${__PACKAGES} || return 1
@ -5864,18 +5852,14 @@ install_amazon_linux_ami_2023_git_deps() {
return 0 return 0
} }
install_amazon_linux_ami_2023_deps() {
# Set ONEDIR_REV to STABLE_REV
ONEDIR_REV=${STABLE_REV}
install_amazon_linux_ami_2023_onedir_deps || return 1
}
install_amazon_linux_ami_2023_onedir_deps() { install_amazon_linux_ami_2023_onedir_deps() {
# We need to install yum-utils before doing anything else when installing on # We need to install yum-utils before doing anything else when installing on
# Amazon Linux ECS-optimized images. See issue #974. # Amazon Linux ECS-optimized images. See issue #974.
__PACKAGES="yum-utils chkconfig procps-ng findutils sudo" __PACKAGES="yum-utils"
# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"
__yum_install_noinput ${__PACKAGES} __yum_install_noinput ${__PACKAGES}
@ -5886,10 +5870,8 @@ install_amazon_linux_ami_2023_onedir_deps() {
if [ $_DISABLE_REPOS -eq $BS_FALSE ] || [ "$_CUSTOM_REPO_URL" != "null" ]; then if [ $_DISABLE_REPOS -eq $BS_FALSE ] || [ "$_CUSTOM_REPO_URL" != "null" ]; then
if [ ! -s "${YUM_REPO_FILE}" ]; then if [ ! -s "${YUM_REPO_FILE}" ]; then
## Amazon Linux yum (v3) doesn't support config-manager FETCH_URL="https://github.com/saltstack/salt-install-guide/releases/latest/download/salt.repo"
## FETCH_URL="https://github.com/saltstack/salt-install-guide/releases/latest/download/salt.repo" __fetch_url "${YUM_REPO_FILE}" "${FETCH_URL}"
## __fetch_url "${YUM_REPO_FILE}" "${FETCH_URL}"
# shellcheck disable=SC2129
if [ "$ONEDIR_REV" != "latest" ]; then if [ "$ONEDIR_REV" != "latest" ]; then
# 3006.x is default, and latest for 3006.x branch # 3006.x is default, and latest for 3006.x branch
if [ "$(echo "$ONEDIR_REV" | grep -E '^(3006|3007)$')" != "" ]; then if [ "$(echo "$ONEDIR_REV" | grep -E '^(3006|3007)$')" != "" ]; then
@ -5897,33 +5879,14 @@ install_amazon_linux_ami_2023_onedir_deps() {
REPO_REV_MAJOR=$(echo "$ONEDIR_REV" | cut -d '.' -f 1) REPO_REV_MAJOR=$(echo "$ONEDIR_REV" | cut -d '.' -f 1)
if [ "$REPO_REV_MAJOR" -eq "3007" ]; then if [ "$REPO_REV_MAJOR" -eq "3007" ]; then
# Enable the Salt 3007 STS repo # Enable the Salt 3007 STS repo
echo "[salt-repo-3007-sts]" > "${YUM_REPO_FILE}" dnf config-manager --set-disable salt-repo-*
echo "name=Salt Repo for Salt v3007 STS" >> "${YUM_REPO_FILE}" dnf config-manager --set-enabled salt-repo-3007-sts
echo "baseurl=https://${_REPO_URL}/saltproject-rpm/" >> "${YUM_REPO_FILE}"
echo "skip_if_unavailable=True" >> "${YUM_REPO_FILE}"
echo "priority=10" >> "${YUM_REPO_FILE}"
echo "enabled=1" >> "${YUM_REPO_FILE}"
echo "enabled_metadata=1" >> "${YUM_REPO_FILE}"
echo "gpgcheck=1" >> "${YUM_REPO_FILE}"
echo "exclude=*3006* *3008* *3009* *3010*" >> "${YUM_REPO_FILE}"
echo "gpgkey=https://${_REPO_URL}/api/security/keypair/SaltProjectKey/public" >> "${YUM_REPO_FILE}"
else
# Salt 3006 repo
echo "[salt-repo-3006-lts]" > "${YUM_REPO_FILE}"
echo "name=Salt Repo for Salt v3006 LTS" >> "${YUM_REPO_FILE}"
echo "baseurl=https://${_REPO_URL}/saltproject-rpm/" >> "${YUM_REPO_FILE}"
echo "skip_if_unavailable=True" >> "${YUM_REPO_FILE}"
echo "priority=10" >> "${YUM_REPO_FILE}"
echo "enabled=1" >> "${YUM_REPO_FILE}"
echo "enabled_metadata=1" >> "${YUM_REPO_FILE}"
echo "gpgcheck=1" >> "${YUM_REPO_FILE}"
echo "exclude=*3007* *3008* *3009* *3010*" >> "${YUM_REPO_FILE}"
echo "gpgkey=https://${_REPO_URL}/api/security/keypair/SaltProjectKey/public" >> "${YUM_REPO_FILE}"
fi fi
elif [ "$(echo "$ONEDIR_REV" | grep -E '^([3-9][0-5]{2}[6-9](\.[0-9]*)?)')" != "" ]; then elif [ "$(echo "$ONEDIR_REV" | grep -E '^([3-9][0-5]{2}[6-9](\.[0-9]*)?)')" != "" ]; then
# using minor version # using minor version
ONEDIR_REV_DOT=$(echo "$ONEDIR_REV" | sed 's/-/\./') ONEDIR_REV_DOT=$(echo "$ONEDIR_REV" | sed 's/-/\./')
echo "[salt-repo-${ONEDIR_REV_DOT}-lts]" > "${YUM_REPO_FILE}" echo "[salt-repo-${ONEDIR_REV_DOT}-lts]" > "${YUM_REPO_FILE}"
# shellcheck disable=SC2129
echo "name=Salt Repo for Salt v${ONEDIR_REV_DOT} LTS" >> "${YUM_REPO_FILE}" echo "name=Salt Repo for Salt v${ONEDIR_REV_DOT} LTS" >> "${YUM_REPO_FILE}"
echo "baseurl=https://${_REPO_URL}/saltproject-rpm/" >> "${YUM_REPO_FILE}" echo "baseurl=https://${_REPO_URL}/saltproject-rpm/" >> "${YUM_REPO_FILE}"
echo "skip_if_unavailable=True" >> "${YUM_REPO_FILE}" echo "skip_if_unavailable=True" >> "${YUM_REPO_FILE}"
@ -5935,18 +5898,11 @@ install_amazon_linux_ami_2023_onedir_deps() {
fi fi
else else
# Enable the Salt LATEST repo # Enable the Salt LATEST repo
echo "[salt-repo-latest]" > "${YUM_REPO_FILE}" dnf config-manager --set-disable salt-repo-*
echo "name=Salt Repo for Salt LATEST release" >> "${YUM_REPO_FILE}" dnf config-manager --set-enabled salt-repo-latest
echo "baseurl=https://${_REPO_URL}/saltproject-rpm/" >> "${YUM_REPO_FILE}"
echo "skip_if_unavailable=True" >> "${YUM_REPO_FILE}"
echo "priority=10" >> "${YUM_REPO_FILE}"
echo "enabled=1" >> "${YUM_REPO_FILE}"
echo "enabled_metadata=1" >> "${YUM_REPO_FILE}"
echo "gpgcheck=1" >> "${YUM_REPO_FILE}"
echo "gpgkey=https://${_REPO_URL}/api/security/keypair/SaltProjectKey/public" >> "${YUM_REPO_FILE}"
fi fi
yum clean expire-cache || return 1 dnf clean expire-cache || return 1
yum makecache || return 1 dnf makecache || return 1
fi fi
fi fi

1
bootstrap-salt.sh.sha256 Normal file
View file

@ -0,0 +1 @@
0ac87384dee051aceded69704485a5de0e4a308551a462b10c262111b57acff0

View file

@ -4,31 +4,27 @@
# #
# pip-compile requirements/release.in # pip-compile requirements/release.in
# #
annotated-types==0.7.0 attrs==23.1.0
# via pydantic
attrs==24.3.0
# via python-tools-scripts # via python-tools-scripts
boto3==1.35.98 boto3==1.28.79
# via -r requirements/release.in # via -r requirements/release.in
botocore==1.35.98 botocore==1.31.79
# via # via
# boto3 # boto3
# s3transfer # s3transfer
certifi==2024.12.14 certifi==2023.7.22
# via requests # via requests
cfgv==3.4.0 cfgv==3.4.0
# via pre-commit # via pre-commit
charset-normalizer==3.4.1 charset-normalizer==3.3.2
# via requests # via requests
distlib==0.3.9 distlib==0.3.7
# via virtualenv # via virtualenv
filelock==3.16.1 filelock==3.13.1
# via # via virtualenv
# python-tools-scripts identify==2.5.31
# virtualenv
identify==2.6.5
# via pre-commit # via pre-commit
idna==3.10 idna==3.4
# via requests # via requests
jmespath==1.0.1 jmespath==1.0.1
# via # via
@ -38,41 +34,36 @@ markdown-it-py==3.0.0
# via rich # via rich
mdurl==0.1.2 mdurl==0.1.2
# via markdown-it-py # via markdown-it-py
nodeenv==1.9.1 nodeenv==1.8.0
# via pre-commit # via pre-commit
platformdirs==4.3.6 platformdirs==3.11.0
# via virtualenv # via virtualenv
pre-commit==4.0.1 pre-commit==3.5.0
# via -r requirements/release.in # via -r requirements/release.in
pydantic==2.10.5 pygments==2.16.1
# via python-tools-scripts
pydantic-core==2.27.2
# via pydantic
pygments==2.19.1
# via rich # via rich
python-dateutil==2.9.0.post0 python-dateutil==2.8.2
# via botocore # via botocore
python-tools-scripts==0.20.5 python-tools-scripts==0.18.6
# via -r requirements/release.in # via -r requirements/release.in
pyyaml==6.0.2 pyyaml==6.0.1
# via pre-commit # via pre-commit
requests==2.32.3 requests==2.31.0
# via python-tools-scripts # via python-tools-scripts
rich==13.9.4 rich==13.6.0
# via python-tools-scripts # via python-tools-scripts
s3transfer==0.10.4 s3transfer==0.7.0
# via boto3 # via boto3
six==1.17.0 six==1.16.0
# via python-dateutil # via python-dateutil
typing-extensions==4.12.2 typing-extensions==4.8.0
# via # via python-tools-scripts
# pydantic urllib3==2.0.7
# pydantic-core
# python-tools-scripts
# rich
urllib3==2.3.0
# via # via
# botocore # botocore
# requests # requests
virtualenv==20.28.1 virtualenv==20.24.6
# via pre-commit # via pre-commit
# The following packages are considered to be unsafe in a requirements file:
# setuptools

View file

@ -35,21 +35,10 @@ def run_salt_call(cmd):
log.error(f"failed to produce output result, '{result}'") log.error(f"failed to produce output result, '{result}'")
else: else:
if platform.system() == "Darwin": cmdl = ["sudo"]
cmdl = ["sudo"]
else:
cmdl = []
cmdl.extend(cmd) cmdl.extend(cmd)
cmdl.append("--out=json") cmdl.append("--out=json")
try: result = subprocess.run(cmdl, capture_output=True, text=True)
result = subprocess.run(cmdl, capture_output=True, text=True)
except TypeError:
result = subprocess.run(
cmdl,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
universal_newlines=True,
)
if 0 == result.returncode: if 0 == result.returncode:
json_data = json.loads(result.stdout) json_data = json.loads(result.stdout)
else: else: