Commit Graph

48364 Commits

Author SHA1 Message Date
Mario Lenz
a33ae8b27f Fix issue with duplicate custom attribute names (#72058) 2020-10-23 13:52:24 -05:00
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>
2020-10-23 13:49:19 -05:00
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)
2020-10-23 13:01:24 -05:00
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>
2020-10-23 12:59:56 -05:00
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)
2020-10-23 12:20:35 -05:00
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
2020-10-23 12:18:51 -05:00
Jordan Borean
7720cd239e powershell - remove env var (#72010) (#72011)
(cherry picked from commit 3c33618cf6)
2020-10-23 12:16:39 -05:00
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 6362232c304ae3e4588a3e5e14d89560c31fdb3d)

Co-authored-by: Matt Clay <mclay@redhat.com>
2020-10-22 21:40:48 -07:00
Matt Clay
a02d29ea09 CI stability updates. (#72306)
* Avoid issues with user-defined docker networks.
* Increase CI timeout.
2020-10-22 16:56:41 -07:00
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>
2020-10-21 16:18:43 -05:00
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>
2020-10-09 11:46:01 -05:00
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>
2020-10-08 16:17:19 -05:00
Rick Elrod
e9a98b6ca9 Update Ansible release version to v2.9.14.post0. 2020-10-05 18:55:29 -05:00
Rick Elrod
13c4090f97 New release v2.9.14 v2.9.14 2020-10-05 15:56:02 -05:00
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>
2020-10-01 12:52:43 -05:00
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>
2020-09-30 10:46:18 -05:00
Rick Elrod
7647d2fa89 Update Ansible release version to v2.9.14rc1.post0. 2020-09-28 14:51:16 -05:00
Rick Elrod
12ec871877 New release v2.9.14rc1 v2.9.14rc1 2020-09-28 12:15:15 -05:00
Rick Elrod
e68b222e40 add CVE ref to kubectl changelog fragment (#71986)
Signed-off-by: Rick Elrod <rick@elrod.me>
2020-09-28 12:12:29 -05:00
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>
2020-09-28 11:20:35 -05:00
Felix Fontein
35333e127c Fix ansible-doc's plugin name retrieval for text output. (#71965) 2020-09-28 10:21:23 -05:00
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>
2020-09-28 00:24:54 -05:00
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)
2020-09-27 23:21:22 -05:00
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>
2020-09-27 03:24:29 -05:00
Jordan Borean
7e8ecb2e58 psrp - fix hang when copying an empty file (#71649) (#71650)
(cherry picked from commit b615789fcc)
2020-09-27 03:23:30 -05:00
Rick Elrod
9d54f13ec1 Prevent templating unused variables for {%include%} (#68749)
Fixes #68699

(cherry picked from commit ff1ba39c8a)
2020-09-27 03:13:11 -05:00
Martin Krizek
a63baa3290 Provide more information in AnsibleUndefinedVariable (#71666) (#71877)
Fixes #55152

(cherry picked from commit 00b22ab55e)
2020-09-27 02:51:14 -05:00
Martin Nečas
3072e43909 Backport: ovirt_disk fix upload when direct upload fails (#71802)
ovirt_disk: fix upload when direct upload fails
2020-09-27 02:49:43 -05:00
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)
2020-09-27 02:48:32 -05:00
Jordan Borean
5066ca696a runas - create new SYSTEM token on become (#71714) (#71750)
(cherry picked from commit fc08c1f3c5)
2020-09-27 02:40:42 -05:00
Andrew Klychkov
512f658335 postgresql_user: fix false positive warning for no_password_changes option (#71715) 2020-09-27 02:39:38 -05:00
Rick Elrod
c117af0df5 [tests] disable hcloud for now
Signed-off-by: Rick Elrod <rick@elrod.me>
2020-09-26 03:38:32 -05:00
Rick Elrod
a2548ccb6c [tests] Make setup_docker clean up better
Change:
- pip packages should get removed after, not try to add them again
- Try removing containerd.io package too
- Backport of #71949

Test Plan:
- CI
- ci_complete

Signed-off-by: Rick Elrod <rick@elrod.me>
2020-09-26 03:38:32 -05:00
Sandra McCann
34ec492da1 remove github link from plugins (#70951) (#71894)
(cherry picked from commit e28b20d729)
2020-09-25 09:44:22 -05:00
Rick Elrod
ace7f247f2 [docker_login] Fix changed status for newer docker
Change:
- Newer docker versions report the same message whether or not a logout
  actually happened.
- Determine change status from looking at the config instead if we can.
- This also allows us to restore check_mode in logout and re-enable that
  test.

Test Plan:
- CI, re-enabled tests

Tickets:
- Refs 6248f2fb6f

Signed-off-by: Rick Elrod <rick@elrod.me>
2020-09-24 13:13:35 -05:00
Rick Elrod
39fae9320c [incidental_setup_docker] changes to upstream repo (#71897)
Change:
- The docker-ce.repo file for centos does not work on RHEL since it uses
  $releasever and on RHEL that is, e.g., "7Server".
- Instead, set up the repo manually.
- Additionally, the docker centos8 repo no longer has old versions, so
  we use the (only) version in the repo instead.

Test Plan:
- CI

Signed-off-by: Rick Elrod <rick@elrod.me>
(cherry picked from commit 31ddca4c0d)
2020-09-24 13:13:35 -05:00
Sandra McCann
8b088b46dd update version switcher for 2.10 release (#71867)
(cherry picked from commit bf4e102d97)
2020-09-22 14:24:29 -05:00
Matt Clay
61d383ef23 [stable-2.9] Fix attribute testing in file integration test. (#71843)
The file test will no longer attempt to test attributes if `lsattr -vd` does not work on the system under test.
(cherry picked from commit 17765cd4e8)

Co-authored-by: Matt Clay <mclay@redhat.com>
2020-09-21 15:06:31 -07:00
Felix Fontein
ef5f2c35ee [2.9] Redirect inventory script links (#71732) 2020-09-21 10:48:18 -05:00
Sam Doran
582cf06501 [stable-2.9] openssl_privatekey test - Add pause for macOS (#71819)
The stat time granularity on macOS is one second. We recently upgrade
to faster macOS hosts, so some tests that run closely together to
see if something changed will have the same timestamp intermittently.
2020-09-18 15:18:13 -05:00
Sam Doran
3e26c56edd [stable-2.9] incidental_setup_openssl - Pin version of Python packages (#71777)
A recent update to cffi that was yanked is still being installed on our
Mac OS X 10.11 test image since the version of pip there is very old and
does not ignore yanked packages.

Pin the version of pyOpenSSL and its dependencies to fix this and avoid
future spontaneous failures.
(cherry picked from commit 65cdb86c8a)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2020-09-17 10:46:45 -05:00
Timothy Visser
ca6b9c4649 Backport documentation correction (#71632)
* Remove "mode: preserve" option from documentation #71486

(cherry picked from commit 7127d37466)
2020-09-09 11:46:53 -05:00
Matt Clay
417e408f59 [stable-2.9] Backport ansible-test CI provider support. (#71614)
* Add encoding.py from devel to support backports.

* Add io.py from devel to support backports.

* Update ansible-test support for CI providers. (#69522)

Refactored CI provider code to simplify multiple provider support and addition of new providers.

(cherry picked from commit d8e0aadc0d)

* Add Shippable request signing to ansible-test. (#69526)

(cherry picked from commit e7c2eb519b)

* ansible-test local change detection: use --base-branch if specified (#69508)

(cherry picked from commit 43acd61901)

* Add Azure Pipelines support to ansible-test.

(cherry picked from commit 8ffaed00f8)

* Update ansible-test remote endpoint handling. (#71413)

* Request ansible-core-ci resources by provider.
* Remove obsolete us-east-2 CI endpoint.
* Add new --remote-endpoint option.
* Add warning for --remote-aws-region option.
* Update service endpoints.
* Allow non-standard remote stages.
* Add changelog fragment.

(cherry picked from commit d099591964)

* Fix ansible-test coverage traceback. (#71446)

* Add integration test for ansible-test coverage.

* Fix ansible-test coverage traceback.

* Fix coverage reporting on Python 2.6.

(cherry picked from commit f5b6df14ab)

* Use new endpoint for Parallels based instances.

(cherry picked from commit 98febab975)

* Add pause to avoid same mtime in test.

(cherry picked from commit 3d769f3a76)

Co-authored-by: Felix Fontein <felix@fontein.de>
2020-09-03 11:06:18 -05:00
Rick Elrod
4685fe5faa [docs] Fix up porting guides for CVE revert [2.9] (#71582)
Change:
- Fix up wording and do proper backports for porting guide entries.
- Remove original, non-backported version

Signed-off-by: Rick Elrod <rick@elrod.me>
(cherry picked from commit ed48a2dd624cb7feb874fddcf49ef538857cd3e6)
2020-09-01 19:02:56 -05:00
Rick Elrod
370ad5c7c6 Update Ansible release version to v2.9.13.post0. 2020-09-01 01:12:40 -05:00
Rick Elrod
acf1a7ba40 New release v2.9.13 v2.9.13 2020-08-31 21:17:06 -05:00
Rick Elrod
15a77b4575 [tests] fix fallout from dnf gpg fix (#71551)
Change:
- Missed needed gpg ignores

Test Plan:
- CI
- ci_complete

Signed-off-by: Rick Elrod <rick@elrod.me>
2020-08-31 21:10:11 -05:00
Rick Elrod
7eec8e4d26 Re-add changelogs and add docs for CVE-2020-1736 reverts [2.9] (#71515)
Signed-off-by: Rick Elrod <rick@elrod.me>
2020-08-31 15:41:17 -05:00
Sam Doran
dfaadf6f33 Fix inventory_kubevirt_conformance test (#71546) 2020-08-31 15:38:48 -05:00
Rick Elrod
1d043e082b [dnf] ensure packages are gpg-verified (#71540)
Change:
- By default the dnf API does not gpg-verify packages. This is a feature
  that is executed in its CLI code. It never made it into Ansible's
  usage of the API, so packages were previously not verified.
- This fixes CVE-2020-14365.

Test Plan:
- New integration tests

Signed-off-by: Rick Elrod <rick@elrod.me>
2020-08-31 10:05:38 -05:00