Michael DeHaan
95555ecc14
Merge pull request #76 from tbielawa/hacking
...
Add environment updating script 'env-setup' to facilitate running ansibl...
13 years ago
Michael DeHaan
cdd6b01d8b
Merge pull request #75 from tbielawa/freshenMakeClean
...
Freshen up Makefile clean target
13 years ago
Tim Bielawa
2d052fcefb
Freshen up Makefile clean target
13 years ago
Tim Bielawa
6343aa6214
Add environment updating script 'env-setup' to facilitate running ansible from a git checkout.
13 years ago
Michael DeHaan
a57f7ae010
Merge pull request #73 from skvidal/feature
...
rpm pkging/spec file
13 years ago
Seth Vidal
78566946c0
correct license
13 years ago
Seth Vidal
11bf2a5e03
add python-paramiko dependency
13 years ago
Seth Vidal
47aa018a84
add MANIFEST.in, ansible.spec, modify setup.py for rpm pkg creation
13 years ago
Michael DeHaan
37541ea800
Merge pull request #70 from tbielawa/playbookmanpage
...
Correct see-also in playbook manpage
13 years ago
Michael DeHaan
cb5929dad7
Setup module tests
13 years ago
Michael DeHaan
c71afe35d6
Async tests complete. Fixed bug in async_wrapper
13 years ago
Michael DeHaan
fae3a71899
WIP on async tests
13 years ago
Michael DeHaan
f8eab8ed7e
Here are those tests I talked about previously :)
13 years ago
Michael DeHaan
369b9cde1c
Add test for template module and make 'dark' errors clearer if we get output back and the JSON
...
is not parseable
13 years ago
Michael DeHaan
c86b388812
Strip trailing newlines from command module, which happens in some shell commands
13 years ago
Michael DeHaan
8d06c074b1
* Added uptime.py as an example of somewhat minimal API usage & reporting
...
* Pattern in API now has a default
* Fixed bug in template module operation detected from running playbook (tests for that pending)
* Workaround for multiprocessing lib being harmlessly squeaky (feeder thread got sentinel)
13 years ago
Michael DeHaan
05c5c85276
Added tests for the guts of the program (Runner()) and modules. Idea is to run
...
everything as the logged in user using local checkout and write to a tempdir.
To run tests, be sure user is in SSH authorized_keys for themselves, this DOES
run through paramiko because mocking it out would defeat the point of having tests.
13 years ago
Tim Bielawa
e9ae5eb9d5
Correct see-also in playbook manpage
13 years ago
Michael DeHaan
db57933614
Allow ":" to be used to split patterns as well as ";" so if you are just using group names or fully explicit names you do not need to use shell quoting at all. Obviously if you use wildcards like "*" you wouldstill.
13 years ago
Michael DeHaan
c839229f54
Fix code formatting in README.md
13 years ago
Michael DeHaan
269a6d46d6
attempt to explain import syntax in ansible-playbook manpage. Can't include
...
examples inline because github won't display them well, want to move this
file to markdown soon.
13 years ago
Michael DeHaan
defb91ae4d
README updates
13 years ago
Michael DeHaan
6a0b793578
Remove debug comments
13 years ago
Michael DeHaan
8e07d83ad1
Async module, mostly operational, daemonizing/watch code may have bugs
13 years ago
Michael DeHaan
718e2930b2
async module now forks
13 years ago
Michael DeHaan
45c40524ef
Time limit needs to be passed to async_wrapper.
13 years ago
Michael DeHaan
a06d8859fa
Added start of async_status script.
...
Parameters:
jid=X
mode=status|cleanup (default status)
status = returns results from the job
cleanup = deletes the job file, should also kill the job if still running (TODO)
13 years ago
Michael DeHaan
eaa7714ff8
Laying the groundwork for async mode, async status script still needs to be done, and async_wrapper
...
still needs to daemonize. Then, once done, playbook can be taught how to poll async within the
timing window.
13 years ago
Michael DeHaan
1ed212513c
Add user to playbook example so it's clear that this is available
13 years ago
Michael DeHaan
ab408b0000
Ability to import task lists and handler lists from a top level playbook file. It is possible
...
to use multiple import statements to implement 'class' like behavior, and also to share
a common list of handlers between multiple patterns.
13 years ago
Michael DeHaan
32c32abb4a
Update AUTHORS
13 years ago
Michael DeHaan
1c2d31ef85
add info about the 'all' group to README.md
13 years ago
Michael DeHaan
cbfabcd0fb
Add -i, -k, and -M to ansible-playbook CLI to match options in /usr/bin/ansible
13 years ago
Michael DeHaan
e4304a0ac5
Make sure tempdirs are cleaned up after execution steps, fix notifiers, make sure
...
service module is installed by setup.py
13 years ago
Michael DeHaan
6541f338df
add pyflakes target & associated fixes. Also decided to save JSON to --tree file so it can
...
be better used programatically. May have to come up with another system of tree logging for
playbook if playbook decides to have tree logging. Presumably not the highest priority.
13 years ago
Michael DeHaan
3ad9db4966
Some minor from 'pep8', and silencing the PEP8 messages I don't care about.
...
Also make pep8 show all messages rather than just 1 per code.
13 years ago
Michael DeHaan
0d7a84d591
Some minor refactoring of playbook code, more to go.
13 years ago
Michael DeHaan
c57df6220b
Add pydoc to playbook binary, fix default types for playbook '.get()' call
13 years ago
Michael DeHaan
34cbbfbfe1
Added pydoc for utils.py
13 years ago
Michael DeHaan
bf967adf83
Added pydoc for functions in Cli()
13 years ago
Michael DeHaan
e9a24cdad4
Extensive refactoring of bin/ansible, moving most output functions into lib/ansible/utils to
...
encourage readability and make things more maintainable.
13 years ago
Michael DeHaan
b33ef0de60
Add a newline in output here, possibly considering printing top level keys flat
13 years ago
Michael DeHaan
1420c49277
Still seeing some weirdness from ohai but we can probably simplify
...
this until we figure out what that is.
13 years ago
Michael DeHaan
e6a1acf756
Let "all" be an alias for "*" in patterns, fix output bug on non-command execution, make clean now removes the build dir
13 years ago
Michael DeHaan
c8b1bbc7ea
make command module error when no -a more obvious as command is the default module and someone
...
may forget about -a. The CLI already warns about no host pattern by pulling up usage.
13 years ago
Michael DeHaan
146cb3ff7e
update README.md on playbook field names
13 years ago
Michael DeHaan
5040c01640
rename 'pattern' to 'hosts' in playbook format.
13 years ago
Michael DeHaan
687a315a80
Increasing default --forks to 5
13 years ago
Michael DeHaan
847846af0e
-p has been replaced by a required option. Various docs changes.
13 years ago
Michael DeHaan
4ce1f1dd5e
README/doc/example updates to go with group support and CLI option changes.
...
Minimizing manpage until CLI options stabilize.
13 years ago