Commit graph

33629 commits

Author SHA1 Message Date
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
Matt Martz
07449d7e3d Fix py3 issue in wait_for_connection (#37646)
(cherry picked from commit 6c3e565ba3)
2018-03-28 09:20:42 -07:00
Matt Clay
dff97aa252 Fix docker_secret test on RHEL.
(cherry picked from commit f1899f784b)
2018-03-22 12:35:36 -07:00
Matt Clay
03245022a2 Pin httptester SHA.
(cherry picked from commit 8232c95f42)
2018-03-20 12:20:30 -07:00
Matt Clay
a1abc2788d Fix uri test on Python 2.6.
(cherry picked from commit 1fd9a616a4)
2018-03-19 23:19:42 -07:00
Marc Mercer
ff8f3120ef Fixing tab indent on elb_target_group.py example 2018-03-19 16:39:34 -07:00
Toshio Kuratomi
0b0d8a0c03 Add changelog entry for error message wrapping 2018-03-19 08:11:20 -07:00
Pilou
4f071bdc2f Connection error messages are unsafe: wrap them (#37329)
* Check that connection error msg are not unsafe

* Connection error messages are unsafe: wrap them

For example, in case of error, docker connection plugin returns exception
message containing Go template. These messages weren't tagged as unsafe
and were consequently rendered:

The conditional check 'result is failed' failed. The error was:
{
  'msg': u'Docker version check ([\'/usr/bin/docker\', \'version\', \'--format\', "\'{{.Server.Version}}\'"]) failed: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.35/version: dial unix /var/run/docker.sock: connect: permission denied\n',
  'failed': True
}:
template error while templating string: unexpected '.'.
String: Docker version check (['/usr/bin/docker', 'version', '--format', "'{{.Server.Version}}'"]) failed: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.35/version: dial unix /var/run/docker.sock: connect: permission denied

(cherry picked from commit 4378542ac7)
2018-03-19 08:10:10 -07:00
Toshio Kuratomi
850224dd5e Add ovirt_vms fix to changelog 2018-03-19 07:59:09 -07:00
Ondra Machacek
2e30e2c8f2 ovirt_vms: Pass correct VM entity to create method (#37460)
(cherry picked from commit 9f02fea15b)
2018-03-19 07:52:19 -07:00
Toshio Kuratomi
0df8924b35 Add openssl_certificate python3 fix to the changelog
(cherry picked from commit 282fbfa7764fee5ec56046d1b248813e42107b6c)
2018-03-19 07:50:40 -07:00
Michael Scherer
0f8b06a8f6 write need bytes object on python 3 (#35143)
Otherwise, it fail with:

    Traceback (most recent call last):
      File \"/tmp/ansible_c1zmq3i9/ansible_module_openssl_certificate.py\", line 808, in <module>
        main()
      File \"/tmp/ansible_c1zmq3i9/ansible_module_openssl_certificate.py\", line 787, in main
        certificate.generate(module)
      File \"/tmp/ansible_c1zmq3i9/ansible_module_openssl_certificate.py\", line 692, in generate
        certfile.write(str(crt))
    TypeError: a bytes-like object is required, not 'str'

(cherry picked from commit 347b5d1e50)
2018-03-19 07:50:40 -07:00
s-hertel
02e591746c Use hyphens in bucket name instead of underscores
As of March 1st underscores are not supported in us-east-1
2018-03-15 13:27:11 -07:00
Matt Clay
7fdc56724a Disable failing github_issue integration test.
(cherry picked from commit 30bb70cf2d)
2018-03-14 16:16:41 -07:00
jjshoe
3fe258e7d5 Document that this module was renamed recently (#37420)
(cherry picked from commit ff15a9e7e2)
2018-03-14 11:37:29 -07:00