Commit graph

19557 commits

Author SHA1 Message Date
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
Brian Coca
751865d68c only change dir to playdir if local
fixes #17869
fixes #17770

(cherry picked from commit 49ce0c8bac)
2016-10-03 15:56:28 -04:00
Matt Davis
ec1f19ac3a bump core submodule ref 2016-10-03 08:32:23 -07:00
James Cammarata
29f2f26278 New release v2.1.2.0-1 2016-09-29 10:01:35 -05:00
James Cammarata
5f23d09e7c Removing mount from CHANGELOG due to reversion 2016-09-29 09:53:34 -05:00
Toshio Kuratomi
b989004a0b Pick up core reversion of mount changes 2016-09-29 07:19:23 -07:00
James Cammarata
fd256a79a1 Updating CHANGELOG for 2.1 2016-09-29 08:51:49 -05:00
James Cammarata
c3257027b9 New release v2.1.2.0-0.5.rc5 2016-09-27 10:41:46 -05:00
Toshio Kuratomi
4c845b4ef0 Update submodule ref for fix to mount backport 2016-09-27 07:28:05 -07:00
James Cammarata
3d8dac2084 New release v2.1.2.0-0.4.rc4 2016-09-26 14:45:29 -05:00
Toshio Kuratomi
2b7761cd37 Update core to pick up more mount changes 2016-09-26 12:10:21 -07:00
Toshio Kuratomi
60a6c83abc Add ini_file whitespace change to the CHANGELOG 2016-09-26 07:05:13 -07:00
Toshio Kuratomi
ee4ba3ceca Update submodule refs 2016-09-26 07:04:24 -07:00
Toshio Kuratomi
66ffe199e5 Disable mount tests for now. Mount is buggy on too many platforms 2016-09-23 16:37:49 -07:00
Toshio Kuratomi
5635670191 Update submodule refs for mount fixes 2016-09-23 14:53:31 -07:00
Toshio Kuratomi
a4611ff509 Add tests for the mount module (#17718)
* Add tests for the mount module

* Switch from unmounted to absent...

the code for mounting always modifies fstab so we need to always modify
fstab to cleanup as well.

* Fix comments and copyright
2016-09-23 12:54:09 -07:00
Abhijit Menon-Sen
cc71765d9e Use loop_control.loop_var directly
6eefc11c converted task.loop_control into an object, but while the other
callers were updated to use .loop_var instead of .get('loop_var'), this
site was overlooked.

This can be reproduced by including with loop_control a file that does
set_fact; a simple regression test along these lines is included.

(cherry picked from commit 950cc26aab)
2016-09-23 10:39:06 -05:00
Peter Sprygada
b5b8a756fc fixes issue with net_template failing unless src argument provided. (#17726)
This fixes an issue where the net_template action will fail if a non
required argument (src) is not provided.

fixes ansible/ansible-modules-core#4978
2016-09-23 09:24:30 -04:00
nitzmahone
4c9ed1f4fb bump extras submodule ref for win_chocolatey fix 2016-09-22 20:09:06 -07:00
Toshio Kuratomi
e917a0bd7a Fix for cherry-pick e8dddc3679,
The cherry-pick allows module parameters to convert int to float, fixing
bugs where a float type is required.  However, it used types from the
six library for python3 compatibility as well.  Since we don't have
six in 2.1.0 this was buggy.  Merging the unittests for the problem
here: adc158a499 made this buggy behaviour
apparent.
2016-09-21 21:45:03 -07:00
Toshio Kuratomi
9de21e1eaa Update submodule refs 2016-09-21 20:41:52 -07:00
Toshio Kuratomi
eaba2152f3 Remove _load_hosts() from Play initialization as it's no longer needed and it breaks using extra_vars defining a list for hosts (#17699)
Thanks to @jimi-c for the solution

Fixes #16583
2016-09-21 20:41:13 -07:00
Christoph
adc158a499 Add a test for int/float parameter type checking (#16741)
A parameter of type int should accept int and string, but not float.
A parameter of type float should accept float, int, and string.

Also reset the arguments in another test so that it runs cleanly.  This
agrees with what all the other tests are doing.
2016-09-21 20:39:02 -07:00
James Cammarata
01439aafaf Create a raw lookup for hostvars that does not template the data
When using hostvars to get extra connection-specific vars for connection
plugins, use this raw lookup to avoid prematurely templating all of the
hostvar data (triggering unnecessary lookups).

Fixes #17024

(cherry picked from commit ac5ddf4aa092e12f9e1c85c6b74aa30b7ef0a382)
2016-09-21 13:16:58 -05:00
Matt Clay
b7168d2ac8 Remove Travis config/badge and add Shippable. (#17680) 2016-09-20 17:35:57 -07:00
James Cammarata
c004ae578d Take ITERATING_ALWAYS into account when setting failed state in PlayIterator
Fixes #15963

(cherry picked from commit 4dc2bf4815)
2016-09-20 11:31:23 -05:00
James Cammarata
efe5bb122e Rework the way params are assigned to TaskIncludes when they're dynamic
Copying the TaskInclude task (which is the parent) before loading the blocks
makes the code much more simple and clean, and fixes a bug introduced during
the performance improvement changes (and specifically the change which moved
things to a single-parent model).

Fixes #17064

(cherry picked from commit f4237b2151)
2016-09-19 14:29:08 -05:00
René Moser
27c621950c cloudstack: fix has_changed dict values comparsion (#17632)
In some rare situations, the CloudStack API returns string for numbers
when we expected int.

With this fix, we ensure we compare the types expected.
2016-09-19 14:08:21 +02:00
Andrea Tartaglia
7bfa36eb8b Pass the absolute path to dirname when assigning basedir (#17457)
* Pass the absolute path to dirname when assigning basedir

If no path is specified when calling the playbook, os.path.dirname(playbook_path) returns ''
This will cause failure when creating the retry file.

Fixes #17456

* Updated to use os.pathdirname(os.path.abspath())
2016-09-16 08:20:47 -07:00
James Cammarata
fb71a9dfd9 New release v2.1.2.0-0.3.rc3 2016-09-14 16:51:18 -05:00
Jay
d86b2ec225 Fix issue with proxy setting leaving temp files (#17073)
When using the no_proxy option, the temp ca files that are created for
setting up an ssl context were not being deleted. 

This small patch fixes that issue by removing the temp file.
2016-09-13 16:15:48 -04:00
Ryan S. Brown
7ea342d8ec bump core submodule ref 2016-09-13 10:57:53 -04:00
Toshio Kuratomi
6ba8926889 Update submodule refs 2016-09-12 09:02:44 -07:00
nitzmahone
2e06f0b427 add win_user regression tests
Ensure https://github.com/ansible/ansible-modules-core/issues/4369 doesn't occur again, also adds tests for password set when expired.

(cherry picked from commit 69880f1640)
2016-09-11 20:47:40 -07:00
nitzmahone
a900a0b4e3 bump core submodule ref 2016-09-11 20:47:31 -07:00
Monty Taylor
c536ca399a Fix galaxy import command for 2.1 (#17417)
The g_connect decorator is required on create_import_task or else
self.baseurl is None. This is fixed in devel already.
2016-09-09 18:04:09 -04:00
Matt Clay
2587d2aaf9 Add partially backwards compatible version of _fixup_perms. (#17427)
Also added a deprecation notice for _fixup_perms.

Resolves issue #17352 (assumes custom actions use recursive=False).

(cherry picked from commit 94a0d2afb4)
2016-09-06 16:56:47 -07:00
James Cammarata
e83840c3fd New release v2.1.2.0-0.2.rc2 2016-08-31 12:57:52 -05:00