Commit Graph

11499 Commits (f6fb402d1feab0c66e9eb107bdb37b8ae9c3ce4c)

Author SHA1 Message Date
Michael DeHaan 30d06dbcea Don't force down ansible facts back to setup, the setup module won't like parsing them on input and that
data is already there.
12 years ago
Michael DeHaan da0209dbc4 The fetch module really should preserve the whole directory structure being fetched to allow subsequent calls,
particularly in playbook, to recreate the host tree structure.  Making it thus.
12 years ago
Jeroen Hoekx 6f09b41eb5 Don't test modules that aren't present.
Also account for path difference in sleep in different distributions.
12 years ago
Michael DeHaan 3f26a1c7f6 verbose option is not being used, so remove it. debug variable still exists. 12 years ago
Michael DeHaan 9ce27be878 Remove extra_vars tests 12 years ago
Jeroen Hoekx 8c3206c99f Return a copy of the host variables. 12 years ago
Jeroen Hoekx 961ccdb2f4 List hosts in no group in the ungrouped group. 12 years ago
Jeroen Hoekx 3a24aa9a70 Add YAML inventory format.
See test/yaml_hosts for an example.

Hosts can be part of multiple groups.

Groups can also have variables, inherited by the hosts.
There is no variable scope, last variable seen wins.
12 years ago
Jeroen Hoekx 54f4526160 Export SSH port number as host variable. 12 years ago
Jeroen Hoekx f04041b37d Ignore port numbers in simple inventory format 12 years ago
Jeroen Hoekx 746f1b92ae Reimplement the class method on Runner. 12 years ago
Jeroen Hoekx 195e6d617b Add tests for Inventory class. 12 years ago
Michael DeHaan 08c593bee1 Warn if no hosts matched 12 years ago
Michael DeHaan b9e3b053f9 Simplify playbook tests so things are not timing dependent in the poll section, which is leading to tests
not being consistent between runs, even though there wasn't an error.  Now we'll just check the final change
counts, which should be just as solid and lead to less churn in the events file.
12 years ago
Michael DeHaan e103bdda93 Rename test class to match what it is testing 12 years ago
Michael DeHaan 245aa9bf8e Some tweaks to the fetch module. 'err' return was for stderr, so that should be empty string.
Some minor code shortening.  Added a test to TestRunner.
12 years ago
Michael DeHaan 51e4faf7aa Update test file -- we probably should not include the poll as the number of polls is changing between test
runs (that's ok, it's not intended to be realtime accurate)
12 years ago
Michael DeHaan 1d75a29ec9 Allow variables coming in from the playbook and the API to be expressed as dictionaries throughout their full life cycle
such that nested data can be made available in templates and playbooks.
12 years ago
Michael DeHaan eed4a2b717 Update tests to use 127.0.0.2 to bypass the smart "use local connection" code, and also to reflect
that commands now trigger change events.
12 years ago
Michael DeHaan 2a2b5ed73c Polling timing change results in need to change events file for tests. 12 years ago
Michael DeHaan 4792021f47 Fix syntax error in user patch 12 years ago
Michael DeHaan 2511992659 Surface module debug (-D) to /usr/bin/ansible also 12 years ago
Michael DeHaan 96a22b582b Disable ohai test as it's hanging for whatever reason, but doesn't do this in real life.
Run tests in verbose mode.
12 years ago
Michael DeHaan 3ded27fe35 Treat module args as strings everywhere to avoid unneccessary shlex and requoting 12 years ago
Michael DeHaan 6db87a5018 Minor style fix, update test to match quote fix patch 12 years ago
Michael DeHaan 6dda6f12dc Applying callback model to runner, and using that in playbooks, so output can be more immediate in playbooks.
(Runner still does not use callbacks for default output)
12 years ago
Michael DeHaan 44d4dede92 Split conditional imports in playbook into subfunction, fix small bug in event reporting on playbook
actions.
12 years ago
Michael DeHaan 6ab615c724 Code cleanup for playbooks, also added 'on_skipped' callback 12 years ago
Michael DeHaan 3814a46bbf Move playbook for user commands into examples dir 12 years ago
Michael DeHaan 6aa10691c1 Merge pull request #93 from sfromm/user-module
User module
12 years ago
Stephen Fromm 999bead9ed Add playbook to test user module 12 years ago
Michael DeHaan e6406fa5a7 Allow variable expressions to be stored as variables themselves, do some things to allow setup strings
to more easily contain spaces without being mangled, which is neccessary because of the above.
12 years ago
Michael DeHaan a5f4ca50b8 Ratchet up logging a few notches prior to controlling w/ verbosity settings 12 years ago
Michael DeHaan b5c62ec068 Enhance logging, way to gate verbosity levels pending. 12 years ago
Michael DeHaan dfbe591cc0 Add "only_if" capability, which allows task steps to be skipped if they do not match a conditional. 12 years ago
Michael DeHaan 4de7bbb169 Allow conditional imports, see examples/playbook3.yml comments for a full explanation. Extensive
refactoring of playbooks now warranted, which we'll do before we move on.   This variable assignment
system makes nearly all possible magic possible, for we can use these variables however we like,
even as module names!
12 years ago
Michael DeHaan 5ed2b894d9 Add an additional way to dereference a variable in a playbook, $foo
(Using varReplace function originally from yum, thanks Seth)
12 years ago
Michael DeHaan c1fe0dd719 Quote long variables in playbooks when feeding them to the setup command 12 years ago
Michael DeHaan 5371a9e497 Regression tests for playbooks, logging the events they call via callbacks. 12 years ago
Michael DeHaan b15c8e9cb1 Playbook test upgrades, made some notes about callbacks we need to add. Still need to compare events
recieved vs expected so we can be notified if this test breaks, and also to add some more detailed
playbooks that use includes & async, etc.
12 years ago
Michael DeHaan 45abe3c16b Add unit tests for playbooks, and fix an error caught by one 12 years ago
Michael DeHaan 4bde4926c3 Modules don't have to return JSON, key=value pairs is ok. 12 years ago
Michael DeHaan 40fd778e2c 'shell' is a magic module that executes the command module with shell=True 12 years ago
Michael DeHaan 73d20b81c6 Add basic test of yum module (VERY basic) just to make sure syntax remains ok. Need to do something
trivial for service and git module also.
12 years ago
Michael DeHaan 696b67f935 Fix async to use the new argfiles method (wrapping brain around rock, really must write module development guide) 12 years ago
Michael DeHaan cb5929dad7 Setup module tests 12 years ago
Michael DeHaan c71afe35d6 Async tests complete. Fixed bug in async_wrapper 12 years ago
Michael DeHaan fae3a71899 WIP on async tests 12 years ago
Michael DeHaan f8eab8ed7e Here are those tests I talked about previously :) 12 years ago