Commit Graph

52122 Commits (4a8d41dee5cfefcf862f7756e06ee512aac3bc8b)
 

Author SHA1 Message Date
jamesmarshall24 4a8d41dee5
Update Ansible release version to v2.12.10.post0. (#79098) 3 years ago
jamesmarshall24 cd25764de2
New release v2.12.10 (#79074) 3 years ago
jamesmarshall24 6bcb90a141
Update Ansible release version to v2.12.10rc1.post0. (#78994) 3 years ago
jamesmarshall24 12ae8f56ca
New release v2.12.10rc1 (#78936) 3 years ago
Matt Martz 351fa03bc9
[stable-2.12] Add ssh_args and friends back, add var for proxy_command (#78826) (#78838)
* [stable-2.12] Add ssh_args and friends back, add var for proxy_command (#78826)

Fixes #78750
(cherry picked from commit 1b47def)

Co-authored-by: Matt Martz <matt@sivel.net>

* Remove non-backportable changes

(cherry picked from commit ba2938a388)
3 years ago
Matt Martz 0d68ce2efb
[stable-2.12] Don't request repo updates when only testing modes (#78843) (#78851)
(cherry picked from commit 2542048)

Co-authored-by: Matt Martz <matt@sivel.net>
3 years ago
Christian Adams 8ab2040759
Update Ansible release version to v2.12.9.post0. (#78754) 3 years ago
Christian Adams fb44af4e7d
New release v2.12.9 (#78752) 3 years ago
Christian Adams f58678f09a
Update Ansible release version to v2.12.9rc1.post0. (#78719) 3 years ago
Christian Adams 301ab2bd52
New release v2.12.9rc1 (#78716) 3 years ago
Sviatoslav Sydorenko 12097c81b9
Fix pytest collection during test_host partial run (#78595)
Sometimes pytest errors out with an `ImportError` during its tests
collection stage when a Python package/directory containing the test
module does not have an `__init__.py` in it. This is being observed
under Python 3.9 and higher.

The patch provides a workaround for this problem but does not address
the root cause which is currently unknown.

Ref:
https://github.com/ansible/ansible/pull/78585#issuecomment-1220885431
(cherry picked from commit beb70daf14)
3 years ago
Kate Case 252c6551ff
Replace get_persistent_connection_options in task_executor with get_options (#74446) (#78591)
Replace get_persistent_connection_options with get_options
Remove special case for network sub_plugin in _set_plugin_options
Try to avoid mock connection pretending to be persistent
Rename variables->options to reflect what they actually are
Gather options for ssh_type_conn on network_cli
Drop reliance on sub_plugin["type"]

(cherry picked from commit bf1ef5a1f3)
3 years ago
Sviatoslav Sydorenko ee7f9b7936
Fail fast in stuck `ansible-galaxy-collection` (#78628)
This specific integration test gets stuck periodically causing the
Galaxy jobs to be killed on timeout wasting an hour of runtime. The
module that gets stuck waiting on Pulp is an in-test one, called
`setup_collections`. When it works, the task is complete in around 70
seconds but when it doesn't, it just freezes the whole play.

This patch attempts to make it fail faster by putting a reasonable
timeout value of 2 minutes.

(cherry picked from commit f1c56e988d)
3 years ago
Matt Martz ce1b0b2aa4
[stable-2.12] Filter AWS test AMI selection on any Fedora-Cloud-Base image (#78669) (#78670)
(cherry picked from commit 046c59d)

Co-authored-by: Matt Martz <matt@sivel.net>
3 years ago
Matt Clay 7e01d8084b
Fix bcrypt install for paramiko test on macOS. (#78646) 3 years ago
Sviatoslav Sydorenko ae6647bb75
[2.12] Disable `connection_paramiko_ssh` u/ FreeBSD 13.0+12.2 (#78644) 3 years ago
Matt Clay 632b220684
[stable-2.12] Fix file integration test chattr/lsattr check. (#78614) (#78619)
On BusyBox systems such as Alpine, chattr on a tmpfs fails with a status of 0 and output only on stderr.

This change updates the test to not assume output on stdout.

(cherry picked from commit 2e536c0afb)
3 years ago
Sandra McCann 0495e23430
Fix version switcher for Japanese docs (#78544)
* Fix version switcher for Japanese docs (#78432)

(cherry picked from commit 660aceaa77)

* update version to match branch

* remove extra symlink from cherry-pick
3 years ago
Akira Yokochi c8fa046269
fix configuration name (#78507)
(cherry picked from commit 7120f11907)
3 years ago
jamesmarshall24 7f711a736d
Update Ansible release version to v2.12.8.post0. (#78546) 3 years ago
jamesmarshall24 c3e329f565
New release v2.12.8 (#78529) 3 years ago
Christian Adams 553a5e292c
Update Ansible release version to v2.12.8rc1.post0. (#78477) 3 years ago
Christian Adams 19bd3ea529
New release v2.12.8rc1 (#78471) 3 years ago
Brian Coca 45185b03e2
Ensure atomic writes for cache file (#78208) (#78218)
* Ensure atomic writes for cache file

 helps avoid errors in highly concurrent environments

(cherry picked from commit f6419a53f6)
4 years ago
Kate Case 3379a7e32d
Decode vaulted args before sending over ansible-connection. (#78236) (#78247)
I'm not aware of a way to easily get vault secrets decoded on the
ansible-connection side without sending the vault secrets over the
connection in the same way, so just decode them for transport.

(cherry picked from commit fff14d7c1d)
4 years ago
Matt Martz 1cfda125ed
[stable-2.12] Fix KeyError for ansible-galaxy when caching paginated responses from v3 (#78325) (#78406)
* Fix KeyError for ansible-galaxy when caching paginated responses from v3

* changelog

* generate responses in loop for test

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

Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>

Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
4 years ago
Matt Clay 8c07cfdc49 [stable-2.12] ansible-test - Fix handling of args after `--` (#78328)
(cherry picked from commit 0012263c7a)

Co-authored-by: Matt Clay <matt@mystile.com>
4 years ago
Sviatoslav Sydorenko b53419c8f3
Drop custom repo from libuser install @ Alpine CI (#78305) (#78307)
`group` and `setup_cron` integration tests currently install `libuser` and `faketime`
packages respectively, from the non-default edge/testing repositories. It is no
longer necessary to do so for the former so this patch drops the repo option. As
for the latter, this patch includes a note explaining when the same could be done
for it too.

This patch also adds a note on installing `faketime` on Alpine in CI.

(cherry picked from commit 619a1fa7e2)
4 years ago
samccann 1c964ff27e EOL Ansible 5 4 years ago
Matt Clay e1ff779844 [stable-2.12] ansible-test - Improve pip bootstrap download.
(cherry picked from commit b9d13d222c)

Co-authored-by: Matt Clay <matt@mystile.com>
4 years ago
Dimitri Savineau ea451113cf
Update Ansible release version to v2.12.7.post0. (#78096) 4 years ago
Dimitri Savineau fbaea4c269
New release v2.12.7 (#78085) 4 years ago
Dimitri Savineau 2f42779548
Update Ansible release version to v2.12.7rc1.post0. (#78045) 4 years ago
Dimitri Savineau 531123a311
New release v2.12.7rc1 (#78034) 4 years ago
Matt Clay fa3f74af91
[stable-2.12] Update AZP test container to 3.0.0. (#78023)
(cherry picked from commit 1321d6ecd5)
4 years ago
Matt Clay 117414e5c2
[stable-2.12] ansible-test - Adjust unit test mock usage. (#78003)
* ansible-test - Prefer unittest.mock for core.

(cherry picked from commit 81351022d8)

* ansible-test - Adjust unit test mock usage. (#77961)

(cherry picked from commit 23914d3f0b)
4 years ago
Matt Davis 482ce8fa8b
fix pip module resolution (#78000) (#78005)
* `importlib.util` appears to be lazily imported and is sometimes unavailable as an attribute of `importlib` without an explicit import

(cherry picked from commit 6e78425f8d)
4 years ago
Matt Clay 2cc9333e97
[stable-2.12] Make fuzzy plugin matching deterministic. (#77998)
(cherry picked from commit 5a0b230e24)

Co-authored-by: Matt Clay <matt@mystile.com>
4 years ago
Sloane Hertel daf160bc67
Add toggle to fix module_defaults with module-as-redirected-action on a per-module basis (#77265) (#77900)
* If there is a platform specific handler, prefer the resolved module over the resolved action when loading module_defaults

Add a toggle for action plugins to prefer the resolved module when loading module_defaults

Allow moving away from modules intercepted as actions pattern

Fixes #77059

(cherry picked from commit 621e782ed0)
4 years ago
Felix Fontein f4d7f33513
Update PSF-license.txt to version from CPython 3.9.5. (#77805) (#77828)
(cherry picked from commit 201aba3d0f)
4 years ago
Sandra McCann 0eb8e5e571
stub out ipaddr page and point to new home (#77281) (#77939)
(cherry picked from commit dfda04894f)
4 years ago
Matt Clay 832a762c2b [stable-2.12] Avoid deprecated method in unit tests.
(cherry picked from commit 5f74350fd5)

Co-authored-by: Matt Clay <matt@mystile.com>
4 years ago
jamesmarshall24 f6b028341b
Update Ansible release version to v2.12.6.post0. (#77881) 4 years ago
jamesmarshall24 a1683d3dab
New release v2.12.6 (#77864) 4 years ago
Dimitri Savineau 04ab182ef9
Update Ansible release version to v2.12.6rc1.post0. (#77813) 4 years ago
Dimitri Savineau 01cbef9476
New release v2.12.6rc1 (#77810) 4 years ago
Sandra McCann 48689b63e4
update version switcher to include 2.13 (#77786) (#77796)
(cherry picked from commit f5642cea28)
4 years ago
Matt Davis 092d298b5c
fix SELinux facts tests (#77708)
* make the pre-flight sniffing more robust to different failure conditions (was failing on Ubuntu 22.04 VMs)
* remove skip aliases (the test needs to function everywhere to assert that the selinux facts bits behave properly when it's N/A)

(cherry picked from commit 4ff10fcd31)
4 years ago
Brian Coca a9f17d0532
dont rely on path to set config defs for plugins (#77659) (#77695)
(cherry picked from commit a3cc6a581e)
4 years ago
Sam Doran 4bde2d8a97
[stable-2.12] arg_spec - Return aliases in validation result and update aliases (#77576) (#77602)
* [stable-2.12] arg_spec - Return aliases in validation result and update aliases (#77576)

When looking up the `no_log` setting for a parameter that is an alias in
`AnsibleModule._log_invocation()`, the alias value will always be an
empty dictionary since `self.aliases` on the `AnsibleModule` instance is
never updated after initialization. Since the `no_log` setting is on the
canonical parameter not the alias, an incorrect warning is issued if the
parameter matches `PASSWORD_MATCH`.

This PR returns the aliases dictionary as an attribute of the
`ValidationResult` and updates the `aliases` attribute on the
`AnsibleModule` instance.
(cherry picked from commit 1b947eaf92)

Co-authored-by: Sam Doran <github@samdoran.com>

* Rewrite test comprehension for Python 2.6

* No need for list inside the dict constructor
4 years ago