Commit graph

12456 commits

Author SHA1 Message Date
James Cammarata
7ea84d7499 More v2 roles class work
* added ability to set parents (will be used when the deps are loaded)
* added role caching, so roles are not reloaded needlessly (and for
  use in detecting when roles have already been run)
* reworked the way metadata was stored - now individual attribute fields
  instead of a dictionary blob
2014-10-27 13:27:25 -05:00
James Cammarata
547c0d8140 Merge pull request #9216 from nmadhok/patch-3
Update playbooks_roles.rst
2014-10-27 12:03:21 -05:00
James Cammarata
29e95d86fb Merge pull request #9425 from bobobox/patch-1
Typo fix in playbooks_intro.rst
2014-10-27 09:58:05 -05:00
James Cammarata
77f91eb031 Merge pull request #9422 from tonk/docfix
Ignore compiled Python for documentation.
2014-10-27 09:45:26 -05:00
James Cammarata
1ece7e99e5 Merge pull request #9410 from dannyroberts/patch-1
Update developing_modules.rst
2014-10-27 09:26:02 -05:00
James Cammarata
b896633866 Merge pull request #9402 from mscherer/fix_man_ansible_pull
Fix the synopsis in ansible-pull man page.
2014-10-27 09:20:59 -05:00
bobobox
66f700eb0d Update playbooks_intro.rst
Small punctuation/grammar fix.
2014-10-26 14:44:04 -05:00
Ton Kersten
39bbe36fc7 Ignore compiled Python for documentation.
When running `ansible-doc --list` a lot of errors are
generated when `ansible-doc` tries to find documentation
strings in `.pyc` files.
2014-10-26 15:46:08 +01:00
James Cammarata
44afa7facc Updating Role class for new DataLoader stuff 2014-10-25 23:42:35 -05:00
James Cammarata
7cb489eca3 Adding a data parsing class for v2 2014-10-24 14:06:43 -05:00
Daniel Roberts
2ef2f12472 Update developing_modules.rst 2014-10-23 16:39:09 -04:00
Toshio Kuratomi
c86851be2c Quote ControlPath ssh parameter
Fixes #9316
2014-10-22 18:45:02 -04:00
Toshio Kuratomi
34129a223d update core submodules for systemd service fix 2014-10-22 16:46:50 -04:00
Toshio Kuratomi
56c268ade4 New test that newlines in systemd service scripts don't cause problems 2014-10-22 16:38:01 -04:00
James Cammarata
76a43d4b38 Updating submodule pointer for core modules 2014-10-22 14:40:56 -05:00
Michael Scherer
9c10a11aea Fix the synopsis in ansible-pull man page. 2014-10-22 15:40:41 -04:00
Michael DeHaan
3c88f99d13 Add AnsibleFest London link. 2014-10-22 14:19:17 -04:00
James Cammarata
9ee3cd14ee Fix typo in vault edit helper code
Fixes #9399
2014-10-22 11:08:01 -05:00
James Cammarata
b4f9631e4c Revert "remove complex_args_hack as it was only needed for Baby JSON"
This reverts commit a6029264b8.

Fixes #9400
2014-10-22 11:00:24 -05:00
James Cammarata
be972225a5 Removing unnecessary import from v2 parsing init 2014-10-22 11:00:24 -05:00
James Cammarata
4c47c2273a Use convert_bare instead of string formatting for raw vars in debug action plugin 2014-10-22 11:00:24 -05:00
James Cammarata
707474a43a Merge pull request #9394 from ronalexander/patch-1
Update intro_installation.rst
2014-10-22 00:48:21 -05:00
James Cammarata
987f7750ec Merge pull request #9388 from mwarkentin/patch-2
Add host to polling message
2014-10-22 00:15:27 -05:00
James Cammarata
2ff17ebd93 Adding in VaultEditor tests from old unittests 2014-10-21 16:40:44 -05:00
Toshio Kuratomi
c1b290a311 Fix logic that prevents multiple action, local_action, and modules to be specified. 2014-10-21 17:04:49 -04:00
Toshio Kuratomi
6c94d85690 Tell nose to include branches in its coverage reporting 2014-10-21 16:41:16 -04:00
Toshio Kuratomi
b3452de8a7 Hook up the general parsing unittests and get them passing 2014-10-21 16:06:40 -04:00
James Cammarata
0a8c91a812 Fixing up tests, removing some of the yaml error stuff from parsing
* moved old unittests for vault over to the new codebase
* reverted YAML error helpers and reverted the load() function
  in parsing/__init__.py, pending a rewrite of a new YAML loader
  class of some kind to encapsulate all of that
