Commit Graph

45019 Commits (659147b2e2ee302aee6890b1e8a6164eb9f6a2ac)
 

Author SHA1 Message Date
Gonéri Le Bouder 659147b2e2 VMware: not ssl.SSLContext if validate_certs false (#57185)
Python < 2.7.9 does not have the ssl.SSLContext attribute.
ssl.SSLContext is only required when we want to validate the SSL
connection. If `validate_certs` is false, we don't initialize the
`ssl_context` variable.

Add unit-test coverage and a little refactoring:

- avoid the use of `mocker`, when we can push `monkeypatch` which is
  `pytest`'s default.
- use `mock.Mocker()` when possible

closes: #57072
(cherry picked from commit 3ea8e0a144)
5 years ago
Scott Luther 3dec34c118 fix erroneous failures in docker_compose due to deprecation warnings … (#61650)
* fix erroneous failures in docker_compose due to deprecation warnings from docker (#60961)

* Update error handling to work with new method of capturing output

Co-Authored-By: Felix Fontein <felix@fontein.de>

* update error handling

* fix syntax error

* fix indentation

* fix indentation (again)

* remove erroneous line

(cherry picked from commit 0c73e47a42)
5 years ago
Felix Fontein 211fc3e0ab docker_container: improve port range parsing error behavior (#61740)
* Improve port range parsing.

* Add changelog.

(cherry picked from commit d40ba28fb4)
5 years ago
Bojan Vitnik c0ba6a9ed3 XenServer: When VM is in powered on state, plug newly added disks
Fixes: #60693
(cherry picked from commit 04e0f9d4ea)
5 years ago
Simon Dodsley b844671747 Fix bug #61924 with API version check 5 years ago
Sam Doran adb742deff [stable-2.8] User - correct group removal description in docs (#61936)
(cherry picked from commit 61efffcbe1)

Co-authored-by: Sam Doran <sdoran@redhat.com>
5 years ago
Sam Doran b9769abde7 [stable-2.8] test: disable the docker swarm tests (#61816) (#61862)
`docker_swarm` tests tend to hang during the creation of the Swarn
cluster.

See: https://github.com/ansible/ansible/issues/61815
(cherry picked from commit 7132466327)

Co-authored-by: Gonéri Le Bouder <goneri@lebouder.net>
5 years ago
ndclt 70798b84d2 documentation: modify the link to the docker.txt listing all images (#61838) (#61847)
The file was moved.

(cherry picked from commit aadb192846)
5 years ago
Sam Doran 446df8d2cb [stable-2.8] Use new version of default test image that contains Python 3.8.0b3 (#60139)
(cherry picked from commit a20848bf66)

Co-authored-by: Sam Doran <sdoran@redhat.com>
5 years ago
Strahinja Kustudic 1b8c1c364d Add changelog fragment 5 years ago
Strahinja Kustudic e7fcb37e6c Fix extended loop_control with includes (#61231)
* Fix extended loop_control with includes

* Use assert for testing extended loop_control

* fix typo

(cherry picked from commit a213b9160c)
5 years ago
Sam Doran 59280a933e [stable-2.8] apt_facts - Fix cache related performance regression (#60511)
* apt_facts - Fix cache related performance regression

* Another minor performance improvement
(cherry picked from commit 0f35e4b7b9)

Co-authored-by: Sam Doran <sdoran@redhat.com>
5 years ago
Sloane Hertel 05d084b366 s3 - improve waiting for the bucket (#61802)
(cherry picked from commit ff05991265)
5 years ago
Sloane Hertel e93b8f054e [stable-2.8] aws_s3 - wait for the bucket before setting ACLs (#61735)
* Wait for the bucket to become available if possible before setting ACLs
(cherry picked from commit 91ccb03552)

Co-authored-by: Sloane Hertel <shertel@redhat.com>
5 years ago
Wojciech Wypior 99f9eab19d fixes assert statements in tests (#59998)
(cherry picked from commit d00aaf66d7)
5 years ago
kucharskim c087030e5c [stable-2.8] Allow 13 asterisk characters in password field without warning (#54893)
On OpenBSD, 13 asterisk characters as a password hash, marks the
account as disabled. Otherwise daily(8) script which executes
security(8) will email operator about not properly locked accounts.

Before the diff, we see following warning:

> [WARNING]: The input password appears not to have been hashed. The 'password' argument must be encrypted for this module to work properly.

After the diff, warning is gone..
(cherry picked from commit 1dea661ce8)

Co-authored-by: kucharskim <mikolaj@kucharski.name>
5 years ago
Mark Chesney 48e22639ee Fix creation of DigitalOcean droplets using digital_ocean_droplet module (#61655)
* Omit disallowed 'id' attribute in request body to create a droplet

* Add changelog fragment for PR #61655
5 years ago
Strahinja Kustudic aec6dc3b26 systemd module will now wait on deactivating state (#59471) (#60939)
* systemd module will now wait on deactivating state (#59471)

If a service is in the 'deactivating' state running systemctl stop foo,
would wait for the foo service to actually stop before it exits. The
module didn't behave like that and it considered the deactivating state
as if the service wasn't running. This change will align the module with
the systemctl behaviour.

(cherry picked from commit 54d9d7805d)

* Fix systemd start state with deactivating service state

(cherry picked from commit ee4b3b8854)
5 years ago
Klaus Frank 0af0a7f8bb Add exception handling to win_domain_controller (#58234)
* Add exception handling to win_domain_controller

* Add changelog

* Fix PSUseDeclaredVarsMoreThanAssignments

* Remove dns domain cannot be resolved error message

As requested by PR review in https://github.com/ansible/ansible/pull/58234#discussion_r300509880
5 years ago
Jordan Borean 7c752a43b3 Set win_pagefile as unstable as thats what it is (#61732)
(cherry picked from commit 00add5b668)
5 years ago
Kevin Breit 6310e96034 [stable-2.8] - meraki_syslog - Properly handle net_id (#61744)
* meraki_syslog - Module properly handles net_id parameter (#57286)

(cherry picked from commit a50b3d7695)

* Add changelog fragment and clean up commented tests
5 years ago
Kevin Breit db5539dce3 Update host parameter notes to include China. (#60967)
(cherry picked from commit 48a04fade4)
5 years ago
Andrey Klychkov e1922be671 postgresql: Run all tests under postgres_* (#61676)
* Make sure postgresql tests are run for all postgres_* modules (#61647)

(cherry picked from commit 4d057e0331)

* Make sure postgresql tests are run for all postgres_* modules (#61647), remove non-existent
5 years ago
yanzhangi bc0ea200d2 Update ce_bfd_global to fix bugs (#60477)
* Update ce_bfd_global to fix bugs

(cherry picked from commit c742ce8ee3)

* Update ce_bfd_global modified information
5 years ago
Paul Belanger d71d111c3a Fix nxos_install_os test cases typo (#58825)
This should be ansible_connection, not connection_type. We can also
update local testing logic.

Remove nxos_install_os/tasks/network_local.yaml as it is nolonger used.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
(cherry picked from commit 9e1b19e364)
5 years ago
Jordan Webb cc1bc400dd [stable-2.8] Fix pipelining in buildah connection plugin 5 years ago
Felix Fontein ccd0b5bede acme_certificate: make compatible to Buypass' ACME v2 testing endpoint (#60727)
* Don't unnecessarily use location from header.

* Add changelog.

(cherry picked from commit 7f4f2506a0)
5 years ago
Dmitriy Rabotyagov 9218856617 Search project in domain when it's defined
Since there might be several projects with the same name in different
domains, it's required to define domain_id during project search.
Otherwise openstacksdk will raise "Multiple matches found" error

(cherry picked from commit 33ab7ca162)
5 years ago
Martin Nečas 6468dcc4be Ovirt template search by datacenter backport (#60478)
* add changelog

* ovirt_vm update template search backport
5 years ago
pguermo c2f6576fbe proxmox_kvm: While a VM is beeing created, vm has no name item (#58196)
* While a VM is beeing created, vm as no name attribute

* Add changelogs fragment

(cherry picked from commit 8923d13537)
5 years ago
Martin Nečas a0ebf60dea ovirt_vm add linux boot param warning backport (#60581)
* ovirt_vm add linux boot param warning (#60474)

* ovirt_vm add kernel param check

* update check

* update docs phrase

* use douple quotes

* add changelog
5 years ago
Martin Nečas 1ff1e2d9a6 ovirt vm update kernel docs backport (#60582)
* ovirt vm update kernel docs (#60407)

* ovirt vm update kernel docs

* update doc phrase

* update docs

* add changelog
5 years ago
Felix Fontein b66433f47d docker_logout: report change on successful logout (#60381)
* Mark logout as changed when docker logout does not return 'Not logged in to '.

* Add changelog.

* Improve logout detection.

* Also return output of 'docker logout'.

(cherry picked from commit 99fb0fcb2f)
5 years ago
rob8714 9fe0971004 Backport/2.8/57418 (#60683)
* Backport to stable-2.8: Fix #56640: Map k8s ansible keys to api keys (#57418)

* Fix #56643: Map ansible keys to api keys

* Remove errant print line

* Fix pep8 issue

* Fix doc line

* Added test for validate_certs -> verify_ssl translation for k8s module

(cherry picked from commit 6e94b472e8)

* Removed proxy from AUTH_ARG_MAP and added fragment for backport

* Rename backport-57418.yaml to 60683-backport-57418.yaml

* Update 60683-backport-57418.yaml
5 years ago
Mitsuru Nakakawaji db9cb0682d fix: docker_swarm_service does not publish both tcp and udp ports (#60616)
* fix: docker_swarm_service does not publish both tcp and udp ports for same published port

* fix the linting problems and add the changelog fragment.

* add test

* modify test to ensure result rather than return value

(cherry picked from commit 064cd63f3d)
5 years ago
Felix Fontein 06623fb79a openssl_certificate: fix idempotency (#60745)
* Fix openssl_certificate idempotency.

* Add changelog.

* Add integration test.

(cherry picked from commit 0d88ec241f)
5 years ago
Wojciech Sciesinski d70b4f6665 Correct indentation of the code in the example (#61622) (#61727) 5 years ago
Klaus Frank ec50e1191f Backport: win_domain reboot required exception incorrectly reported (#60496) (#60809)
* win_domain reboot required exception incorrectly reported (#60496)

* Set reboot required dependent on exception message.

* Use exception id instead of it's message

* Add changelog fragment
5 years ago
Sloane Hertel b77abd0491 Warn when transforming constructed groups (#60912)
* Warn when transforming constructed groups

The `keyed_groups` field has used sanitization since 2.6, but `groups` only started doing so in 2.8.
This adds a warning for the change in behavior.

* changelog

(cherry picked from commit 3247626ac7)
5 years ago
Sam Doran 0bc1285987 [stable-2.8] fixes issue with recieve parameter idempotency (#59999) (#60541)
* [stable-2.8] fixes issue with recieve parameter idempotency (#59999)

fixes assert statements in unit tests
(cherry picked from commit c9a9621a02)

Co-authored-by: Wojciech Wypior <w.wypior@f5.com>

* Add changelog
5 years ago
Gonéri Le Bouder e352e7223e Update Fedora 29 test image
(cherry picked from commit 3d78dad84b)
5 years ago
Andrey Klychkov 1e9eebdc93 Backport of 61538: postgresql modules: explicit defaults for bool params (#61677) 5 years ago
Matt Martz db9744d29e [stable-2.8] Add porting guide entry for gathering facts tag change (#61180) (#61555)
* Add porting guide entry for gathering facts tag change

(cherry picked from commit 0175620)

Co-authored-by: Matt Martz <matt@sivel.net>
5 years ago
Simeon Filipov 813b32856a Fix typo in postgresql_privs.py (#61365) (#61427)
Change 'default_prives' to 'default_privs'

(cherry picked from commit 0074fa5672)
5 years ago
Swartz, Nathan 6fc1f3ab1c Add changelog fragment for backporting PR #57096 to stable-2.8 branch 5 years ago
Swartz, Nathan 3cbe15aae9 Add thin-volumes to the netapp_e_lun_mapping update_mapping_info method. 5 years ago
Swartz, Nathan 71ec1d0b17 Fix netapp_e_host module bug when lun=0 5 years ago
Swartz, Nathan 74717f1ac2 Fix hosts with same lun number conflict in netapp_e_lun_mapping.
This patch fixes an issue of when multiple hosts are created and then
subsequently volume(s) are mapped to them using the same specified number.
5 years ago
Felix Fontein a389e9e4bf docker_image_info: improve docs (#60622) (#60885)
* Improve return value documentation and example, fix typo in lib/ansible/modules/cloud/docker/docker_image_info.py

(cherry picked from commit 7a9e865a23)
5 years ago
Andrey Klychkov 6af9aef659 Bugfix of issue 60707: add python-apt package to requirements of package_facts module (#60999) (#61101)
* Issue 60707: add python-apt package to requirements of package_facts module, fix formatting, change fail msg

(cherry picked from commit cf291f272d)
5 years ago