Commit Graph

48307 Commits (21eac8aba43e667bde23233a3f104f5839287046)
 

Author SHA1 Message Date
Sam Doran 21eac8aba4 Move file needed by cs_volume test to S3
There is a bad mirror missing the file and it is causing tests to fail.
5 years ago
Rick Elrod 33a28f678d Update Ansible release version to v2.9.19.post0. 5 years ago
Rick Elrod 98cb6fe4eb New release v2.9.19 5 years ago
Rick Elrod fb0a2b328e Update Ansible release version to v2.9.19rc1.post0. 5 years ago
Rick Elrod 49384aecdd New release v2.9.19rc1 5 years ago
Mark Chappell 08538ef0b1
New AWS module mod_defaults - iam_saml_federation (#73669) 5 years ago
Mark Chappell a90e731cea
New AWS module mod_defaults - ec2_vpc_endpoint_service_info (#73670) 5 years ago
Rhys d0703a8c7d
Update mongodb replicaset check_compatibility function (#72299)
* Update check_compatibility function
5 years ago
Felix Fontein fc1f44e794
Backport of https://github.com/ansible-collections/community.crypto/pull/180 to stable-2.9. (#73815) 5 years ago
Felix Fontein 68f32e43c1
Backport of https://github.com/ansible-collections/community.docker/pull/88 to stable-1. (#73816) 5 years ago
Felix Fontein 5855df4f0f
Backport of bugfix parts of https://github.com/ansible-collections/community.docker/pull/87/ to stable-2.9. (#73817) 5 years ago
Sam Doran 35c3b3d42d
[stable-2.9] Add AlmaLinux to the family of Red Hat-like operating systems (#73541) (#73544)
* Add changelog and fixtures for AlmaLinux support

Co-authored-by: Christoph Schug <com+github@schug.net>.
(cherry picked from commit 2f5c83dfb1)

Co-authored-by: Sam Doran <sdoran@redhat.com>
5 years ago
Matt Martz 4c503fe3b1
[stable-2.9] Don't treat host_pinned as lockstep (#73484) (#73513)
* [stable-2.9] Don't treat host_pinned as lockstep (#73484)

* Don't treat host_pinned as lockstep. Fixes #73364

* Add intg tests.
(cherry picked from commit d3f3784b86)

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

* Make non-lockstep callback tests more deterministic (#73511)

(cherry picked from commit 125c220343)
5 years ago
Felix Fontein fc4c154a8e
Backport of 8702713ac3 (#73638) 5 years ago
Alexander Sowitzki 58524e4096
[stable-2.9] Bump azure-pipelines-test-container to version 1.8.0 (#73550)
(cherry picked from commit c3e2bdd3a8)

Co-authored-by: Alexander Sowitzki <asowitzk@redhat.com>
5 years ago
Gonéri Le Bouder cf53554cf5
[ansible-test] attempt to work around podman (#72096) (#73570)
Change:
- podman > 2 && < 2.2 does not support "images --format {{json .}}"
- podman also now outputs images JSON differently than docker
- Work around both of the above.

Test Plan:
- Tested with podman 2.0.6 in Fedora 31.

Signed-off-by: Rick Elrod <rick@elrod.me>
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
(cherry picked from commit 0332046699)
5 years ago
Gonéri Le Bouder 462edf003e
ansible-test: yamllint, check the assigment (#73584)
Ensure `yamllint`'s `check_assignment()` correctly ignore the
attribute assignment. Those don't have any `.id` attribute and will
trigger an `AttributeError` exception.

See: https://github.com/ansible/ansible/pull/73322
(cherry picked from commit 0a8d5c0983)
5 years ago
Sam Doran 8493662b89
[stable-2.9] hostname - add Almalinux support (#73619) (#73649)
(cherry picked from commit ac0dedda72)

Co-authored-by: Aaron Guise <guisea@users.noreply.github.com>
5 years ago
Matt Martz 0d20c829a2
[stable-2.9] Normalize ConfigParser between Python2 and Python3 (#73715) (#73724)
* [stable-2.9] Normalize ConfigParser between Python2 and Python3 (#73715)

* Normalize config parser between py2 and py3

* Add tests and changelog

* Use different config entry, since we supply certain env vars.
(cherry picked from commit 950ab74758)

Co-authored-by: Matt Martz <matt@sivel.net>
5 years ago
Zadkiel d3376f1b20
terraform: Remove line that is suppressing output being shown (#66322) (#73803)
* remove the line that is suppressing the output being shown when running
terraform from ansible
* Address #56934 and #57044
* added changelog for bug fix for missing terraform output

Co-authored-by: Ric de France <41117503+ric-man@users.noreply.github.com>
Co-authored-by: Adam <adam.lemanski@gmail.com>
5 years ago
Sam Doran 5a9f4f7bb3 Move win_uri to a group that does not reboot the test instance
Another test in group3 reboots the test instance, killing the ssh connections
needed for access to the httptest container.

ci_complete
5 years ago
Sam Doran 733704f97e Rebalance Windows test groups to avoid timeouts 5 years ago
Sam Doran 55a3f2e1eb Update signing key used in incidental_setup_flatpak_remote tests
The original key was created using the default expiration time of two years.
Signed the repo again using a key that expires in twenty years.
5 years ago
Ashwini Mhatre 67e0d9a481
[stable-2.9]:Fix IOSXR integration test (#73607)
* Fix integration testcase in netconf_config for iosxr
5 years ago
Rick Elrod 0d83804e8b Update Ansible release version to v2.9.18.post0. 5 years ago
Rick Elrod 4455e60166 New release v2.9.18 5 years ago
Rick Elrod 83fc193cb6
[mongodb tests] Wait for ports in TIME_WAIT (#73655)
Change:
- The latest mongodb we install causes processes to not die correctly
  (they end up as zombies), and this causes the ports they listen on to
  be held in TIME_WAIT. We need to wait for them to fall out of
  TIME_WAIT before we can continue and use them again.

Test Plan:
- CI
- Local playing in containers

Signed-off-by: Rick Elrod <rick@elrod.me>
5 years ago
Matt Clay b20547af70 Fix cryptography install in ansible-test.
This fix is based on https://github.com/ansible/ansible/pull/73530/
5 years ago
Rick Elrod f5d61a4a0a New release v2.9.18 5 years ago
Rick Elrod 7a7f5a7006 Update Ansible release version to v2.9.18rc1.post0. 5 years ago
Rick Elrod 16ba79b5ac New release v2.9.18rc1 5 years ago
Andrew Klychkov 069311bff3
postgresql_query: fix datetime.timedelta type handling (#73520) 5 years ago
Jordan Borean 49ebd509df
no_log mask suboption fallback values and defaults CVE-2021-20228 (#73487) (#73493)
(cherry picked from commit 0cdc410dce)
5 years ago
Jordan Borean e9838486bd
bugfix: use to_text(stdout) in psrp.Connection.put_file method (#73491) - 2.9 (#73495)
* bugfix: use to_text(stdout) in psrp.Connection.put_file method (#73491)

Co-authored-by: jakegatsby <jakegatsby@example.com>
(cherry picked from commit f271d02a9f)
5 years ago
Rick Elrod d268891703
[setup_rpm_repo test] Ensure rpm-build is present (#73516) (#73515)
Change:
- Other targets might remove rpm-build as they clean up after
  themselves. Ensure that it's present in setup_rpm_repo because
  rpmfluff needs it.

Test Plan:
- Local experimentation with yum_repository and mysql_db (the latter of
  which depends on a handler which was removing rpm-build) on
  stable-2.9.

Signed-off-by: Rick Elrod <rick@elrod.me>
(cherry picked from commit aca5b0e43b)
5 years ago
Abhijeet Kasurde 10d81272b7
[bp-2.9] snmp_facts: Hide user sensitive information in console (#73188)
**SECURITY** - CVE-2021-20178

Hide user sensitive information like `privkey` and `authkey`
while logging in console.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
5 years ago
Sam Doran e3c08d001d
[stable-2.9] pause - adjust warning when run in background (#73182) (#73230)
When the pause module is run in the background and seconds parameter is provided,
do not warn.

* Add tests
* Fix existing tests
  The test wasn't failing when it should have.
(cherry picked from commit 0e6c334115)

Co-authored-by: Sam Doran <sdoran@redhat.com>
5 years ago
Sam Doran 3361517fa9
[stable-2.9] facts - properly report virtualization facts for Linux guests on bhyve (#73204). (#73234)
(cherry picked from commit df451636e7)

Co-authored-by: Sam Doran <sdoran@redhat.com>
5 years ago
Abhijeet Kasurde 4290d704b1
[bp-2.9] bitbucket_pipeline_variable: Hide secured values in console log (#73243)
**SECURITY** - CVE-2021-20180

Hide user sensitive information which is marked as ``secured``
while logging in console.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
5 years ago
Andrew Klychkov 2282325334
mysql_user: Add missed privileges support (#73271)
Co-authored-by: Andrew Klychkov <andrew.klychkov@gmail.com>
5 years ago
Andrew Klychkov 98973468da
postgresql_ping, postgresql_info: fix crash related to PgSQL version parsing (#73285)
Co-authored-by: Andrew Klychkov <andrew.klychkov@gmail.com>
5 years ago
Andrew Klychkov 2b217c9c9b
postgresql_set: Return a message when a passed parameter has not been found (#73286)
Co-authored-by: Andrew Klychkov <andrew.klychkov@gmail.com>
5 years ago
Sam Doran 0435079477
[stable-2.9] Fix YAML error message when error is at the end of the file (#73241) (#73297)
If a YAML file fails to load due to a syntax error in a file, or there is an error in the last line of a
file, PyYAML reports the last line number of the file as the index where the error occurred.

When reading the file lines, we use that index to the get the relevant line.  If the index value is out
of range, the relevant line is lost for error reporting.

Subtract one from the index value to avoid the IndexError in this specific scenario. It is possible
to still get an IndexError, which will be handled as it is currently.

* Update existing tests and add new tests
(cherry picked from commit e8d4b62b41)

Co-authored-by: Sam Doran <sdoran@redhat.com>
5 years ago
Martin Krizek 65fdc41fb1
Local vars should have highest precedence in AnsibleJ2Vars (#72830) (#73369)
Ability to add local variables into AnsibleJ2Vars was added in
18a9eff11f to fix #6653. Local variables
are added using ``AnsibleJ2Vars.add_locals()`` method when creating a
new context - typically when including/importing a template with
context. For that use case local template variables created using
``set`` should override variables from higher contexts - either from the
play or any parent template, or both; Jinja behaves the same way.

Also removes AnsibleJ2Vars.extras instance variable which is not used.

Also adds missing test for #6653.

Fixes #72262
Fixes #72615

ci_complete

(cherry picked from commit a2af8432f3)
5 years ago
Jordan Borean 8e5aab4d76
Support large folder size comparisons for win_find (#58466) (#73382)
Changed [int] to [int64] to support larger folders. Otherwise module fails as soon as a large folder is encountered.

(cherry picked from commit 8def67939d)

Co-authored-by: joshinryz <josh.robinett@gmail.com>
5 years ago
Andrew Klychkov 6f4ea2f19e
postgresql_query: fix decimal handling (#73414)
Co-authored-by: Andrew Klychkov <andrew.klychkov@gmail.com>
5 years ago
Sloane Hertel d8a82154d4
[2.9] Fix warning for nonexistent inventory cache (#72840) (#73444)
* Fix inventory cache warning by checking if the key exists before loading it

(cherry picked from commit 840bdc1e10)
5 years ago
Rick Elrod 96f8456680
no_log keycloak_client's registration_access_token (#73502)
Change:
- Address missing no_log change from #73489.

Tickets:
- Refs #73489

Signed-off-by: Rick Elrod <rick@elrod.me>
5 years ago
Rick Elrod d74a1b1d13
[security] Add no_log to several module args (CVE-2021-20191) [2.9] (#73489)
Change:
- A number of modules were missing no_log=True where they should have
  had it.

Test Plan:
- Lots of grepping.

Tickets:
- Refs https://github.com/ansible-collections/community.general/pull/1725

Signed-off-by: Rick Elrod <rick@elrod.me>
5 years ago
Sam Doran 474044b10d [stable-2.9] Make yum_repository test more reliable (#73467)
* Improve setup_rpm_repo

- add handlers to remove repos
- add variable to control whethere or not repos are created

* Use local repo for all distros
* Change repo creation script to module.
(cherry picked from commit 997b2d2a19)

Co-authored-by: Sam Doran <sdoran@redhat.com>
5 years ago