Commit graph

29992 commits

Author SHA1 Message Date
Toshio Kuratomi
c0d3915bd2 Add https retrieval via TLSv1.2 to changelog 2018-02-23 11:07:27 -08:00
Toshio Kuratomi
6020c0d4f6 Prefer the stdlib SSLContext over urllib3 context
We do not go through the effort of finding the right PROTOCOL setting if
we have SSLContext in the stdlib.  So we do not want to hit the code
that uses PROTOCOL to set the urllib3-provided ssl context when
SSLContext is available.  Also, the urllib3 implementation appears to
have a bug in some recent versions.  Preferring the stdlib version will
work around that for those with Python-2.7.9+ as well.

Fixes #26235
Fixes #25402
Fixes #31998

(cherry picked from commit 725ae96e1b)
2018-02-23 11:05:43 -08:00
Matt Clay
bc9b44d907 Fix pip integration test.
(cherry picked from commit ea70b49b11)
2018-01-31 23:28:24 -08:00
Matt Clay
fb14b36f7f Remove EOL openSUSE Leap 42.2 from CI.
(cherry picked from commit abbc1ed4e6)
2018-01-31 21:53:23 -08:00
s-hertel
857f959135 loop doesn't exist in 2.4
(cherry picked from commit 6a6ae0cede)
2018-01-24 08:51:05 -08:00
Toshio Kuratomi
5bd16d438d Add environment in loop fix to changelog 2018-01-24 08:51:05 -08:00
Sloane Hertel
deaa9a21f9 Fix using loops with environment and add tests (#32796)
(cherry picked from commit 7bb35e8781)
2018-01-24 08:51:05 -08:00
Toshio Kuratomi
6233daaa44 Add ssh flush() fix to changelog 2018-01-18 09:34:57 -08:00
Matt Martz
f0cae29d57 Ensure that the become password is written on py3 in the ssh connection plugin. Fixes #34727
(cherry picked from commit 29c1d5cb5d)
2018-01-18 09:33:24 -08:00
Adam Miller
2c116617de
Fix Linux blockdevice size computation (#34645)
Linux' sysfs _always_ reports device size in 512b sector units,
regardless of the device's actual, physical blocksize.

Backport of PR#34475 originally written by jtru

Original Commit ID: 603d31685c01caa62db137d8aab1a54180e3373d

Signed-off-by: Adam Miller <admiller@redhat.com>
2018-01-10 06:27:22 -08:00
Matt Clay
204d0f7bea Make xattr test conditional on feature support.
(cherry picked from commit 77726b471f)
2018-01-08 23:58:30 -08:00
Matt Davis
fcba7a086a avoid use of Write-Host in config script
(cherry picked from commit 82996d5b267994d9806bbba62ceee2cd6613e9da)
2017-12-20 22:52:24 -08:00
Matt Davis
a787488990 add GlobalHttpFirewallAccess arg
(cherry picked from commit a9ca0389b6cdf2992b04d6bafbd2cb3feb861d12)
2017-12-20 21:35:20 -08:00
James Cammarata
0255ab2e27 New release v2.3.3.0-1 2017-12-20 11:49:41 -06:00
Matt Clay
797d999513 Update FreeBSD completion for ansible-test.
(cherry picked from commit 73132d3906)
2017-12-05 22:34:30 -08:00
Matt Clay
3a963a68c2 Limit pytest < 3.3.0 for python 2.6.
(cherry picked from commit 58286ef93b)
2017-12-05 22:32:45 -08:00
Matt Clay
6e1f29cde2 Limit paramiko to < 2.4.0 for python 2.6.
(cherry picked from commit 5f5e150771)
2017-12-05 22:32:37 -08:00
Matt Clay
30b0103ceb Update FreeBSD versions used in CI. 2017-12-05 21:21:01 -08:00
Matt Clay
218103d540 Update vyos completion in network.txt.
(cherry picked from commit 3a6fad38fa)
2017-11-22 10:17:35 -08:00
Matt Clay
f0f2031eaf Use vyos/1.1.8 in CI.
(cherry picked from commit 887f227994)
2017-11-22 10:16:13 -08:00
Matt Clay
b123fa4d6f Fix and re-enable zypper* integration tests in CI.
(cherry picked from commit 781219bcfd)
2017-11-17 15:54:23 -08:00
Matt Clay
7256dd17ae
Pin Shippable build image to v5.4.1. (#32988)
* Pin Shippable build image to v5.4.1.
* Remove `pre_ci` to eliminate extra git sync.
2017-11-16 11:34:40 -08:00
James Cammarata
54cfb022c2 New release v2.3.3.0-0.3.rc3 2017-11-10 16:00:14 -06:00
Toshio Kuratomi
012998c5f7 Revert "Add template lookup fix to changelog"
This reverts commit 994ed2c443.
2017-11-09 10:24:43 -08:00
Toshio Kuratomi
6eb485c136 Revert "Do not escape backslashes when using the template lookup plugin"
This reverts commit 2b40463a48.

Decided that this change was too big for a bugfix release.  Make it
2.4.x only.
2017-11-09 10:24:43 -08:00
Matt Clay
49f3dda7f6
WIP: Resolve CI issues for stable-2.3. (#32605)
* Revert "If pip install requirements.txt fails, upgrade pip (#32399)"

This reverts commit 2fb4f547a9.

* Avoid pep8 user warning in 1.7.1.
* Limit cryptography version for Windows tests.
* Upgrade pip in virtualenv for pip test.
* Upgrade pip in virtualenv for groupby_filter test.
* Upgrade pip in virtualenv for template_jinja2_latest test.
2017-11-06 17:32:47 -08:00
Toshio Kuratomi
b77de1bd5d If we can't find a .py file for the system six, use our bundled copy instead.
Fixes #32567
2017-11-06 11:22:54 -08:00
John R Barker
2fb4f547a9
If pip install requirements.txt fails, upgrade pip (#32399)
* If pip install requirements.txt fails, upgrade pip

* Use pycodestyle instead of pep8 (#25947)

(cherry picked from commit 4b3d6dfa8a)

* Ignore more

* pylint lint fixes

* Ignore more
2017-11-06 15:54:37 +00:00
Ganesh Nalawade
eaa2fcc73f Fix password leak in logs for provider argument (#32215)
* Fix password leak in logs for provider argument

Since provider argument is not validated against a spec
the `no_log` arguments are not handled leading to password
leaking to syslogs.
To fix this:
*  Mask password and other `no_log` provider arguments in action plugin
*  In case of eapi and nxapi as the password is used in module code,
*  copy the provider password to top-level password argument which
*  handles `no_log` correctly. This will, however, throw a deprecation
*  warning message for password arg even if it is not given as a
*  top-level argument.

* Remove auth details from provider args in action plugin

* Update CHANGELOG
2017-11-03 11:27:14 -05:00
Matt Martz
4c6612eeba Fix patching to epel package
(cherry picked from commit be9cc70b74)
2017-10-30 14:41:30 -07:00
Toshio Kuratomi
c4085eb07c Add hostname fix for rhel7 2017-10-18 16:30:18 -07:00
Martin Krizek
b27e86ac07 hostname: fix for a new version of rhel (#31839)
Fixes #31811
(cherry picked from commit efec43dd1e)
2017-10-18 16:29:33 -07:00
James Cammarata
9e116c1b65 New release v2.3.3.0-0.2.rc2 2017-10-17 11:39:33 -05:00
Matt Clay
4cddc2e7c9 Backport ansible-test updates from devel.
The primary change is use of the new servers for
provisioning remote OS X instances for use in CI.
2017-10-12 21:52:17 -07:00
Brian Coca
03a0ea682b restored 2.4/2.5 compat 2017-10-12 12:58:25 -04:00
sethp-nr
152c895b1f wait_for: treat broken connections as "unready" (#28839)
* wait_for: treat broken connections as "unready"

We have observed the following condition while waiting for hosts:

```
Traceback (most recent call last):
  File "/var/folders/f8/23xp00654plcv2b2tcc028680000gn/T/ansible_8hxm4_/ansible_module_wait_for.py", line 585, in <module>
    main()
  File "/var/folders/f8/23xp00654plcv2b2tcc028680000gn/T/ansible_8hxm4_/ansible_module_wait_for.py", line 535, in main
    s.shutdown(socket.SHUT_RDWR)
  File "/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 57] Socket is not connected
```

This appears to happen while the host is still starting; we believe something is
accepting our connection but immediately resetting it. In these cases, we'd
prefer to continue waiting instead of immediately failing the play.

This patch has been applied locally for some time, and we have seen no adverse
effects.

* wait_for: fixup change

We were missing an import and a space after the `#`

(cherry picked from commit 402b095841)
2017-10-12 11:40:42 -04:00
James Cammarata
60d9513efb New release v2.3.3.0-0.1.rc1 2017-09-30 12:17:08 -05:00
Brian Coca
4eea3e91ad restored 'static' which is still used in 2.3 2017-09-30 12:17:08 -05:00
Brian Coca
a9e8f38342 validate include_role args (#28077)
* validate include_role args
* removed unused static

(cherry picked from commit d89dd75769)
2017-09-29 10:52:46 -04:00
Toshio Kuratomi
fd37f27d2b Add jenkins_plugin CVE fix to changelog 2017-09-26 11:25:20 -07:00
Toshio Kuratomi
4d5b9ae803 Remove example of using params for the url_password
params could be logged so never use it for passwords.

Also add code to raise an error if passwords are used in that field.

References #30874

(cherry picked from commit 863fcb5ace)
2017-09-25 18:34:53 -07:00
Brian Coca
43e0a0369b fix for yaml inventory in not likeing 'none' 2017-09-20 16:55:36 -04:00
jborean93
82754c7a31 revert win_file headers back to original format so cherry picking works 2017-09-19 07:15:35 +10:00
jborean93
a606321975 Updated changelog to for win_file check mode fix 2017-09-19 06:50:16 +10:00
Dag Wieers
f1f8d0319f win_file: Fix check-mode issue removing dirs (#30475)
This fixed #30442

(cherry picked from commit 229a86c952)
2017-09-19 06:49:45 +10:00
Ganesh Nalawade
4f5bf2e08f Use safe_load to load yaml (#30408)
Replace `yaml.load` with `yaml.safe_load`

(cherry picked from commit 8c3bf20a13)
2017-09-15 14:39:16 +05:30
Toshio Kuratomi
b4004e5046 Document boolean default value treatment (#30062)
* Consistency and document treatment of default bool values

* Document that default bool values can be any Ansible recognized bool.
  choose the one that reads better in context
* For fragments used by the copy module, make bool types use type=bool and not choices

* Edit for clarity

(cherry picked from commit 8a2f069468)
2017-09-14 13:29:25 -07:00
Rene Moser
48d821e611 update changelog for Tower module_utils SSL fix 2017-09-14 09:26:59 -07:00
ethackal
4a58187103 Fixes verify_ssl option when False in ansible_tower module util (#30308)
* Fixes verify_ssl option when False in ansible_tower module util

* fixed comparison to None per PEP-8 standards

(cherry picked from commit 4980ebf064)
2017-09-14 09:26:59 -07:00
Sloane Hertel
e8e2c5a9f7 [cloud] update the local variable route_table with the latest tag changes (#23136) (#29989) 2017-09-14 12:30:09 +10:00