Commit graph

12824 commits

Author SHA1 Message Date
James Cammarata
fe5a7bcabf Fixing bad variable naming choices 2014-10-10 12:45:33 -05:00
James Cammarata
2eda9a3a47 Fixing item loop when undefined variable errors occur because of missing attributes
Fixes a case where the variable 'foo' may exist, but the with_items loop
was used on something like 'foo.results', where 'results' was not a valid
attribute of 'foo'. Prior to this patch, conditionals were not evaluated
until later, meaning there was no opportunity to allow a test to skip the
task or item based on it being undefined.
2014-10-10 12:26:04 -05:00
Toshio Kuratomi
b4f84c5d9a Update the core and extras submodules 2014-10-10 12:11:08 -04:00
Toshio Kuratomi
2b9e235ffd Rework distribution fact checking to be a little less heinous and add
support for Mandriva.

Fixes #9282
2014-10-10 10:28:07 -04:00
James Cammarata
d19fe8d95d Fetch vars for host directly when calculating the delegated user
This fixes the case in which the delegated to host may not be in the
specified hosts list, in which cases facts/vars for the host were
not available in the injected hostvars.

This also fixes the inventory variable fetching function, so that an
unknown host raises a proper error as opposed to a NoneType exception.

Fixes #8224
2014-10-10 01:18:18 -05:00
Will Thames
545f816639 Use https for git submodules
It's much more likely that people can use the https protocol
than the git protocol (many firewalls block the latter)
2014-10-10 10:13:46 +10:00
James Cammarata
2a0d18b092 Insert newlines correctly when splitting literal blocks
Fixes #9274
2014-10-09 16:45:08 -05:00
James Cammarata
a50332fc8a Adding v2 error line support, and tests 2014-10-09 12:52:39 -05:00
James Cammarata
383a44a462 Updating submodule pointer for core 2014-10-09 12:52:38 -05:00
Pete Smith
0953322b23 Remove no-op string declaration 2014-10-09 17:04:45 +01:00
Michael DeHaan
fac414ea48 Merge pull request #9297 from lorin/patch-4
Typo: mo[u]dules
2014-10-09 08:33:26 -04:00
Toshio Kuratomi
e91e30cd5e Fix unspecified role versions.
Fixes #9236
2014-10-09 03:11:46 -04:00
Toshio Kuratomi
48a308a87c Allow both old-style and new-style role dependencies to be valid.
Fixes #9173
2014-10-09 02:48:47 -04:00
Lorin Hochstein
17d0022384 Typo: mo[u]dules
Fix typo: moudules -> modules
2014-10-08 20:55:49 -04:00
Michael DeHaan
98ed69213b Error -> ParserError 2014-10-08 19:53:09 -04:00
Michael DeHaan
79f41d9c1a This makes the module args parser more functional to eliminate side effects and eliminiates the 'return None' error path
to make sure we are handling more use cases.  Some paths are not yet complete, including most likely handling of the 'raw'
module.
2014-10-08 19:46:34 -04:00
Michael DeHaan
56b6cb5328 Teaching objects to load themselves, making the JSON/YAML parsing ambidexterous. 2014-10-08 16:00:08 -04:00
Toshio Kuratomi
c75aeca435 Merge removal of complex_args_hack 2014-10-08 15:03:43 -04:00
Toshio Kuratomi
a10d10f647 Workaround more python-2.6 shlex not being able to handle unicode strings 2014-10-08 14:30:36 -04:00
James Cammarata
625e2c834e Merge pull request #9288 from leucos/devel
Fixes Arch PKGBUILD
2014-10-08 13:11:46 -05:00
James Cammarata
ad893ea867 Merge pull request #9286 from damncabbage/9008-undef-var-in-list
Makes listify_lookup_plugin_terms respect the global setting for undefined variables.
2014-10-08 13:01:47 -05:00
Toshio Kuratomi
a6029264b8 remove complex_args_hack as it was only needed for Baby JSON 2014-10-08 13:26:25 -04:00
Brian Coca
b592d7653d unchained list coercion as it removed the randomization 2014-10-08 11:54:22 -04:00
James Cammarata
c83a833740 New v2 ModuleArgsParser code and fixing up tests/other task code 2014-10-08 10:35:58 -05:00
Brian Coca
12016b95a8 documented type based behaviour 2014-10-08 10:58:48 -04:00
Brian Coca
7a94d566e5 tried to ensure input is always a list but will now be a noop for non
listable items
2014-10-08 10:54:14 -04:00
Michel Blanc
ce58706dd0 Fixes Arch PKGBUILD
Build was failing with new Ansible submodule setup for core and extras
modules.
Integrated fix from @firecat53
Added @firecat53 to contributors.
2014-10-08 10:41:29 +02:00
Rob Howard
2769098fe7 Make listify respect the global setting for undefined variables.
(Fixes #9008.)

With credit to jimi-c for the initial pass in this commit:
b18bd6b98e
2014-10-08 13:47:11 +11:00
James Cammarata
bbd9921dbd Adding a negative test for new safe_load 2014-10-07 19:59:54 -05:00
Michael DeHaan
4cb7f654b6 Add stub tests for module args parsing. 2014-10-07 17:00:01 -04:00
James Cammarata
93e273333d Adding tests for new yaml parsing stuff and adjusting imports 2014-10-07 15:52:58 -05:00
James Cammarata
8ab0749217 Adding new yaml parsing classes 2014-10-07 15:04:42 -05:00
Michael DeHaan
ad9ab8e033 Stub class for mod arg parsing tests. 2014-10-07 14:59:55 -04:00
Michael DeHaan
21642c0fbf We need module args specific parsing classes. 2014-10-07 14:56:42 -04:00
James Cammarata
83d75bcf59 Merge pull request #9276 from CaptTofu/bug/module_doc_fix
Small fix for issue #9275
2014-10-07 11:32:51 -05:00
James Cammarata
c646225ed1 Merge pull request #9267 from lorin/link-typo
Documentation typo: ansible-module[s]-extras
2014-10-07 11:17:48 -05:00
Michael DeHaan
05231dcde6 Move over some of the parsing functions that we need. 2014-10-07 11:52:45 -04:00
Michael DeHaan
e8aa847e5b Attempt to clean up the munging functions a little. 2014-10-06 17:40:36 -04:00
Michael DeHaan
d97b38ba83 Attribute defaults and optional accessors. 2014-10-06 17:06:13 -04:00
Michael DeHaan
e66a0096a7 Work in progress on task loading. 2014-10-06 16:29:18 -04:00
Michael DeHaan
1556b0384f Add submodule references since v2 development will need them, the tree obviously does
not need two copies.
2014-10-06 16:29:18 -04:00
Michael DeHaan
f066e361f1 WIP on data structure processing patterns. 2014-10-06 16:29:18 -04:00
James Cammarata
f3714c88a6 Revert "atfork import warning should be suppressed when system_warnings = False"
This reverts commit a175168686.
2014-10-06 15:05:52 -05:00
James Cammarata
12d5b75a43 Template play vars after reading them
Fixes #9242
2014-10-06 10:50:55 -05:00
Brian Coca
3534bdf953 added new 'shuffle' filter 2014-10-05 20:53:06 -04:00
CaptTofu
83457e147c Small fix for issue #9275 2014-10-05 03:35:22 -07:00
James Cammarata
05644686de Fix bug in plugin path caching
Fixes #9263
2014-10-04 21:47:38 -05:00
Lorin Hochstein
e26ed64ad8 Documentation typo: ansible-module[s]-extras
Typo: ansible-module-extras -> ansible-modules-extras in a link to this
repository.
2014-10-04 17:27:20 -04:00
Michael DeHaan
8cecb0690f Update base.py
updated with some notes
2014-10-04 09:48:25 -04:00
Stephen Jahl
1d05be82f0 Documents the --step and --start-at options to ansible-playbook. Fixes #9041. 2014-10-03 19:45:35 -04:00