Commit Graph

33631 Commits (b34402178e60be78a49fa8588c00a31cc79a7fd0)
 

Author SHA1 Message Date
Matt Clay b34402178e Update httptester container reference.
(cherry picked from commit 35748e5228)
8 years ago
Matt Clay cff1cc6cc8 Restore docker_secret test on RHEL.
(cherry picked from commit 57f1298074)
8 years ago
Matt Clay 2cffb28b3d Disable failing fortios_* tests.
(cherry picked from commit 938625add7)
8 years ago
Matt Clay e985272791 Use new vcenter simulator container location.
(cherry picked from commit 1d5c933ecf)
8 years ago
James Tanner 0ee146fef2 Fallback to the newer object type for dvswitch
(cherry picked from commit 940bf1f627)
8 years ago
John R Barker 00348c3db0
Explicitly exclude W504 (#38539) (#38553)
pycodestyle 2.4 has changed the default for W504
(cherry picked from commit 38491fe93d)
8 years ago
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)
8 years ago
Trishna Guha 9be623dd95
fix nxos_snapshot test assert (#38458)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
8 years ago
Ganesh Nalawade 69f917ab6a Encode xml data to utf8 standard (#34079) (#38259)
(cherry picked from commit 5089122a32)
8 years ago
Toshio Kuratomi f1f8b9f32f Add openssl_certificate python3 fix to the changelog 8 years ago
Toshio Kuratomi 7d91872fbb Add template fix to changelog 8 years ago
Jordan Borean 37901bba41
win_copy: added fix for win_copy deleting local tmp folder (#37978) 8 years ago
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.
8 years ago
Toshio Kuratomi 0adcd7bd1a New release v2.4.4.0-1 8 years ago
Toshio Kuratomi 89c17724fd Update the docs with the 2.4.4 release date 8 years ago
Toshio Kuratomi a2522ac581 New release v2.4.4.0-1 8 years ago
Toshio Kuratomi 2a07da2255 New release v2.4.4.0-0.3.rc2 8 years ago
Toshio Kuratomi 89b681a271 Add changelog entries for nxos_* fixes 8 years ago
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)
8 years ago
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)
8 years ago
Toshio Kuratomi 60c540c29b Add changelog for consul module state=absent fix 8 years ago
Toshio Kuratomi 9dd41cf47c Add changelog entry for jira py3 fix 8 years ago
Tim Werner 07ab4a9d20 make jira authentication Python3 compatible (#33862)
* make jira authentication Python3 compatible

(cherry picked from commit a51a699314)
8 years ago
Toshio Kuratomi 95f043c199 Add vagrant dyn inv fix to changelog 8 years ago
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)
8 years ago
Toshio Kuratomi 5025cdb6a2 Add digital ocean py3 fix to changelog 8 years ago
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)
8 years ago
Toshio Kuratomi d02dd8d8dd changelog for ansible-pull python3 fix 8 years ago
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)
8 years ago
Toshio Kuratomi 783f901919 Add ec2 python3 fix to changelog 8 years ago
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)
8 years ago
Toshio Kuratomi cf557f0dc1 Add csvfile py3 fix to changelog 8 years ago
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)
8 years ago
Toshio Kuratomi ff2a4eadd8 add haproxy py3 fix 8 years ago
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)
8 years ago
Toshio Kuratomi c40e62d38f Cherry pick fix for interface_files
https://github.com/ansible/ansible/pull/37818/files
8 years ago
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)
8 years ago
Matt Martz b9c94cc0c4 Add changelog entry for #36470 8 years ago
Matt Martz 07449d7e3d Fix py3 issue in wait_for_connection (#37646)
(cherry picked from commit 6c3e565ba3)
8 years ago
Matt Clay dff97aa252 Fix docker_secret test on RHEL.
(cherry picked from commit f1899f784b)
8 years ago
Matt Clay 03245022a2 Pin httptester SHA.
(cherry picked from commit 8232c95f42)
8 years ago
Matt Clay a1abc2788d Fix uri test on Python 2.6.
(cherry picked from commit 1fd9a616a4)
8 years ago
Marc Mercer ff8f3120ef Fixing tab indent on elb_target_group.py example 8 years ago
Toshio Kuratomi 0b0d8a0c03 Add changelog entry for error message wrapping 8 years ago
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)
8 years ago
Toshio Kuratomi 850224dd5e Add ovirt_vms fix to changelog 8 years ago
Ondra Machacek 2e30e2c8f2 ovirt_vms: Pass correct VM entity to create method (#37460)
(cherry picked from commit 9f02fea15b)
8 years ago
Toshio Kuratomi 0df8924b35 Add openssl_certificate python3 fix to the changelog
(cherry picked from commit 282fbfa776)
8 years ago
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)
8 years ago
s-hertel 02e591746c Use hyphens in bucket name instead of underscores
As of March 1st underscores are not supported in us-east-1
8 years ago