Commit graph

33643 commits

Author SHA1 Message Date
Nilashish Chakraborty
b3a1761365
Fixes ios_logging idempotency issues in 2.4 (#41076)
* Fixes ios_logging & Added more tests

* Fixes buffered dest Shippable errors

* Fixed review comments

* Added entry to CHANGELOG.md
2018-06-05 17:24:04 +05:30
Nilashish Chakraborty
eedb78a8ba
Fix eos_logging idempotency issue CP into 2.4 (#40933)
* Fixes eos_logging idempotence issue #31862 (#40604)

* eos_logging idempotence fix

* fixed eos_logging idempotence issue

* Fixed pylint and pep8 errors

* Added tests for eos_logging & minor fix

* Removed q statements

(cherry picked from commit b9ea646839)

* Added eos_logging fix in CHANGELOG
2018-05-31 12:06:27 +05:30
Matt Clay
0967cc0c70 Fix FreeBSD package install in test setup.sh.
(cherry picked from commit c3d3b6cedc)
2018-05-30 09:26:15 -07:00
Sviatoslav Sydorenko
ea68bb33d0
[backport] Detect separate git dir and set git config path value appropriately
PR #38016

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
(cherry picked from commit 0a701ff)

Co-authored-by: Senya <senya@riseup.net>
2018-05-23 22:48:37 +02:00
Matt Clay
e450722867 Fix uri test on Python 2.6.
(cherry picked from commit 5c124876fa)
2018-05-16 15:36:40 -07:00
Trishna Guha
e583d63144
nxos enable mode fix (#39898)
* nxos enable mode fix

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>

* update changelog

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>

* Address review comment

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2018-05-09 17:24:42 +05:30
George Wilson
9e1ce48b1c Backport part of #33221 (commit: 8fa1373a67da1801bd1df121851d6a619d002499) to fix azure functionapp ansible modules fataling due to a bad URL (#36322) 2018-05-02 17:34:28 -07:00
Matt Clay
d68900d728 Use HTTPS instead of HTTP for httpbin tests. (#39457)
The httpbin.org site is now redirecting HTTP to HTTPS.

(cherry picked from commit b92ef8e54a)
2018-05-01 20:56:17 -07:00
Matt Clay
169cfbb25b Disable failing tests.
(cherry picked from commit f9ba5bc5e9)
2018-04-27 16:15:45 -07:00
Matt Clay
ddc9708557 Update the cloudstack test container reference.
(cherry picked from commit ac1fbbeabc)
2018-04-25 12:32:00 -07:00
Matt Clay
05d6b2086f Fix mysql-server install/upgrade on Ubuntu 16.04. (#39241)
* Fix mysql-server install/upgrade on Ubuntu 16.04.
* Prevent service restart in docker_secret test.

(cherry picked from commit 996f9c2467)
2018-04-24 13:53:05 -07:00
Jordan Borean
74f14ac23d
win_setup: backport 2.4 fix for machine sid to work in domains with lots of users (#39040)
* win_setup: fix for machine sid to work in domains with lots of users (#38646)

(cherry picked from commit 2fc3ac3516)

* Added changelog entry for windows setup.ps1 fix
2018-04-21 06:57:08 +10:00
Matt Clay
b34402178e Update httptester container reference.
(cherry picked from commit 35748e5228)
2018-04-17 22:32:08 -07:00
Matt Clay
cff1cc6cc8 Restore docker_secret test on RHEL.
(cherry picked from commit 57f1298074)
2018-04-17 13:59:02 -07:00
Matt Clay
2cffb28b3d Disable failing fortios_* tests.
(cherry picked from commit 938625add7)
2018-04-17 13:58:55 -07:00
Matt Clay
e985272791 Use new vcenter simulator container location.
(cherry picked from commit 1d5c933ecf)
2018-04-16 16:29:56 -07:00
James Tanner
0ee146fef2 Fallback to the newer object type for dvswitch
(cherry picked from commit 940bf1f627)
2018-04-16 16:29:56 -07:00
John R Barker
00348c3db0
Explicitly exclude W504 (#38539) (#38553)
pycodestyle 2.4 has changed the default for W504
(cherry picked from commit 38491fe93d)
2018-04-11 09:47:58 +01:00
Markos Chandras
608d30ba9b modules: zypper: Optimize the 'search' subcommand (#37191)
When looking for installed packages we do not need to query
repositories since we only care about the rpmdb. As such, we can
disable all the repositories operations in order to improve the
performance of that step

Before this patch, when using 'state: present' in the zypper module,
the operation was taking about 12 seconds to complete:

time ansible-playbook foo.yml 1>/dev/null

real	0m12.614s
user	0m10.880s
sys	0m0.683s

After this patch:

time ansible-playbook foo.yml 1>/dev/null

real	0m4.193s
user	0m2.560s
sys	0m0.575s

see:
https://bugzilla.opensuse.org/show_bug.cgi?id=1084525
(cherry picked from commit 5234b78b5f)
2018-04-09 11:55:13 -07:00
Trishna Guha
9be623dd95
fix nxos_snapshot test assert (#38458)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2018-04-09 01:58:12 -04:00
Ganesh Nalawade
69f917ab6a Encode xml data to utf8 standard (#34079) (#38259)
(cherry picked from commit 5089122a32)
2018-04-06 12:45:40 -07:00
Toshio Kuratomi
f1f8b9f32f Add openssl_certificate python3 fix to the changelog 2018-04-06 12:45:40 -07:00
Toshio Kuratomi
7d91872fbb Add template fix to changelog 2018-04-06 12:45:40 -07:00
Jordan Borean
37901bba41
win_copy: added fix for win_copy deleting local tmp folder (#37978) 2018-04-06 07:18:53 +10:00
Sam Doran
971697052b Update installation docs for RHEL based distributions. (#38055)
Upstream rpms are no longer in Extras but EPEL as well as releases.ansible.com.
Add instructions for adding Ansible Engine repo to RHEL.
2018-04-05 10:47:20 -07:00
Toshio Kuratomi
0adcd7bd1a New release v2.4.4.0-1 2018-04-04 15:18:14 -07:00
Toshio Kuratomi
89c17724fd Update the docs with the 2.4.4 release date 2018-04-04 14:41:42 -07:00
Toshio Kuratomi
a2522ac581 New release v2.4.4.0-1 2018-04-04 13:10:52 -07:00
Toshio Kuratomi
2a07da2255 New release v2.4.4.0-0.3.rc2 2018-03-29 19:26:08 -07:00
Toshio Kuratomi
89b681a271 Add changelog entries for nxos_* fixes 2018-03-29 19:07:56 -07:00
Trishna Guha
846bfbf378 add nxos_snapshot test for missing required param (#37248)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
(cherry picked from commit 2501834c42)
2018-03-29 19:03:08 -07:00
Trishna Guha
88bd45b354 fix required args for nxos_snapshot and docs improvement (#37232)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
(cherry picked from commit a10df8b0b5)
2018-03-29 19:01:55 -07:00
Toshio Kuratomi
60c540c29b Add changelog for consul module state=absent fix 2018-03-29 18:54:25 -07:00
Toshio Kuratomi
9dd41cf47c Add changelog entry for jira py3 fix 2018-03-29 17:34:29 -07:00
Tim Werner
07ab4a9d20 make jira authentication Python3 compatible (#33862)
* make jira authentication Python3 compatible

(cherry picked from commit a51a699314)
2018-03-29 17:34:05 -07:00
Toshio Kuratomi
95f043c199 Add vagrant dyn inv fix to changelog 2018-03-29 17:33:11 -07:00
Hideki Saito
2ae7a892b9 Fix dynamic inventory for vagrant does not work on python3 (#37631)
* Fix dynamic inventory for vagrant does not work on python3 #35129

(cherry picked from commit 1b121fc9e4)
2018-03-29 17:32:47 -07:00
Toshio Kuratomi
5025cdb6a2 Add digital ocean py3 fix to changelog 2018-03-29 17:30:36 -07:00
Abhijeet Kasurde
3323eecfb0 DigitalOcean: typecast map function for Python3 (#37126)
In Python2, `map` returns list whereas Python3, `map` function
 returns iterator. This fix typecast map function for Python3.

Fixes: #37114

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 8f3f7f104f)
2018-03-29 17:23:44 -07:00
Toshio Kuratomi
d02dd8d8dd changelog for ansible-pull python3 fix 2018-03-29 15:17:17 -07:00
Toshio Kuratomi
133afbaebe Compare byte strings to byte strings
* Fix a traceback in ansible-pull on python3 comparing output from
  subprocess with a text string.
* Rename variables that hold byte strings so we are clear that those are
  not text strings.
* Use to_text() to transform variable that's being displayed as it's
  less fragile than str().

Fixes #36962

(cherry picked from commit b98ad3a12b)
2018-03-29 15:16:51 -07:00
Toshio Kuratomi
783f901919 Add ec2 python3 fix to changelog 2018-03-29 15:15:26 -07:00
Toshio Kuratomi
4beaa03ae6 Fix use of user_data field with spot_price in ec2 module (#37628)
The user_data field is base64 encoded inside of the boto library.  In
Python3, base64 must be used with byte strings.  So we make sure to
encode the user_data into a byte string before passing it on to the boto
library.

Fixes #34978

(cherry picked from commit 0d55081ba8)
2018-03-29 15:14:24 -07:00
Toshio Kuratomi
cf557f0dc1 Add csvfile py3 fix to changelog 2018-03-29 15:13:05 -07:00
Toshio Kuratomi
f7d14a78eb Fix csvfile traceback on Python3 (#37625)
* Fix csvfile traceback on Python3

The csvfile lookup uses some custom iterators.  These needed to be
ported to handle the python3 iterator protocol.  In addition, the
csvfile module takes an iterator of byte strings in Python2 and an
iterator of text strings in Python3

Fixes #36808

(cherry picked from commit 09325b619e)
2018-03-29 15:10:28 -07:00
Toshio Kuratomi
ff2a4eadd8 add haproxy py3 fix 2018-03-29 14:58:53 -07:00
Ravi
8c0b91cdb5 Fix python3 interpreter issue (#34811) (#35176)
* Fix python3 interpreter issue (#34811)

* Update ansible.module_utils._text (#34811)

* Convert to text later to account for multibyte characters

(cherry picked from commit 340064bfb9)
2018-03-29 14:57:54 -07:00
Toshio Kuratomi
c40e62d38f Cherry pick fix for interface_files
https://github.com/ansible/ansible/pull/37818/files
2018-03-29 14:45:12 -07:00
Alvaro Aleman
5d604d7ecd Fix consul module service deregistration (#34847)
* Fix consul module service deregistration

Upstream pr in the python-consul library:
https://github.com/cablehead/python-consul/pull/174

This is based on work from https://github.com/bobh

Fixes ansible/ansible#34628

* Pass ACL token when deregistering consul service

(cherry picked from commit c9cb0016a0)
2018-03-29 14:12:42 -07:00
Matt Martz
b9c94cc0c4 Add changelog entry for #36470 2018-03-28 09:20:42 -07:00