Commit Graph

53823 Commits (398f0b2299f80d1881384a33e943be49d80daed4)
 

Author SHA1 Message Date
Matt Clay 398f0b2299
Update Ansible release version to v2.15.13rc1.post0. (#84201) 4 weeks ago
Matt Clay 6ec3e105f9
New release v2.15.13rc1 (#84196) 1 month ago
Matt Clay c208a74ef7
[stable-2.15] ansible-test - Improve container probe error handling (#84109) (#84188)
(cherry picked from commit 48be6f8b6f)
1 month ago
Matt Davis 8bcd4f39f4
[stable-2.15] Preserve `_ansible_no_log` from action result; fix `include_vars` to set properly (#84143) (#84182)
* fixes for CVE-2024-8775

* propagate truthy `_ansible_no_log` in action result (previously superseded by task-calculated value)
* always mask entire `include_vars` action result if any file loaded had a false `show_content` flag (previously used only the flag value from the last file loaded)

* update no_log tests for CVE-2024-8775
* include validation of _ansible_no_log preservation when set by actions
* replace static values with dynamic for increased robustness to logging/display/callback changes (but still using grep counts :( )

* changelog

* use ternary, coerce to bool explicitly
(cherry picked from commit c9ac477e53)
1 month ago
Jordan Borean f7e155973b
Add explicit winrm/psrp tests for HTTP and HTTPS (#83769) (#83808)
(cherry picked from commit dec49e6288)
1 month ago
Sloane Hertel 8f04327114
Fix ansible-vault integration test for missing vault ids (#83777) (#83784)
* Fix broken, circumvented test for missing vault ids

* verify the command returns a non-zero exit code

Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit fe7e68bfcb)
1 month ago
Brian Coca 03794735d3
[stable-2.15] user action, fix ssh-keygen issues (#84168)
* user module avoid conflicts ssh pub key (#84165)

Remove pub key if we are going to generate private
fix tests for os X

(cherry picked from commit 11e4a6a722)

* old python, no f''

* Restore test import missing from backport

---------

Co-authored-by: Matt Clay <matt@mystile.com>
1 month ago
Felix Fontein 7c6e61130f
runtime-metadata sanity test: do not fail deprecation version checks if galaxy.yml has empty `version` (#83831) (#83858)
* Do not create invalid SemanticVersion objects.
* Fix SemanticVersion.parse().
* Add basic runtime-metadata tests.

(cherry picked from commit faf446a895)
1 month ago
Sviatoslav Sydorenko (Святослав Сидоренко) 7eaba44b58
[2.15] Trim `selinux_policytype` @ integration tests (#84140)
The shell command sometimes prints a trailing whitespace which breaks
the tests on old RHELs. This patch is supposed to fix that.

(cherry picked from commit cd74c4bcd5)
1 month ago
Matt Clay de67a9dd69
[stable-2.15] release.py - Auto-update setuptools upper bound (#83713) (#83744)
* [stable-2.15] release.py - Auto-update setuptools upper bound (#83713)

When releases are prepared, the upper bound on setuptools in pyproject.toml will be automatically updated
to the latest version available on PyPI. This version will then be tested by the package-data sanity test
during the release process and will be used to build the release.

This change ensures that a released version of ansible-core can be built in the future if a new setuptools
release includes breaking changes that would prevent building a functional package. If a downstream package
maintainer requires a newer setuptools version than the upper bound permits, they can patch pyproject.toml
as needed. Since ansible-core releases support specific Python versions, lack of support for new setuptools
releases will have no effect on support for future Python versions.
(cherry picked from commit 4e69d83fac)

Co-authored-by: Matt Clay <matt@mystile.com>

* release.py - Add missing setuptools arg to prepare (#83887)

* release.py - Add missing setuptools arg to prepare

This allows the prepare command to accept the `--no-setuptools` argument.

It also fixes a traceback when using the `prepare` command.

* Use a more accurate type hint

(cherry picked from commit b544ac13ec)

* release.py - Include pyproject.toml in git add (#83892)

(cherry picked from commit e3ccdaaa2e)
2 months ago
Abhijeet Kasurde 7d9707f51b
[stable-2.15] Update any.yml (#83605)
* fixed typo in description
* fixed comment in examples

(cherry picked from commit 506d12de69)

Co-authored-by: Alex Barth <alexbarth92@outlook.com>
4 months ago
Matt Clay c188c6256e
[stable-2.15] tests: use keyserver with keyid while using apt_key (#83694) (#83703)
(cherry picked from commit 3daf01e270)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
4 months ago
Matt Clay c97610ddcf
[stable-2.15] ansible-test - Remove VyOS tests and support files (#83650) (#83653)
The VyOS remote image required for running the tests is no longer functional.
(cherry picked from commit 79f819dc54)
4 months ago
Matt Clay 24d70469ab
[stable-2.15] Use build instead of pep517 for integration test (#83640)
(cherry picked from commit f261a6142f)
4 months ago
Matt Clay 1918212ffb
[stable-2.15] Quality-of-life improvements for release tool (#83551) (#83560)
* Quality-of-life improvements for release tool

- Default devel releases to b1
- Default non-devel releases to rc1
- Default to release announcement to console
- Avoid auto-links in GH release annoucements for file sizes

(cherry picked from commit 20a815b03f)
5 months ago
Sviatoslav Sydorenko (Святослав Сидоренко) 60ff7ddc0f
[2.15] 🧪 Switch CentOS 7 yum repo mirrors to the vault (#83525)
The distro itself reached EoL on June 30, 2024, but these repository
archives live on and should remain usable for testing.

Refs:
* https://www.redhat.com/en/topics/linux/centos-linux-eol
* https://github.com/ansible/pylibssh/commit/01d3442f
* https://gist.github.com/hkneptune/4961532c2df691db79a1c6b72c251b25
* https://vault.centos.org/7.9.2009/

(cherry picked from commit c8c45cdfb4)

(PR #83523)
5 months ago
Matt Clay 25273bf901
[stable-2.15] ansible-test - Update PyPI test container to 3.1.0 (#83432). (#83441)
(cherry picked from commit 5af5b4b6c8)
6 months ago
Martin Krizek 829a32a3eb
[stable-2.15] Use f38 official repo for libdnf5 package (#83419)
The nightly copr repo for Fedora 37 is no longer available
and python3-libdnf5 is not present in the official Fedora 37 repository,
try and use Fedora 38 repo for installing python3-libdnf5 instead.
6 months ago
Matt Clay 80d1323082
Update azure-pipelines-test-container (#83377) 6 months ago
Matt Clay 852966081e
ansible-test - Drop Windows 2012/2012-R2 support (#83379) 6 months ago
Matt Martz 309234174f
Update Ansible release version to v2.15.12.post0. (#83282) 6 months ago
Matt Martz 62cf583eed
New release v2.15.12 (#83277) 6 months ago
Matt Martz 65ddf9d275
Update Ansible release version to v2.15.12rc1.post0. (#83244) 7 months ago
Matt Martz c72ab567cd
New release v2.15.12rc1 (#83240) 7 months ago
Jordan Borean 3f01fd9be9
Add version ceiling for pypsrp (#83122) (#83162)
* Add version ceiling for pypsrp

Add a version ceiling for the pypsrp requirements. This ensures that the
future v1.0.0 release won't impact existing users who install the
library using the version range specified.

* Use constraints file

* Add changelog for this change

(cherry picked from commit 2ed6c30929)
7 months ago
Matt Clay d65905f998
[stable-2.15] ansible-test - Use PyPI proxy for centos7 (#83226) (#83228)
(cherry picked from commit c0f7e9cc2c)
7 months ago
Abhijeet Kasurde 2e32adac3f
[stable-2.15] facts: Add a generic detection for VMware product name (#83109)
* Use startswith instead of hardcoded values in VMWare product
  detction

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
7 months ago
Sloane Hertel 6fe3b64990
Fix installing roles containing symlinks (#82911) (#83138)
* Fix installing roles containing symlinks

Fix sanitizing tarfile symlinks relative to the link directory instead of the archive

For example:

role
├── handlers
│   └── utils.yml -> ../tasks/utils/suite.yml

The link ../tasks/utils/suite.yml will resolve to a path outside of the link's directory, but within the role

role/handlers/../tasks/utils/suite.yml

the resolved path relative to the role is tasks/utils/suite.yml, but if the symlink is set to that value, tarfile would extract it from role/handlers/tasks/utils/suite.yml

* Replace overly forgiving test case with tests for a symlink in a subdirectory of the archive and a symlink in the archive dir when these are not equivalent.

* Build test case from role files to make it easier to add test cases

Fixes #82702
Fixes #81965
Fixes #82051

(cherry picked from commit e84240db84)
7 months ago
Abhijeet Kasurde 04e6c51445
[stable-2.15] uri: update docs for follow_redirects (#83178)
* [stable-2.15] uri: update docs for follow_redirects

* Updated the docs for the parameter follow_redirects

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit fcc6d0bd0c)

* CI fixes

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>

---------

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
7 months ago
Matt Martz 4403519afe
[stable-2.15] Don't hardcode the dnf module, dynamically select one (#83183). (#83186)
(cherry picked from commit dc6b77beca)
7 months ago
Matt Martz 42baf82a73
Update Ansible release version to v2.15.11.post0. (#83121) 7 months ago
Matt Martz 8d26bde9cb
New release v2.15.11 (#83118) 7 months ago
Matt Davis 0304949246
Update Ansible release version to v2.15.11rc1.post0. (#83066) 8 months ago
Matt Davis c91ece9edf
New release v2.15.11rc1 (#83063) 8 months ago
Matt Clay 95074d4099 [stable-2.15] Update sdist path in release tool
The latest setuptools package uses a normalized package name for the sdist.
(cherry picked from commit 8bc0d809a6)

Co-authored-by: Matt Clay <matt@mystile.com>
8 months ago
Matt Davis 42688586b5
Revert "New release v2.15.11 (#83044)" (#83057)
Should've been an rc1- reverting to use normal release process.

This reverts commit f0f806c022.
8 months ago
Matt Davis f0f806c022
New release v2.15.11 (#83044) 8 months ago
Abhijeet Kasurde a90fd26ddf
[bp-2.15] Fixes permission for cache json file to 644 (#83016)
Until ansible-core 2.12 the facts cache file created by this module, have permission set as 644 which allows the other users to read the cache, since ansible-core 2.13, we create the temporary file, but we do not set the permission after renaming the temporary file.  Adding the line to set the permission to allow other users/groups to read this file.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Co-authored-by: Rudnei Bertol Junior <rudnei@redhat.com>
8 months ago
Jordan Borean 8e07b46bde
winrm - Handle task timeout (#82784) (#82863)
When using winrm over HTTP with message encryption enabled and a task
has timed out the connection plugin will fail to cleanup the WinRM
command. This will change that exception into a warning as a timeout is
already an exception event and a failure to clean the operation should
not override the timeout error shown.

(cherry picked from commit 8aecd1f9b2)
8 months ago
Brian Coca 2324b6852c
Unarchive get zipinfo on more OS/distros (#82873) (#82876)
Not all implementations use -l as default for -Z on unzip

(cherry picked from commit 481d8bdc1e)
8 months ago
Martin Krizek f780c434a9
2.15: dnf5: replace removed API calls and add fallbacks (#83027)
* dnf5: replace removed API calls (#83020)

* dnf5: replace removed API calls

bfb6f32e15
96c9188f9c

* call set_group_with_name instead of setting group_with_name

c7b88428f3

---------

Co-authored-by: Matt Martz <matt@sivel.net>
(cherry picked from commit 4e57249d59)

* Fallbacks for brand new APIs that don't exist in released dnf5 (#83022)

(cherry picked from commit 57750e2cf7)

---------

Co-authored-by: Matt Martz <matt@sivel.net>
8 months ago
Felix Fontein 8ba086ce87
Do not mangle plugin names in collections that start with an underscore. (#82574) (#82886)
(cherry picked from commit c0821346fc)
8 months ago
Sloane Hertel 12239abf72
fix handling allow_duplicates with the role cache (#82691) (#82928)
allow_duplicates is not part of the role uniqueness, so the value on the cached role may not match the current role.

* remove the allow_duplicates check from Role.has_run() which operates on the deduplicated role
* check the current role's allow_duplicates value in the strategy

(cherry picked from commit b3d8cdde5d)

Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
8 months ago
Matt Martz ba588f1b79
Update Ansible release version to v2.15.10.post0. (#82909) 8 months ago
Matt Martz 2c7e56732f
New release v2.15.10 (#82906) 8 months ago
Matt Clay 7bed756498
[stable-2.15] ansible-test - Fix Alpine libexpat bootstrapping (#82897)
(cherry picked from commit ca168eb367)
8 months ago
Matt Martz 4008e2cf70
Update Ansible release version to v2.15.10rc1.post0. (#82842) 9 months ago
Matt Martz 78381daaa5
New release v2.15.10rc1 (#82838) 9 months ago
Jordan Borean 9b07e69822
Re-enable psrp tests that were disabled (#82785) (#82787)
(cherry picked from commit bb030db546)
9 months ago
Jordan Borean 8190a2ad7a
Avoid winrm hang on stdin write failure (#82766) (#82781)
If the connection plugin fails to write the data to run to stdin we will
only attempt to get the output with one operation attempt. If this times
out we will consider the command to have failed and raise an exception
instead of forever attempting to get the output.

(cherry picked from commit 942424e10b)
9 months ago