Commit graph

19594 commits

Author SHA1 Message Date
James Cammarata
400a3b984e Additional security fixes for CVE-2016-9587
(cherry picked from commit b7cdc21aee)
2017-01-13 16:25:20 -06:00
Toshio Kuratomi
6c6570583f Add jinja2 version constraint.
We're not yet compatible with jinja2-2.9 so help out people using pip to
install to get a working installation.

(cherry picked from commit 06ed25e788)
2017-01-12 11:16:12 -08:00
James Cammarata
b5daf2286c New release v2.1.4.0-0.2.rc2 2017-01-11 16:28:32 -06:00
James Cammarata
7ec84394f9 Partial revert of 76f7ce55
(cherry picked from commit a94a48f85f)
2017-01-11 15:57:41 -06:00
James Cammarata
35480106e5 Additional fixes for security related to CVE-2016-9587
(cherry picked from commit d316068831)
2017-01-11 15:57:38 -06:00
Computest
51559b0a51 Fixing another corner case for security related to CVE-2016-9587
(cherry picked from commit bcceada5d9)
2017-01-11 15:54:42 -06:00
Matt Clay
bd1ba1e21a Update fedora images for testing. 2017-01-09 16:04:30 -08:00
Matt Clay
596765c605 Fix group_by test to work with jinja2 >= 2.9.
(cherry picked from commit cc3d131f50)
2017-01-09 15:28:49 -08:00
James Cammarata
d69f096f3e New release v2.1.4.0-0.1.rc1 2017-01-09 10:52:21 -06:00
James Cammarata
d7dd41146a Fixing security bugs CVE-2016-9587
(cherry picked from c8f8d0607c5c123522951835603ccb7948e663d5)
2017-01-09 10:44:02 -06:00
James Cammarata
f7ff28336d Correctly set loader path when using list tags/tasks
Fixes #19398

(cherry picked from commit b688f11474)
2016-12-21 21:05:10 -06:00
James Cammarata
20df246504 Wrap unhandled errors from lookups in an AnsibleError
This provides better error handling, and prevents errors like KeyError
from bubbliing up to code in odd places.

Fixes #17482

