Commit graph

10433 commits

Author SHA1 Message Date
Alyssa Rock
75f6b7bf47 Remove under development notice 2022-09-01 07:05:12 -06:00
MKLeb
4099c78c3b Merge tag 'v3005' into merge-forward/3005
Version 3005
2022-08-30 20:06:17 -04:00
Pedro Algarvio
8ca6bb29f7 Rename salt/serializers/toml.py to salt/serializers/tomlmod.py
To avoid importing our `toml` code when we actually want the `toml` library.

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2022-08-26 15:41:33 +01:00
Pedro Algarvio
8f4381f203 Update test related docs to use the newer nox sessions.
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2022-08-25 07:00:32 -06:00
Megan Wilhite
a8e94836d8 Update docs with new change for 3005 release 2022-08-22 13:43:55 -06:00
Megan Wilhite
26487b795f Update doc/topics/releases/3005.rst
Co-authored-by: Derek Ardolf <ScriptAutomate@users.noreply.github.com>
2022-08-17 20:13:13 -06:00
Megan Wilhite
39322eb354 Update changelog and release notes for 3005 2022-08-17 20:13:13 -06:00
Megan Wilhite
0dbbc9ee6e Fix urlparse typo 2022-08-08 11:14:51 -07:00
Megan Wilhite
c9124961f3 Update release notes and changelog for 3005 release 2022-08-08 11:29:48 -06:00
Megan Wilhite
fc7d0a9296
Merge freeze into master (#62438)
* fixes saltstack/salt#62372 unable to use random shuffle and sample functions as Jinja filters

* move random_shuffle and random_sample logic to utils

* static seed in tests seems to have shifted

* static seed in tests require hash module

* Change Tiamat to onedir in release notes

* Reinstate known issues

* Update release notes with onedir package support policy

* need to check the version of Netmiko python library and then import the exceptions from different locations depending on the result.

* Adding changelog.

* swap out if...else for double try...except.

* Remove extra fix we don't need anymore

* [Docs] include onedir system python note

* Update all platforms to use pycparser 2.21 or greater for Py 3.9 or higher, fixes fips fault with openssl v3.x

* Remove the PyObjC dependency

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* Add "<tiamat> python" subcommand to allow execution or arbitrary scripts via bundled Python runtime

* Document usage of bundled Python runtime for Client API

* Use explicit locals for custom script execution, handle exception in similar fashion as Python

* Remove old __file__ replacement

* Apply suggestions from code review

Co-authored-by: Pedro Algarvio <pedro@algarvio.me>

Co-authored-by: nicholasmhughes <nicholasmhughes@gmail.com>
Co-authored-by: Alyssa Rock <alyssa.rock@gmail.com>
Co-authored-by: Gareth J. Greenaway <gareth@saltstack.com>
Co-authored-by: Twangboy <leesh@vmware.com>
Co-authored-by: David Murphy < dmurphy@saltstack.com>
Co-authored-by: Pedro Algarvio <palgarvio@vmware.com>
Co-authored-by: Lukas Raska <lukas@raska.me>
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
2022-08-08 11:27:10 -06:00
Lukas Raska
6d580d24ed Document usage of bundled Python runtime for Client API 2022-08-08 07:20:55 -06:00
Alyssa Rock
583dea3cd5 Update release notes with onedir package support policy 2022-08-03 12:38:03 -06:00
Alyssa Rock
e334d2b599 Update release notes with onedir package support policy 2022-08-03 12:37:20 -06:00
Alyssa Rock
58137b943e Change Tiamat to onedir in release notes 2022-08-02 07:57:15 -06:00
Alyssa Rock
93c99b156d Reinstate known issues 2022-08-02 07:41:23 -06:00
Alyssa Rock
c278be227b Change Tiamat to onedir in release notes 2022-08-02 07:41:23 -06:00
Pedro Algarvio
bf24613010
Merge freeze forward into master (#62403)
* Update versionadded from 3006 to 3005

* Add known issue about SSC 8.9.0 dependency

* Add explanation for the issue

* Update release candidate documentation

* Add clarification per Shane's review

* Add RHEL GPG key info

* Revise topic per Murphy's review

* Switch to the SaltStack ORG on quay.io

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* Update the salt pip executable to salt-pip

* Fix pre-install and post-install scripts

Make the date display in the logs properly

* Add pyinstaller hook which pulls in all of salt and the standard library

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* Add changelog for #62383 which fixes #62362

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* Windows search path is different

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* Salt should not do any logic to include/exclude requirements. That's pip's job.

Refs #62386
Fixes #62392

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

Co-authored-by: Megan Wilhite <mwilhite@vmware.com>
Co-authored-by: Alyssa Rock <alyssa.rock@gmail.com>
Co-authored-by: Twangboy <leesh@vmware.com>
2022-08-01 17:44:17 -07:00
Pedro Algarvio
b35e7d46dc Format source code using latest black
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2022-08-01 12:49:16 -06:00
Pedro Algarvio
4d49013247 Update to isort 5.10.1
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2022-08-01 12:49:16 -06:00
Megan Wilhite
82119c2a69 Update the salt pip executable to salt-pip 2022-07-25 13:11:23 -06:00
Megan Wilhite
e7624d154a Update the salt pip executable to salt-pip 2022-07-25 13:11:00 -06:00
Alyssa Rock
dfc7ad0e27 Revise topic per Murphy's review 2022-07-22 06:57:53 -06:00
Alyssa Rock
9dc806f31a Add RHEL GPG key info 2022-07-22 06:57:53 -06:00
Alyssa Rock
0555d65725 Revise topic per Murphy's review 2022-07-22 06:57:45 -06:00
Alyssa Rock
1956bca055 Add RHEL GPG key info 2022-07-22 06:57:45 -06:00
Alyssa Rock
f87d581dde Add clarification per Shane's review 2022-07-21 06:53:31 -06:00
Alyssa Rock
2bccda6d91 Update release candidate documentation 2022-07-21 06:53:31 -06:00
Alyssa Rock
4329dd1a1a Add clarification per Shane's review 2022-07-21 06:52:44 -06:00
Alyssa Rock
f564196951 Update release candidate documentation 2022-07-21 06:52:44 -06:00
Alyssa Rock
2a36446298 Add explanation for the issue 2022-07-20 13:53:31 -06:00
Alyssa Rock
8d94042e9c Add known issue about SSC 8.9.0 dependency 2022-07-20 13:53:31 -06:00
Megan Wilhite
c262491a0a Update versionadded from 3006 to 3005 2022-07-14 13:39:52 -06:00
Megan Wilhite
50e6892e2a Update changelog/versionadded for 3005 and add note for raspberry pi packages 2022-07-14 10:59:24 -06:00
nicholasmhughes
27e2363449 fix random_ doc header underline 2022-07-11 13:03:58 -06:00
nicholasmhughes
fdae7e9766 fixes saltstack/salt#62225 add sample and shuffle functions from random 2022-07-11 13:03:58 -06:00
Vinicius Becker
bc44b71122
Update quickstart.rst
Changes the bootstrap script to just one line.
2022-07-08 13:54:07 -03:00
Megan Wilhite
af24c29118 Update changelog 2022-07-06 08:27:47 -06:00
Alyssa Rock
be22d46ae4 Update code example 2022-07-06 08:27:25 -06:00
Alyssa Rock
1d83dcf50f Improve syntax and examples 2022-07-06 08:27:25 -06:00
Alyssa Rock
d014418797 Add clarification to version variables 2022-07-06 08:27:25 -06:00
Alyssa Rock
d8c65edd69 Fix inconsistency 2022-07-06 08:27:25 -06:00
Alyssa Rock
865d5c33f3 Fix release file name syntax 2022-07-06 08:27:25 -06:00
Alyssa Rock
ef6fa752e5 Update release candidate documentation 2022-07-06 08:27:25 -06:00
Megan Wilhite
264d02a8e9 Fix indentation error for doc generation 2022-06-30 13:24:11 -06:00
Ch3LL
7259f8b237 Add changelog and docs for 3005 release 2022-06-30 13:24:11 -06:00
Daniel Wozniak
d9343cca65
Merge forward 3004.2 (#62200)
* Check only ssh-rsa encyption for set_known_host

* Windows test fix

* Fix pre-commit

* add CentOS Stream to _OS_FAMILY_MAP, fix #59161

* added changelog and test

* fix syntax

* Use centosstream 8 for testing

* Use ? for matching spaces

Technically this isn't *quite* right as 'CentOSyStream' would also
match, but it's pretty reasonable:

- OS grains shouldn't ever be that kind of close
- This test is only swapping out spaces, and only for the os grain. That
  would mean there would have to be two OSes with grains that only
  differ by one having a space where another one has any other
  character.
- This test really isn't even about matching grains, we're just using
  compound matching and that's a reasonable one to use.

* Add centos stream when detecting package manager name

* Fix pre-commit

* Remove tests for fedora 32/33 EOL

* Remove tests for fedora 32/33 EOL

* Remove tests for fedora 33 EOL

* Use centosstream 8 for testing

* Use ? for matching spaces

Technically this isn't *quite* right as 'CentOSyStream' would also
match, but it's pretty reasonable:

- OS grains shouldn't ever be that kind of close
- This test is only swapping out spaces, and only for the os grain. That
  would mean there would have to be two OSes with grains that only
  differ by one having a space where another one has any other
  character.
- This test really isn't even about matching grains, we're just using
  compound matching and that's a reasonable one to use.

* 3002.9: Fix pre-commit

* 3003.5 Fix pre-commit

* [3002.9] Replace use of 'sl' with 'paper' for Arch tests, due to 'sl' having key issues

* Remove mojave testing

* Remove mojave and high sierra testing

* Remove mojave testing

* [3002.9] Fix cloud vultr size issue

* Update package name to aspnetcore-runtime-6.0 for redhat 8 pkg tests

* Update package name to aspnetcore-runtime-6.0 for redhat 8 pkg tests

* change amazon linux AMI

* Migrate `unit.modules.test_gpg` to PyTest

* Don't leave any `gpg-agent`'s running behind

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* Start a background process to generate entropy.

Some tests have failed because of not enough entropy which then makes
the test timeout.

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* A different approach at generating entropy

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* Turn entropy generation into a helper

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* change amazon linux AMI

* change amazon linux AMI

* [3004.2] Fix cloud vultr size issue

* Fix cloud requirements

* Skip pam tests on windows

* Update ami to try to get the tests running

* Update amis to try to get the tests running

* Fixing test_publish_to_pubserv_ipc_tcp, moving the call to socket.socket into the while loop.

* Add static requirements for 3.8 and 3.9 on Windows

* Fix requirements

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* The whole CI process is already slower than GH Actions, no caches.

* Pre-commit must not run with ``PIP_EXTRA_INDEX_URL`` set.

* Lint fixes

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* Compile cloud requirements

* Run add requirements files for 3.8 and 3.9

* Fix docs and cloud requirements

* [3003.5] Fix cloud vultr size issue

* Windows test fix

* Skip test if docker not running

* [3003.5] Fix pre-commit

* Update Markup and contextfunction imports for jinja versions >=3.1.

* update bootstrap to 2022.03.15

* update bootstrap to 2022.03.15

* skipping tests/pytests/integration/modules/test_virt.py on 3002.x and 3003.x branches.

* Windows test fix

* Skip PAM tests on Windows

Windows has no ctypes with the PAM bits, so we should go ahead and skip
on Windows.

* Skip PAM auth tests on Windows

Windows lacks the correct bits, so...

* Fix pre-commit

* Skipping tests since they're also skipped on the master branch

Fixes #403

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* Skip test that only runs because the patch binary is now available.

The feature though, was only added in 3004.

Fixes #404

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* Skip test which is only supposed to run in Linux

Fixes https://github.com/saltstack/salt-priv/issues/405

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* GPG tests do not work on windows yet

* Fix tests

* Fix pre-commit

* skip tests.integration.modules.test_mac_brew_pkg.BrewModuleTest.test_list_upgrades and tests.integration.modules.test_state.StateModuleTest.test_get_file_from_env_in_top_match on Mac OS.

* skip tests.integration.modules.test_mac_brew_pkg.BrewModuleTest.test_list_upgrades and tests.integration.modules.test_state.StateModuleTest.test_get_file_from_env_in_top_match on Mac OS.

* Removing skip, moving it to different PR.

* Skipping tests on 3002.9.

* test fix

* Do not run patch tests on 3003.5. Feature not added till 3004

* skipping tests/pytests/integration/modules/test_virt.py on 3002.x and 3003.x branches.

* Fix pre-commit

* [3004.2] Update freebsd ami

* Bump the git version for freebsd CI tests

* removing versions that are no longer available from the tests.pytests.scenarios.compat.test_with_versions tests.

* Skip tests on windows when NOT using static requirements

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* removing versions that are no longer available from the tests.pytests.scenarios.compat.test_with_versions tests.

* test_issue_36469_tcp causes a fatal python error when run on Mac OS, so skipping.

* Fix tests

* Fix pre-commit

* Do not run patch tests on 3003.5. Feature not added till 3004

* Skip archive tar tests on windows

* [3002.9] Skip archive tar tests on windows

* GPG tests do not work on windows yet

* Skip test which is only supposed to run in Linux

Fixes https://github.com/saltstack/salt-priv/issues/405

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* Skip test that only runs because the patch binary is now available.

The feature though, was only added in 3004.

Fixes #404

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* Skipping tests since they're also skipped on the master branch

Fixes #403

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* Fix pre-commit

* Fix pre-commit

* Fix pre-commit

* Fix pre-commit

* retry sdb.get if it returns None

None is an entirely valid return - see EtcdClient.get in
salt/utils/etcd_util.py

* drop py2/six

* fix etcd sdb.set as well

* Fix etdcd-sdb test failure

If docker container is up and running, but etcd isn't responding yet
it's possible that we get some failing tests. This should wait a
reasonable amount of time for things to come up. Or just skip the test.

* Fix etdcd-sdb test failure

If docker container is up and running, but etcd isn't responding yet
it's possible that we get some failing tests. This should wait a
reasonable amount of time for things to come up. Or just skip the test.

* Skip the tests from unit/transport/test_zero.py that are hanging on Mac.

* skip tests in tests/pytests/unit/states/test_archive.py for 3002.9

* 3002.9 Skipping  CA permissions tests on Windows, similar to 3003.5 and 3004.2

* change skipif to skip

* Rollback Windows AMIs to use Python 3.7

* Rollback AMI's to Python 3.7... fix tests

* Fix failing test_archive tests

* Build using pyenv

* Add symlinks to openssl and rpath

* Add shasum for zeromq 4.3.4

* Fix docs on scripts

* Build zeromq earlier, fix symlinks

* Bring 61446 to 3004.1 branch

* Add changelog and tests

* Fix schedule test flakiness

* Retry with new port if in use

* fixing failing tests, ensuring that the correct path is used.

* fixing failing tests, ensuring that the correct path is used.

* fixing failing tests, ensuring that the correct path is used.

* Re-enable tiamat-pip on windows

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* Bump duration time for windwos for test_retry_option_success

* Skip test cauing hangs

* go go pylint disable

* more pre-commit

* oh lint

* so many weird hook failures

* Add unit tests for PAM auth CVE

We could add functional tests if it's important enough, but this is the
narrowest place to test.

* Fix PAM auth CVE

Credit to @ysf

Previously we weren't checking the result of PAM_ACCT_MGMT.

* pylint disable

* rewrite hook changes

* Skip PAM auth tests on Windows

Since Windows ends out lacking the correct bits, no need to run tests
there.

* pre-commit fixes

* docs 3004.2 release

* Fix bug in tcp transport

* Fix the test_zeromq_filtering test

* skip test_npm_install_url_referenced_package on centos 7 and 8.

* Swapping CentOS Linux-8 for CentOS Stream-8

* Update build scripts to use pyenv

* Fix tests on MacOS

* Fix bug in tcp transport

* Fix test failures

* Update release notes and man pages for 3003.5

* Add 3002.9 changelog, release notes, man pages

* Update doc/topics/releases/3002.9.rst

Co-authored-by: Megan Wilhite <mwilhite@vmware.com>

* Fix requirements

* Fix imports

* Test fixup

* Fix merge warts

* fix merge wart in changelog

* Fix merge warts in tests

Co-authored-by: krionbsd <krion@FreeBSD.org>
Co-authored-by: Megan Wilhite <megan.wilhite@gmail.com>
Co-authored-by: Alexander Kriventsov <akriventsov@nic.ru>
Co-authored-by: Megan Wilhite <mwilhite@vmware.com>
Co-authored-by: Wayne Werner <wwerner@vmware.com>
Co-authored-by: Gareth J. Greenaway <gareth@saltstack.com>
Co-authored-by: David Murphy < dmurphy@saltstack.com>
Co-authored-by: Twangboy <leesh@vmware.com>
Co-authored-by: MKLeb <calebb@vmware.com>
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
Co-authored-by: Pedro Algarvio <palgarvio@vmware.com>
Co-authored-by: Thomas Phipps <tphipps@vmware.com>
Co-authored-by: Frode Gundersen <frogunder@gmail.com>
Co-authored-by: Alyssa Rock <alyssa.rock@gmail.com>
Co-authored-by: Alyssa Rock <43180546+barbaricyawps@users.noreply.github.com>
2022-06-29 10:10:06 -06:00
Alyssa Rock
d5e00219f1 Fix broken link 2022-06-27 21:52:15 -07:00
Alyssa Rock
3270ee1ac1 Fix broken link 2022-06-27 21:52:15 -07:00
Alyssa Rock
fcce6bd85d Remove links to old Salt install topics 2022-06-27 21:52:15 -07:00
Alyssa Rock
44fad98b5b Fix broken topic link 2022-06-27 21:52:15 -07:00