James Cammarata
d9c74536be
Fix handling of environment inheritence, and template each inherited env
...
Environments were not being templated individually, so a variable environment
value was causing the exception regarding dicts to be hit. Also, environments
as inherited were coming through with the tasks listed first, followed by the
parents, so they were being merged backwards. Reversing the list of environments
fixed this.
2015-12-17 09:44:40 -05:00
James Cammarata
d7f2f606e1
Add has_hostkey to mock objects to fix broken unit tests
2015-12-16 21:49:33 -05:00
James Cammarata
e5c2c03dea
Enable host_key checking at the strategy level
...
Implements a new method in the ssh connection plugin (fetch_and_store_key)
which is used to prefetch the key using ssh-keyscan.
2015-12-16 21:41:07 -05:00
James Cammarata
15135f3c16
Make sure we're using the original host when processing include results
...
Also fixes a bug where we were passing an incorrect number of parameters to
_do_handler_run() when processing an include file in a handler task/block.
Fixes #13560
2015-12-16 19:13:45 -05:00
James Cammarata
857456ea5f
Fixing template integration test for python 2.6 versions
...
No longer immediately fallback to to_json if simplejson is not installed
2015-12-16 18:22:22 -05:00
Toshio Kuratomi
fd4ad2c8f2
Update submodule ref to fix a bug in mysql_user with mariadb
2015-12-16 14:08:08 -08:00
Toshio Kuratomi
fffd29d1ab
Update mysql setup to handle installing mysql with dnf too.
2015-12-16 14:06:51 -08:00
James Cammarata
8716bf8021
All variables in complex args again
...
Also updates the CHANGELOG to note the slight change, where bare variables
in args are no longer allowed to be bare variables
Fixes #13518
2015-12-16 16:39:08 -05:00
James Cammarata
491fd754f1
Updating the porting guide to note the complex args/bare vars change
...
Related to #13518
2015-12-16 16:36:16 -05:00
James Cammarata
76b4b9ed2c
Merge pull request #13501 from chouseknecht/galaxy-2.0-update
...
Galaxy 2.0 update
2015-12-16 15:01:12 -05:00
nitzmahone
baece499df
fix plugin loading for Windows modules
...
force plugin loader to only consider .py files, since that's the only place docs can live ATM...
2015-12-16 11:47:12 -08:00
Toshio Kuratomi
9724117bbb
Update submodule refs for mysql refactor
2015-12-16 11:15:39 -08:00
James Cammarata
6109f70397
Attempt at fixing strategy unit test failures on py2.6 and py3
2015-12-16 14:02:25 -05:00
Toshio Kuratomi
1116bc6ca6
Merge pull request #13191 from Jmainguy/mysql
...
Add shared connection code for mysql modules
2015-12-16 10:47:49 -08:00
Chrrrles Paul
851c0058b1
Removing yaml support for path:
2015-12-16 12:45:05 -06:00
Jonathan Mainguy
34e88e48a5
Add shared connection code for mysql modules
2015-12-16 13:36:18 -05:00
Toshio Kuratomi
375eb501b3
Update url to site that has an invalid certificate
2015-12-16 09:41:01 -08:00
James Cammarata
6a252a3f77
Preserve the cumulative path for checking includes which have parents
...
Otherwise, each relative include path is checked on its own, rather
than in relation to the (possibly relative) path of its parent, meaning
includes multiple level deep may fail to find the correct (or any) file.
Fixes #13472
2015-12-16 11:23:06 -05:00
Toshio Kuratomi
0095d04af9
Update submodule refs
2015-12-16 08:02:46 -08:00
Toshio Kuratomi
7d519127fe
Merge pull request #13573 from ansible/ssl-context-with-proxy
...
Fix a few problems with url handling.
2015-12-16 08:00:59 -08:00
Brian Coca
a057f748ea
Merge pull request #13572 from Ykid/patch-1
...
Fix typo
2015-12-16 10:49:24 -05:00
Toshio Kuratomi
33863eb653
Conditionally create the CustomHTTPSConnection class only if we have the required baseclasses.
...
Fixes #11918
2015-12-16 07:47:09 -08:00
Toshio Kuratomi
72a0654b81
Fixes for proxy on RHEL5
2015-12-16 07:47:07 -08:00
Toshio Kuratomi
73ead4fbba
First attempt to fix https certificate errors through a proxy with python-2.7.9+
...
Fixes #12549
2015-12-16 07:46:54 -08:00
David
63b624707d
Fix typo
2015-12-16 23:46:06 +08:00
Brian Coca
97275110d7
Merge pull request #13533 from bcoca/debug_fixes
...
debug now validates its params
2015-12-16 10:36:20 -05:00
Matt Clay
9942d71d34
Test for filename option in apt_repository module.
2015-12-16 01:37:02 -08:00
James Cammarata
fcc9258b74
Use the original host rather than the serialized one when processing results
...
Fixes #13526
Fixes #13564
Fixes #13566
2015-12-16 01:48:22 -05:00
Toshio Kuratomi
d203438a2c
Merge pull request #13554 from Yannig/devel_fix_python3_tests
...
Use six lib to import urlparse properly.
2015-12-15 07:55:56 -08:00
Brian Coca
be5488cb60
clean debug output to match prev versions
2015-12-15 09:27:53 -05:00
Brian Coca
a0842781a6
renamed ssh.py shared module file to clarify
2015-12-15 08:45:12 -05:00
Brian Coca
8668e8df69
Merge pull request #13555 from privateip/shared_module_ssh
...
adds support for using ssh keys to ssh shared module
2015-12-15 08:35:26 -05:00
Yannig Perré
be4d1f9ee3
Fix a part of python 3 tests (make tests-py3, see https://github.com/ansible/ansible/issues/13553 for more details).
2015-12-15 13:37:35 +01:00
Peter Sprygada
27cd7668c1
the ssh shared module will try to use keys if the password is not supplied
...
The current ssh shared module forces only password based authentication. This
change will allow the ssh module to use keys if a password is not provided.
2015-12-15 07:16:28 -05:00
Brian Coca
5d1a2eac3e
Merge pull request #13500 from mscherer/fix_markup_doc_modules
...
Fix the markdown used for the Windows module section
2015-12-14 18:43:18 -05:00
Toshio Kuratomi
8d16638fec
Fix for template module not creating a file that was not present when force=false
2015-12-14 10:55:21 -08:00
Toshio Kuratomi
d31d04a1e0
Merge pull request #13545 from mscherer/fix_know_hosts_ipv6
...
Make module_utils.known_hosts.get_fqdn work on ipv6
2015-12-14 10:51:12 -08:00
Michael Scherer
a7ac98262d
Make module_utils.known_hosts.get_fqdn work on ipv6
2015-12-14 19:30:54 +01:00
Brian Coca
938c26d952
Merge pull request #13544 from emonty/inventory-config
...
Add OpenStack Inventory configuration
2015-12-14 13:22:19 -05:00
Toshio Kuratomi
1a168619d3
Merge pull request #13546 from gparent/patch-1
...
Fix typo in galaxy.rst
2015-12-14 09:14:18 -08:00
gp
e595c50197
Fix typo in galaxy.rst
...
Fix typo
2015-12-14 12:06:35 -05:00
Toshio Kuratomi
457f86f61a
Minor: Correct type pyhton => python
2015-12-14 08:50:37 -08:00
Toshio Kuratomi
c9eb41109f
Update submodule refs
2015-12-14 08:03:56 -08:00
Toshio Kuratomi
fc19ad21ef
Merge pull request #13494 from Jmainguy/msyql_hash_tests
...
add tests for encrypted hash mysql_user
2015-12-14 07:58:39 -08:00
James Cammarata
80d23d639c
Use an octal representation that works from 2.4->3+ for known_hosts
2015-12-14 10:43:30 -05:00
James Cammarata
6312e38133
Fixing up some non-py3 things for unit tests
2015-12-14 10:35:58 -05:00
Monty Taylor
9f61144401
Optionally only use UUIDs for openstack hosts on duplicates
...
The OpenStack inventory lists hostnames as the UUIDs because hostsnames
are not guarnateed to be unique on OpenStack. However, for the common
case, this is just confusing.
The new behavior is a visible change, so make it an opt-in via config.
Only turn the hostnames to UUIDs if there are duplicate hostnames.
2015-12-14 10:19:43 -05:00
Jonathan Mainguy
49dc9eea16
add tests for encrypted hash mysql_user
2015-12-14 10:12:06 -05:00
Monty Taylor
1f8e484b70
Fix the refresh flag in openstack inventory
...
Refresh will update the dogpile cache from shade, but doesn't cause
the ansible side json cache to be invalidated. It's a simple oversight.
2015-12-14 09:59:41 -05:00
James Cammarata
35015aaa4a
Merge pull request #13529 from mscherer/add_tests_known_hosts
...
Add tests for ansible.module_utils.known_hosts
2015-12-14 09:50:23 -05:00