(cherry picked from commit 85bbce9d6b)
2016-12-21 11:49:46 -06:00
René Moser
f821d3a9f6 cloudstack: utils: fail friendlier if no zones available (#19332)
(cherry picked from commit 18b7852940)
2016-12-14 16:39:19 +01:00
James Cammarata
a8421e2424 Updating core submodules for mysql fix 2016-11-29 13:24:59 -06:00
Michael Schuett
75cdac0d19 Fix auth in collins.py inventory
This forces basic auth to be used. Using the normal HTTPPasswordMgrWithDefaultRealm
password manager from urllib2 fails since collins doesn't send a 401 retry on failure.
More about this can be seen here http://stackoverflow.com/questions/2407126/python-urllib2-basic-auth-problem.
I added a small comment about the format of the host so others don't waste time like i did.

(cherry picked from commit 21813ed83e)
2016-11-23 14:39:50 -05:00
James Cammarata
ff0b525608 Revert "Moved the _inventory.clear_group_dict_cache() from creating a group w… (#17766)"
This reverts commit a36ac1ad1b.
2016-11-18 14:28:59 -06:00
jamessewell
a36ac1ad1b Moved the _inventory.clear_group_dict_cache() from creating a group w… (#17766)
* Moved the _inventory.clear_group_dict_cache() from creating a group which doesn't exist, to adding members to the group.

* Update __init__.py

Update to use changed: block to catch all changes for cache clear as suggested

(cherry picked from commit b91d4d884d)
2016-11-18 13:28:27 -06:00
Brian Coca
d6ab369916 fix for filter fix
(cherry picked from commit 5d043b65d3)
2016-11-17 13:42:51 -05:00
Brian Coca
78e47b4bbd remove rsync path from returned facts
(cherry picked from commit 7c960d440f)
2016-11-17 13:21:26 -05:00
James Cammarata
c3fbe526ca Catch loop eval errors and only raise them again if the task is not skipped
This should help on issues like #16222.

(cherry picked from commit 57cf5e431c)
2016-11-15 10:40:50 -06:00
Brian Coca
eea3051a12 readded var incorrectly removed via merge 2016-11-04 17:22:51 -04:00
Brian Coca
f99060b3b9 resolve inventory path on init
This allows meta refresh_inventory to work with relative paths
Added option to unfrackpath to not resolv symlinks
fixes #16857

(cherry picked from commit 8217c1c39c)
2016-11-04 17:22:51 -04:00
nyasukun
00c48637b0 fixed memoryerror when coping huge file (#16392)
* fixed

* support both python 2 and 3

(cherry picked from commit adea1f2b80)
2016-11-04 12:58:21 -07:00
James Cammarata
0f6b318b29 Belated updating of CHANGELOG for 2.1.3 2016-11-04 14:26:22 -05:00
James Cammarata
4cadc98049 New release v2.1.3.0-1 2016-11-04 11:51:44 -05:00
Toshio Kuratomi
394dd2be04 Revert "fix iteritems for python 3"
This reverts commit 0bb04e132a.

This was supposed to land on stable-2.2, not stable-2.1
2016-11-01 12:46:03 -07:00
Daniel Menet
0bb04e132a fix iteritems for python 3
(cherry picked from commit 19fdb58948)
2016-11-01 09:38:22 -07:00
James Cammarata
b056a5823f New release v2.1.3.0-0.3.rc3 2016-10-25 10:30:52 -05:00
Matt Davis
b5c95ea6fa backport various docker_common fixes from devel 2016-10-25 08:20:35 -07:00
Matt Davis
12a38bc75f fix version check to support >=rc5
(cherry picked from commit d1e1898b0e)
2016-10-24 21:23:05 -07:00
Thomas Quinot
c03bdbfad0 Filter out internal magic and connection variables from facts returns
Fixes #15925

(cherry picked from commit 236c923c25)
2016-10-24 23:09:28 -05:00
James Cammarata
e2926bd398 New release v2.1.3.0-0.2.rc2 2016-10-24 18:46:43 -05:00
Toshio Kuratomi
72cd60a1cd Update submodule refs 2016-10-24 15:50:40 -07:00
Toshio Kuratomi
14e021496d Add changelog for apt_key change 2016-10-24 15:50:07 -07:00
Matt Clay
aadf342b46 Switch test_lookups to badssl/local testing. (#16466) (#18144)
* Switch test_lookups to badssl/local testing.
* Use var for checking badssl host content.

(cherry picked from commit 394430a61e)
2016-10-21 21:40:25 -07:00
John R Barker
60a2da09de Backport validate-modules to stable-2.1 so we can have versioned testing (#18120)
See #18001 for more details
2016-10-20 18:22:47 +01:00
James Cammarata
e00dc01803 New release v2.1.3.0-0.1.rc1 2016-10-18 15:44:28 -05:00
Toshio Kuratomi
28016bf1a0 Add entry for using no_log with password in subversion 2016-10-17 12:44:21 -07:00
Toshio Kuratomi
768c1e2e58 Update core submodule to pull in fix for subversion and no_log 2016-10-17 12:44:01 -07:00
Toshio Kuratomi
a18e2976c6 Update extras submodule ref to pull in postgresql_lang and postgresql_ext password hiding fix 2016-10-17 08:11:02 -07:00
Bill Nottingham
3f7ac72427 Change <support@ansible.com> - it's being retired. 2016-10-15 16:47:15 -07:00
Toshio Kuratomi
4ea3cd3a38 Fix paramiko for non-ascii become password
Cherry-picked from a part of f24c10c32b
2016-10-15 16:29:54 -07:00
Toshio Kuratomi
264b33da6b Fix become password using non-ascii for local connection
Fixes #18029

(cherry picked from commit efc5dac52c)

In 2.1, the to_bytes function doesn't have a surrogate_or_strict error handler
2016-10-15 11:29:51 -07:00
Bruno Rocha
3e58f08155 Fix unbound method call for JSONEncoder (#17970)
* Fix unbound method call for JSONEncoder

The way it is currently it will lead to unbound method error

```python
In [1]: import json

In [2]: json.JSONEncoder.default('object_here')
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-2-872fdacfda50> in <module>()
----> 1 json.JSONEncoder.default('object_here')

TypeError: unbound method default() must be called with JSONEncoder instance as first argument (got str instance instead)

```

But what is really wanted is to let the json module to raise the "is not serializable error" which demands a bounded instance of `JSONEncoder()`

```python
In [3]: json.JSONEncoder().default('object_here')
---------------------------------------------------------------------------
TypeError: 'object_here' is not JSON serializable

```

BTW: I think it would try to call `.to_json` of object before raising as it is a common pattern.

* Calling JSONEncoder bounded `default` method using super()

(cherry picked from commit b06fb2022c)
2016-10-11 08:33:47 -07:00
Brian Coca
972379c907 fix method signature 2016-10-07 10:27:10 -04:00
James Cammarata
6db31bb4c6 Moves 'statically included' messages to -vv verbosity 2016-10-06 08:56:42 -05:00
James Cammarata
a7d0cc6e61 Move searching for roles in the cur basedir to last
Searching the DEFAULT_ROLES_PATH and the roles basedir should come
before this, and it has been a long standing oversight.

Fixes #17882

(cherry picked from commit 0a86ddc251)
2016-10-05 01:26:00 -05:00
Brian Coca
ea5e2d46ee fixed storing of cwd
(cherry picked from commit d9d7e413a5)
2016-10-04 14:26:23 -04:00
Brian Coca
e72d1e995f fixed usage of incorrect exception class
fixes #17895
2016-10-04 11:52:28 -04:00
James Cammarata
2a234c1ff9 Check for substates in is_failed before checking main state failure
Fixes #17882

(cherry picked from commit d09f57fb3a)
2016-10-04 01:43:38 -05:00