Commit Graph

48183 Commits (c73c5477e5ded0a8940ff682cce38d1646971f8d)
 

Author SHA1 Message Date
Matt Clay c73c5477e5 [stable-2.9] Fix container discovery for the acme test plugin.
(cherry picked from commit f022dedd0a)

Co-authored-by: Matt Clay <matt@mystile.com>
5 years ago
Sam Doran e78d9d97c8
[stable-2.9] [dnf] Some fixes around filtering (#72483) (#72501)
* [stable-2.9] [dnf] Some fixes around filtering (#72483)

Change:
- Docs: Add note that security/bugfix apply to dependencies too, like
  the dnf command.

- dnf: security/bugfix only makes sense for updates, so limit the
  package query sack to available updates.

- tests: Limit tests to our known-good test packages, so that RHEL
  packages marked security/bugfix without similarly marked dependencies
  don't fail our tests.

Test Plan:
- Tested with `dnf upgrade-minimal --bugfix` and reproduced the same
  error currently seen in CI, showing that we are consistent with what
  dnf does.

Tickets:
- Likely fixes #72316

Signed-off-by: Rick Elrod <rick@elrod.me>
(cherry picked from commit d8c637da37)

Co-authored-by: Rick Elrod <rick@elrod.me>

* Add changelog (#72502)

(cherry picked from commit b33d7e2e29)

Co-authored-by: Rick Elrod <rick@elrod.me>
5 years ago
Sandra McCann d3db411c89
clarify upstream release status of 2.10 (#72269) (#72490)
* clarify upstream release status of 2.10

(cherry picked from commit d76f85208d)
5 years ago
Matt Clay 6f29ab5203 [stable-2.9] Fix ansible-test tar format handling.
(cherry picked from commit 49d8d5ae33)

Co-authored-by: Matt Clay <matt@mystile.com>
5 years ago
Rick Elrod 69c3456865 Update Ansible release version to v2.9.15.post0. 5 years ago
Rick Elrod 9e58793835 New release v2.9.15 5 years ago
Matt Martz 304f6b256c
[stable-2.9] Update pip tests to omit install dev extras to avoid dep issues (#72436) (#72439)
(cherry picked from commit 2ee5af5)

Co-authored-by: Matt Martz <matt@sivel.net>
5 years ago
Rick Elrod dea0bbc273 Update Ansible release version to v2.9.15rc1.post0. 5 years ago
Rick Elrod f9bc656642 New release v2.9.15rc1 5 years ago
Matt Davis 84aa943195
Remove ansible-galaxy login (#72288) (#72325)
* GitHub is removing the underlying API used to implement the `login` command. Since the general consensus seems to be that relatively nobody currently uses this command (in favor of explicit token passing), support was simply removed for interactive login. If a future need arises, this command should be reimplemented via OAuth Device Auth Grants.
* login or role login commands now produce a fatal error with a descriptive message
* updated 2.10 porting guide entry

* remove dead code/config, update messages and porting guides

(cherry picked from commit 83909bfa22)
5 years ago
Felix Fontein 7fe2a22f70 ansible-test ansible-doc sanity test: disable vars plugins for collections 5 years ago
Ruediger Pluem 04989ae052
Fix the reversed order of return values (#72088) (#72340)
AnsibleModule.run_command returns a tuple of return code, stdout and stderr.
The module main function of the user module expects user.create_user to
return a tuple of return code, stdout and stderr.
Fix the locations where stdout and stderr got reversed.

(cherry picked from commit e64ba97e8a)
5 years ago
Jill R b4eebe66d8
New AWS module mod_defaults (#72145)
To support this new module in CI, we need it to be in 2.9s mod_defaults
5 years ago
Andrew Klychkov e7b2ba4ef6
postgresql_pg_hba: fix a crash when a new rule with an 'options' field replaces a rule without or vice versa (#72290) 5 years ago
Rick Elrod 2beeeb8a27 show installations/removals in check_mode (#70892)
Change:
- Previously, we only showed that something would have changed, not what
  would have changed. This allows us to show what will chang as well.

Test Plan:
- Local RHEL8 VM
- New integration tests

Tickets:
- Fixes #66132

Signed-off-by: Rick Elrod <rick@elrod.me>
5 years ago
Rick Elrod 49d5462f16 accumulate update filters (#71726)
Change:
- Previously when `security: true` and `bugfix: true` were both given,
  only security updates would get applied. Filters now accumulate so
  that both get applied in this case.

Test Plan:
- New integration tests for both check_mode and not. These tests make
  use of a contrived yum repository which is stored in S3.

Tickets:
- Fixes #70854

Signed-off-by: Rick Elrod <rick@elrod.me>
Co-authored-by: Matt Martz <matt@sivel.net>

Co-authored-by: Matt Martz <matt@sivel.net>
5 years ago
Martin Nečas 991272e53e
Backport: ovirt_disk don't move disk when already in storage domain (#72194) 5 years ago
Hobnob 0eab1dcc00
Fix zfs snapshot handling on root zvols (#72254) 5 years ago
Jordan Borean 38baaee019
Fix race condition when creating async dir (#72069) (#72258)
* Fix race condition when creating async dir

* Simplify exception wrapper

* Remove var used for testing

(cherry picked from commit c9fa1d0e7e)
5 years ago
Mario Lenz a33ae8b27f
Fix issue with duplicate custom attribute names (#72058) 5 years ago
Abhijeet Kasurde 4ab20bdd76
[2.9] nmcli: Typecast parameter values to string as required (#72094)
Fixes: https://github.com/ansible-collections/community.general/issues/1023

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
5 years ago
Ruediger Pluem 3d17393f61
user - allow local users with an expiry date to be created (#72022) (#72086)
The luseradd / lusermod commands do not support the -e option. Set
the expiry time in this case via lchage after the user was
created / modified.

Fixes: #71942

In Python3 math.floor returns an integer whereas Python2 returns a float.
Hence always convert the result of math.floor to an int to ensure that
lexpires is an integer.

Move local expires tests in a separate file and import the tasks to the
main.yml to keep main.yml smaller.

(cherry picked from commit a7170da851)
5 years ago
Sam Doran 0cab929d2d
[stable-2.9] Allow changed/failed mgmt on strategy actions (#70919) (#72118)
* Allow changed/failed mgmt on strategy actions.
(cherry picked from commit f9c3c6cba6)

Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
5 years ago
Christian Loos 4a1555fb0a
fix distribution fact for SLES4SAP (#71559) (#72029)
b6b238a fixed the SLES4SAP detection, which was at this time ok.
Sadly Suse changed with SLES 15 the /etc/os-release file, so the above
change will no longer work.

This commit updates the SLES4SAP detection regarding
https://www.suse.com/support/kb/doc/?id=000019341.

The symlink realpath is matched with endswith, because in SLES 12+ the
link target is SLES_SAP.prod, but in SLES 11 the link target is
SUSE_SLES_SAP.prod.

(cherry picked from commit ea119d3089)
5 years ago
Andrew Klychkov 30e735c4d8
[2.9] postgresql_privs: fix the module mistakes a procedure for a function (#72014)
* postgresql_privs: fix the module mistakes a procedure for a function

* Fix CI
5 years ago
Jordan Borean 7720cd239e
powershell - remove env var (#72010) (#72011)
(cherry picked from commit 3c33618cf6)
5 years ago
Matt Clay 8fc579061f [stable-2.9] [stable-2.10] Fix ansible-test handling of user-defined docker networks. (#72256)
* Fix ansible-test docker container detection.

* Attach test containers to the correct network.

* Do not assume `localhost` for accesing Docker.

* Look for containers on current network.

* Always map /var/run/docker.sock into containers.

This fixes issues when using a remote Docker host.

* Support container IP lookup from networks list.

* Fix container network attachment.

* Remove redundant container detection messages.

* Limit DOCKER_HOST parsing to TCP.

* Restore docker socket existence check.

The check is skipped if the docker hostname is not localhost.

* Correct changelog entry..
(cherry picked from commit 3c2e8b99be)

Co-authored-by: Matt Clay <mclay@redhat.com>.
(cherry picked from commit 6362232c30)

Co-authored-by: Matt Clay <mclay@redhat.com>
5 years ago
Matt Clay a02d29ea09
CI stability updates. (#72306)
* Avoid issues with user-defined docker networks.
* Increase CI timeout.
5 years ago
Matt Clay c54dc50bd7
[stable-2.9] Fix ansible-test Azure Pipelines container auth. (#72283)
(cherry picked from commit 2ef4b7e07e)

Co-authored-by: Matt Clay <matt@mystile.com>
5 years ago
Abhijeet Kasurde 7529d31ba9
[2.9] kubectl: Follow up fix in connection plugin (#72130)
PR #71535 broke, _build_exec_cmd API in kubectl connection
plugin.

Fixes: #72171

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
5 years ago
Matt Clay b9fc07ef4e
[stable-2.9] Support collection constraints in ansible-test. (#72158)
This allows collections to specify requirements and constraints for packages that ansible-test has requirements or constraints for..
(cherry picked from commit 5f76bd2af7)

Co-authored-by: Matt Clay <matt@mystile.com>
5 years ago
Rick Elrod e9a98b6ca9 Update Ansible release version to v2.9.14.post0. 5 years ago
Rick Elrod 13c4090f97 New release v2.9.14 5 years ago
Rick Elrod 9a1ca02c8e
[tests] Try re-enabling hcloud (#72033)
Change:
- See if they have fixed their issues yet.

Test Plan:
- CI

Signed-off-by: Rick Elrod <rick@elrod.me>
5 years ago
Rick Elrod 609667c7d4
[tests] --no-use-pep517 in kubevirt_conformance (#72015)
Change:
- This enables the inventory_kubevirt_conformance test to pass again on
  freebsd.
- This was due to a google-auth version bump. The dep chain looks like
  this: openshift -> kubernetes -> google-auth -> aiohttp -> multidict

Test Plan:
- ansible-test integration inventory_kubevirt_conformance --remote
  freebsd/12.0

Signed-off-by: Rick Elrod <rick@elrod.me>
5 years ago
Rick Elrod 7647d2fa89 Update Ansible release version to v2.9.14rc1.post0. 5 years ago
Rick Elrod 12ec871877 New release v2.9.14rc1 5 years ago
Rick Elrod e68b222e40
add CVE ref to kubectl changelog fragment (#71986)
Signed-off-by: Rick Elrod <rick@elrod.me>
5 years ago
Matt Clay 0dba2fe0dc
[stable-2.9] CI provider fixes for ansible-test. (#71929) (#71933)
* Make Azure Pipelines resource_prefix lowercase.

* Make classification of CI files consistent.

* Update package-data sanity test for AZP.
(cherry picked from commit 92b66e3e31)

Co-authored-by: Matt Clay <mclay@redhat.com>
5 years ago
Felix Fontein 35333e127c
Fix ansible-doc's plugin name retrieval for text output. (#71965) 5 years ago
Abhijeet Kasurde 3728530c9a
[2.9] kubectl: redacted token and password from console log (#71535)
** SECURITY_FIX ** for CVE-2020-1753

kubectl connection plugin now redact kubectl_token and
kubectl_password from console log.

Fixes: ansible-collections/community.kubernetes#65

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
5 years ago
Abhijeet Kasurde f6ac5f1ce0
[2.9] cgroup_perf_recap: Check if user wants to write to files or not (#71527)
if user sets 'write_files' to False or does not set value, then
handle file write related operations.

Fixes: #64936

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit e82b28a920)
5 years ago
Mario Lenz d2b499eab1
[backport][2.9] vmware_guest: Add support for HW version 15 (vSphere 6.7U2) (#71565)
* vmware_guest: Add support for HW version 15 (vSphere 6.7U2)

* Update changelogs/fragments/71563-vmware_guest-support_hw_version_15.yml

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
5 years ago
Jordan Borean 7e8ecb2e58
psrp - fix hang when copying an empty file (#71649) (#71650)
(cherry picked from commit b615789fcc)
5 years ago
Rick Elrod 9d54f13ec1 Prevent templating unused variables for {%include%} (#68749)
Fixes #68699

(cherry picked from commit ff1ba39c8a)
5 years ago
Martin Krizek a63baa3290
Provide more information in AnsibleUndefinedVariable (#71666) (#71877)
Fixes #55152

(cherry picked from commit 00b22ab55e)
5 years ago
Martin Nečas 3072e43909
Backport: ovirt_disk fix upload when direct upload fails (#71802)
ovirt_disk: fix upload when direct upload fails
5 years ago
Felix Fontein f35fed441e
interfaces_file: re.escape() old value
Backport of eb24b5707ee48c3186f771e3d5b1f04c9fba339f from community.general (https://github.com/ansible-collections/community.general/pull/873). (#71766)
5 years ago
Jordan Borean 5066ca696a
runas - create new SYSTEM token on become (#71714) (#71750)
(cherry picked from commit fc08c1f3c5)
5 years ago
Andrew Klychkov 512f658335
postgresql_user: fix false positive warning for no_password_changes option (#71715) 5 years ago