* fixed an error in in the module args parser regarding the shell/
  command argument parsing, where some additional arguments were
  being lost
2014-10-21 13:28:01 -05:00
James Cammarata
0ed97e4d11 Updating v2 Role class code 2014-10-21 10:12:45 -05:00
Toshio Kuratomi
4c86bd3ca6 Merge the vault tempfile fix to the v2 tree 2014-10-21 10:33:33 -04:00
Toshio Kuratomi
3d135f98d1 Small python3 compat in vault to keep code in sync with v2 2014-10-21 10:32:25 -04:00
ronalexander
e265fb85b4 Update intro_installation.rst
Corrected casing of Jinja2 in pip dependencies.
2014-10-21 09:21:31 -05:00
Toshio Kuratomi
43b3eecf52 Debian/Ubuntu doesn't have group nobody so remove the group portion of the new template tests as owner and mode will exercise the problematic code path 2014-10-21 01:31:55 -04:00
Toshio Kuratomi
e78c5f925b Python3 fixes 2014-10-21 01:24:09 -04:00
Toshio Kuratomi
a954220957 Migrate the v2/tests to use the ansible.compat module 2014-10-21 01:14:30 -04:00
Toshio Kuratomi
3f27e5e080 Compat tree for code dealing with compatibility between python versions 2014-10-21 01:09:11 -04:00
Toshio Kuratomi
da9d87b1d4 Make vault file creation use a tempfile 2014-10-21 00:32:08 -04:00
Toshio Kuratomi
694e0420ab Update the modules to pull in the files module needed for the updated
integration tests
2014-10-21 00:22:24 -04:00
Toshio Kuratomi
feb9ed1de8 Fix template module incorrectly handling mode when dest is a directory
Fixes #9350
2014-10-21 00:22:24 -04:00
Toshio Kuratomi
1e12d3028c Merge pull request #9384 from insaneirish/devel
Change "usuable" to "usable".
2014-10-20 22:08:52 -04:00
Toshio Kuratomi
d23df78666 Merge pull request #9389 from mwarkentin/patch-3
Fix typo
2014-10-20 22:03:30 -04:00
Michael Warkentin
d69aa19206 Fix typo
`Propspective` -> `Prospective`
2014-10-20 20:08:31 -04:00
Michael Warkentin
18a9282e0d Add host to polling message
The message for when an async task has finished has the hostname in it. This adds it to the polling message as well:

```
<job 390794962174.18311> finished on 107.6.24.140
<job 390794962174.31779> finished on 69.90.50.171
<job 390794962174.12328> polling on 69.90.50.172, 6840s remaining
```
2014-10-20 20:03:43 -04:00
James Cammarata
e8f675003f Merge pull request #9336 from dpkirchner/devel
Added _meta hostvars key to gce.py plugin
2014-10-20 14:39:05 -05:00
James Cammarata
b61a78532c Catch template syntax errors specifically when templating strings
Fixes #9333
2014-10-20 13:11:20 -05:00
James Cammarata
b0069a338e Overhauls to v2 code
* using inspect module instead of iteritems(self.__class__.__dict__, due
  to the fact that the later does not include attributes from parent
  classes
* added tags/when attributes to Base() class for use by all subclasses
* removed value/callable code from Attribute, as they are not used
* started moving some limited code from utils to new places in v2 tree
  (vault, yaml-parsing related defs)
* re-added ability of Block.load() to create implicit blocks from tasks
* started overhaul of Role class and role-related code
2014-10-20 13:11:20 -05:00
James Cammarata
28fd4df787 Merge pull request #9382 from gquintard/WIP/newdockerdetection
Detect docker as virtualization_type
2014-10-20 11:20:34 -05:00
James Cammarata
efb40969b3 Merge pull request #9381 from debfx/facts_virt_kvm
Detect kvm guests through sys_vendor.
2014-10-20 10:53:39 -05:00
Toshio Kuratomi
5fe5e2d3f4 Docstring for v2 inventory.subset 2014-10-20 11:43:27 -04:00
insaneirish
3d257bc695 Change "usuable" to "usable". 2014-10-20 10:12:51 -04:00