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
James Cammarata
8b8a4dd572
Merge pull request #9353 from ivuk/fix-typo
...
Typo: greatful -> grateful
2014-10-20 09:11:56 -05:00
James Cammarata
c08c907ee0
Merge pull request #9346 from MiLk/test/shell-multiline
...
Add integration test for the shell module
2014-10-20 09:09:59 -05:00
James Cammarata
13da039563
Merge pull request #9338 from szkkentaro/gce_inventory/add_pretty_option
...
Add --pretty option for gce inventory plugin
2014-10-20 09:05:02 -05:00
Guillaume Quintard
895da79d87
Detect docker as virtualization_type
...
New docker versions use "docker" in /proc/1/cgroup, which disturbs the
virtualization_type detection. So, grep for docker, in addition of
"lxc".
2014-10-20 10:09:46 +02:00
Felix Geyer
ee5f5ee00d
Detect kvm guests through sys_vendor.
...
The two detection methods currently implemented do not cover all cases.
For example qemu guests invoked like this:
qemu -machine pc-i440fx-1.4,accel=kvm -cpu SandyBridge
return this information:
product_name: Standard PC (i440FX + PIIX, 1996)
cpuinfo: model name : Intel Xeon E312xx (Sandy Bridge)
2014-10-19 23:02:22 +02:00
Michael DeHaan
a60fd58145
Update block.py
...
Add note on block properties
2014-10-19 10:48:32 -04:00
Andres Silva
4755bde28d
adding for loop on list to to handle the return of none when the list is empty. With the previous method if the list was empty the script died. See http://stackoverflow.com/questions/18852324/typeerror-sequence-item-0-expected-string-nonetype-found
2014-10-17 12:16:35 -04:00
James Cammarata
57d2622c8c
Adding block code and tests
2014-10-16 16:03:29 -05:00
James Cammarata
21577ff2cc
Moved v2 tests for plugins to new location
2014-10-16 08:55:44 -07:00
James Cammarata
1d04e4b3d2
Updating unittests for v2 stuff
2014-10-15 18:02:45 -07:00
Toshio Kuratomi
eafa718be1
Remove inherit from object as it's no longer needed to determine new-style classes
2014-10-15 19:37:29 -04:00
Toshio Kuratomi
acf4bc95a3
Give all v2 tests the python3 compat boilerplate
2014-10-15 19:25:48 -04:00
Toshio Kuratomi
18f30b00ba
Add python3-compat boiler to all core files
2014-10-15 19:22:54 -04:00
Toshio Kuratomi
ff8042c5c3
Add python3 compat boilerplate to executor
2014-10-15 19:18:12 -04:00
Toshio Kuratomi
c9abd0fd58
Stub out Inventory class - we're going to draw heavily on the existing
...
inventory for implementation
2014-10-15 18:56:23 -04:00
Michael DeHaan
6ca67c61cb
Starting to stub out some classes.
2014-10-15 15:54:12 -07:00
Toshio Kuratomi
a707f5acfe
Fix relative imports
2014-10-15 18:40:03 -04:00
Toshio Kuratomi
6ecca227b8
Fix missing import
2014-10-15 18:37:17 -04:00
Toshio Kuratomi
057c1df303
Remove temp file
2014-10-15 18:36:30 -04:00
Toshio Kuratomi
cf5ce97275
Somehow, git mv only rm'd test/v2 and didn't add v2/test
2014-10-15 18:35:16 -04:00
Toshio Kuratomi
b62e7ae8f5
Remove extraneous __init__ to fix v2 unittests
2014-10-15 18:26:05 -04:00
Toshio Kuratomi
46b54443f1
Add a README for the v2 unittests
2014-10-15 18:25:54 -04:00
Toshio Kuratomi
938b2108d0
Move the v2 tests under the v2 tree
2014-10-15 18:08:28 -04:00
Michael DeHaan
187da236b4
Add new class stubs
2014-10-15 12:16:41 -07:00
Igor Vuk
e19f3f8a5c
Typo: greatful -> grateful
2014-10-15 21:08:38 +02:00
Emilien Kenler
39ce134c2c
Add integration test for the shell module
...
* it ensures that it's possible to define options in the multiline block
2014-10-15 11:12:35 +09:00
szk.kentaro
36c75d6c5e
Add --pretty option for gce inventory plugin
2014-10-15 01:16:49 +09:00