Commit graph

1106 commits

Author SHA1 Message Date
YuandongXu
7a56e1be46 update acl interface. (#57905)
* update acl interface.

* update ce_interface

* update

* add a changelog fragment.

* update

(cherry picked from commit da72644317)
2019-06-29 11:30:37 -07:00
YuandongXu
959c07fc5c ce_snmp_location: fix for out of array index. (#57903)
(cherry picked from commit afe7cd3fda)
2019-06-29 11:29:40 -07:00
YuandongXu
aee18ffc27 ce_snmp_target_host: update to fix bug: None has no 'lower()' function. (#57904)
* update to fix bug: None has not 'lower()' function.

* add a changelog fragment.

* update changlog fragment.

* Update 57904-ce_snmp_target_host.yml

(cherry picked from commit 78c8ee9261)
2019-06-29 11:28:59 -07:00
xuxiaowei0512
2d1791cdae rm redundant log changelog fragment. 2019-06-29 11:28:18 -07:00
xuxiaowei0512
0aa55a40b5 add changelog fragment. 2019-06-29 11:28:18 -07:00
YuandongXu
fc5eba72bb ce_bgp: update bgp to fix bugs (#57317)
* update bgp to fix bgus

* add a changelog fragment for bgp

(cherry picked from commit 36cfa9e931)
2019-06-29 11:28:18 -07:00
Sloane Hertel
c67980e07b Handle vaulted non-ascii characters for Python2 (#58503)
* Handle vaulted non-ascii characters for Python2

* Add a test to ensure str() no longer raises UnicodeEncodeError

(cherry picked from commit 826f224f02)
2019-06-29 11:13:55 -07:00
Sam Doran
7700c5086d [stable-2.8] Use atexit to cleanup tmp dirs (#56532)
* Wrap everything in try/except to avoid leaving files behind
* Add unit tests, integration tests, and changelog
* Do text the correct way.
(cherry picked from commit 6cf6f5a34b)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-06-29 11:13:28 -07:00
Sam Doran
dd304b4811 [stable-2.8] hostname - fix Oracle Linux (#58510)
(cherry picked from commit 1a5ae366f4)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-06-28 10:00:12 -07:00
Sloane Hertel
cb70656c99 Fix notifying handlers by using an exact match (#55624)
* Fix notifying handlers by using an exact match rather than a string subset if listen is text rather than a list

* Enforce better type checking for listeners

* Share code for validating handler listeners

* Add test for handlers without names

* Add test for templating in handlers

* Add test for include_role

* Add a couple notes about 'listen' for handlers

* changelog

(cherry picked from commit ec1287ca7e)
2019-06-28 09:22:39 -07:00
Sam Doran
8cc128b8f5 [stable-2.8] podman_image_info - Do not fail when nonexistant image name is provided (#57962)
* Account for older versions of Podman lacking 'exists'
(cherry picked from commit 9ba7015458)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-06-28 09:16:24 -07:00
Andrey Klychkov
a6ecc6c243 Backport 57507 postgresql_pg_hba bugfix (#58384)
* Merge authentication options back into a single field to prevent losing options beyond the first (#57507)

* Merge authentication options back into a single field to prevent losing options beyond the first

* Add integration test and changelog

* Fix multiple options for local type connections. Also fix sorting errors between local type connections that lack a src

* Build again because of github problems?

* Add spaces before comments

(cherry picked from commit 5cc6486a2b)
2019-06-26 08:32:46 -07:00
Strahinja Kustudic
084283233a Set correct version and update changelog fragment 2019-06-26 06:35:42 -07:00
Andrey Klychkov
4624f8af13 Backport PR for 58315 2019-06-25 15:13:19 -07:00
Matt Martz
fd73fe02b4 [stable-2.8] Set _ansible_verbose_override in gather_facts action plugin. Fixes #58310 (#58339)
(cherry picked from commit bc25ac2)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-06-25 15:12:49 -07:00
Tobias
95c2763f40 [2.8] ipaddr: Handle ipaddress index in network correctly
* This commit prevents integer indices from being parsed as ip nets
* ipaddr: unit tests for empty string

Fixes #57895

Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit e7c39460ed)
2019-06-24 19:35:27 -07:00
Andrey Klychkov
5ebc83bce6 Backport PR of 57391 postgresql_table - bugfix of schema handling 2019-06-24 15:18:25 -07:00
Felix Fontein
5e177d73a9 openssl_certificate: fix failing SAN comparisons (#58256)
* Fix failing SAN comparison for older cryptography versions due to not implemented __hashh__ functions.

* Fix SAN comparison: IPv6 addresses need to be normalized before comparing strings.

* Add changelog.

* Fix comment.

(cherry picked from commit 75ca8eb42f)
2019-06-24 15:17:41 -07:00
lolcube
5d3eebb610 openssh_keypair: bugfix make regenerating keypairs via force possible… (#57801)
* openssh_keypair: bugfix make regenerating keypairs via force possible / add invalid file handling

* openssh_keypair: change permissions of read-only file instead of deleting it for regeneration; add changelog fragment

* address review feedbak, refactor

* add integration tests for bigfixes

* linter: fix indent

* fixup integration tests: use force when regenerating an invalid file

* linter: fix indent

* openssh_keypair: address review feedback

* openssh_keypair: fixup, remove backtick

* openssh_keypair: address review feedback

* Only pass 'y' into stdin of ssh-keygen when file exists.

(cherry picked from commit 547a29805e)
2019-06-24 15:17:08 -07:00
Andrey Klychkov
7a9fe9ea7b postgresql_privs: bugfix of 27327 - incorrect views handling (#58272)
(cherry picked from commit 278c59b17e)
2019-06-24 15:16:07 -07:00
Felix Fontein
b7cc98e86e docker_* modules: improve error message when docker-py is missing (#57914)
* Improve error for docker modules when docker-py can't be imported.

* Add changelog.

* Mention platform and Python interpreter in more cases.

* Clarify wording.

* Adjust tests.

(cherry picked from commit 4a12be31fb)
2019-06-24 15:13:30 -07:00
Klaus Frank
e7356957ee Fix ansible-vault cipher_whitelist (#57272)
* Fix ansible-vault cipher_whitelist Fixes: #57271

* Add changelog for #57272
2019-06-24 15:13:10 -07:00
Mariusz Mazur
d9155944cf Backport/2.8/57685 (#57794)
* kubevirt: enable/update tests + fix merge_dicts() (#57685)

* Actually run the unit tests and separate them into two files

* Re-add recursion to merge_dicts()

* Update tests to work with current code

(cherry picked from commit 51add5aa79)

* Changelog fragment

* Replace nested function with dict_transformations.dict_merge
2019-06-24 09:26:42 -07:00
Sam Doran
2cc8f3afb7 [stable-2.8] hostname - Correct distribution for various Linux distros based on output from distro library (#56936)
* Adjust hostname classes based on output from distro

Corrects the following:
- OpenSUSE Leap
- ArchARM
- Oracle Linux

* Add CoreOS and Clear Linux distributions
(cherry picked from commit bd55617a5b)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-06-21 15:40:22 -07:00
Sumit Jaiswal
062074e68e Backport PR to fix ios_facts ansible_net_model (#58174)
* PR to fix where ansible_net_model was not being populated (#58159)

* fix bug 57285

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* minor fix

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* adding TC fix related

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* fix shippable error

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
(cherry picked from commit 58d446e61a)

* fix ansible_net_model

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* Fix ios test for python2 non-ascii paths

(cherry picked from commit eb7e4591ae)
2019-06-21 15:35:33 -07:00
Andrey Klychkov
f548999290 PostgreSQL modules: move params mapping from main to connect_to_db() function Backport/2.8/55799 (#57473)
* PostgreSQL modules: move params mapping from main to connect_to_db() function (#55799)

* PostgreSQL modules: move params mapping from main to connect_to_db() function

* PostgreSQL modules: fix postgresql_db

* PostgreSQL modules: fixes

(cherry picked from commit 9b17346d1e)

* postgresql moving params mapping to connect_to_db: added changelog fragment

* postgresql moving params mapping to connect_to_db: add get_conn_params, fix conflicts
2019-06-21 06:32:18 -07:00
Felix Fontein
6a71aef6c5 docker_*: make modules more robust on Docker errors (#57913)
* Improve general error behavior if a Docker error is not caught.

* Don't die when network doesn't exist.

* Add changelog.

* Make API version always available. Also catch errors when retrieving version.

* Fix error message.

* Adjust fallback error messages.

(cherry picked from commit f8f2738351)
2019-06-20 19:09:57 -07:00
Brian Coca
04e94274fb safe_eval fix (#57188)
* just dont pass locals

 - also fix globals
 - added tests

* fixed tests

(cherry picked from commit b9b0b23015)
2019-06-20 18:22:29 -07:00
Matt Martz
5e0c623f38 [stable-2.8] Create new instance of the action plugin per until iteration. Fixes #57886 (#58022)
(cherry picked from commit ffd1171)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-06-20 18:21:53 -07:00
Dmitriy Yakovlev
cd00cb1e8c docker_swarm_service: Added default value for mounts.source (#58039)
* Added default value for mounts.source

* Added the changelog fragment

* Added tests

* Fixed separators

* Moved the teardown section at the end

(cherry picked from commit 122d4164c5)
2019-06-20 13:58:45 -07:00
Felix Fontein
5f719bba18 crypto modules: Improve requirements / error messages (#57868)
* Reformat requirements.

* Include Python lib versions in lib required error messages, if available.

* Update lib/ansible/modules/crypto/openssl_publickey.py

Co-Authored-By: MarkusTeufelberger <mteufelberger@mgit.at>

* Add changelog.

(cherry picked from commit 4188cd299b)
2019-06-20 13:57:33 -07:00
Matt Martz
c42a6155a9 [stable-2.8] ssh: Ensure debug messages are properly converted to text (#57850)
* ssh: Ensure debug messages are properly converted to text. Fixes #57843

* surrogate_then_replace is default, be less explicit

* We only needed to_text for display, not exceptions
(cherry picked from commit 375ac76)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-06-20 10:58:15 -07:00
Yurii Vlasenko
7d9a527086 docker_container: Change expected config source (#57969)
* Change expected config source

* make it conditional

* rename property

* Add changelog fragment

* make it string

* Update changelogs/fragments/57969-docker_container-change-expected-config-source.yml

Co-Authored-By: Felix Fontein <felix@fontein.de>
(cherry picked from commit 8c1c2afd02)
2019-06-20 10:40:36 -07:00
Paul Belanger
2dac2d1601 Pull request for temp/iosxr-back (#58075)
* Fix python3 encoding with iosxr_config (#57919)

Python3 requires bytes when writing files.

(cherry picked from commit d40c44bd56)
Depends-On https://github.com/ansible/ansible/pull/58073
Signed-off-by: Paul Belanger <pabelanger@redhat.com>

* Add changelog fragment

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-06-19 10:57:10 -07:00
Chris Archibald
ba30649af9 Backport/2.8/57379 (#58080)
* Duplicate rules were being created if rule index was not set (#57379)

* bug fixes

* Revert "bug fixes"

This reverts commit 2d839ecf350260ba857ef820f761c8a0e1241102.

* bug fix

(cherry picked from commit e80d6f18ce)

* add fragment
2019-06-19 10:56:15 -07:00
Nathaniel Case
378ddec5c6 [stable-2.8] Fix RESTCONF media types (#58015)
Fixes #56680
(cherry picked from commit f656959)

Co-authored-by: Nathaniel Case <ncase@redhat.com>
2019-06-19 10:39:34 -07:00
Martin Nečas
ab50e41a4c Ovirt vnic profile fix backport (#58058)
* Ovirt vnic profile fix (#57936)

* ovirt vnic profile fix init

* ovirt vnic profile fix init

* update syntax whitespace

* document pass_through

* create get entity method

* update example syntax

* update docs

* change force_create style

* add fragment
2019-06-19 06:24:02 -07:00
Martin Nečas
4a7a8ecf50 Ovirt nic default vnic backport (#58057)
* Ovirt nic default vnic (#57945)

* default vnic init

* ovirt default nic

* add spacing

* use network must be specified

* Update ovirt_nic.py

* Update ovirt_nic.py

* add no vnic profile exception

* correct pep8 syntax

* correct pep8 syntax

* correct pep8 syntax

* correct pep8 syntax

* add fragment
2019-06-19 06:22:25 -07:00
Daniel Mellado Area
20fa1156b7 Add support for vlan update on ovs bridges (#57168)
This commit adds support for vlan update on openvswitch_bridge module.

(cherry picked from commit 091bebcbf7)
2019-06-19 06:18:30 -07:00
Ganesh Nalawade
bafc95eb0f More iosxr integration zuul CI test fixes (#57909)
* Ignore `<rpc-reply>` node from candidate and
  running configuration in xml diff

* Add route-policy as prerequisite to BGP coonfiguration
  in integration test

(cherry picked from commit 4a3e14f90b)
2019-06-19 06:16:08 -07:00
Will Thames
1e5e663d42 rds_instance: allow empty iops and storage_type (#57943)
(cherry picked from commit a66687f2d2)
2019-06-18 12:22:27 -07:00
Stefan Horning
e720df0e5d Fix rds_instance module to run against an (older) existing RDS instance successfully
Only pop Iops param if no storage_type is given. If given and set to wrong type we get to the AWS client error that informs the user

Docs syntax fix

Fix typo in docs

Co-Authored-By: stefanhorning <stefan@hornings.de>

Added changelog fragment for rds_instance bugfix
2019-06-18 12:22:27 -07:00
Chris Archibald
221a14f674 add fragment 2019-06-18 12:22:03 -07:00
Jordan Borean
0c85472e9b Fix changelog entry (#57979)
(cherry picked from commit 40540f4d98)
2019-06-18 11:21:25 -07:00
Ganesh B Nalawade
ae995a19e2 Fix junos integration zuul CI failures
(cherry picked from commit 0957835a4814bfc0c7649675963de5e88df5060e)
2019-06-18 11:20:39 -07:00
Sumit Jaiswal
db13610701 fix 57447 bug (#57938)
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
(cherry picked from commit d63ccb5bc8)
2019-06-18 11:18:04 -07:00
Mariusz Mazur
b41bbd9564 Backport/2.8/57617 (#57756)
* kubevirt_pvc: fix parameter priority (#57617)

* Add changelog

* Drop superfluous dict()

Co-Authored-By: Toshio Kuratomi <a.badger@gmail.com>
2019-06-18 11:16:18 -07:00
Guillaume Martinez
36df5d22a4 gitlab_runner: Fix idempotency when creating runner (#57833)
(cherry picked from commit ec7b18952b)
2019-06-18 10:51:51 -07:00
Chris Archibald
fa6e39ddf2 Backport/2.8/57320 (#58009)
* new feature

(cherry picked from commit dbeaf30f975190cc20fbece88b12d8dd062aad07)

* add fragment
2019-06-18 10:47:47 -07:00
Sayed Anisul Hoque
9da6fc1754 Documentation error (#57924)
* Update changelogs/fragments/contains-test.yaml - allowed filters are 'select/reject' and 'selectattr/rejectattr'.
2019-06-18 09:10:24 -05:00