Commit Graph

21489 Commits

Author SHA1 Message Date
8d57ceecf1 Factoids and push variables via setup are now available to be templated in command args
as well as template files.  PLUS, variables are now expressed in playbooks without having
to know about the setup task, which means playbooks are simpler to read now.
2012-03-05 20:09:03 -05:00
e0b1ad790c Merge pull request #80 from tbielawa/ReallyClean
Fix the py[co] part of the clean target in the make file
2012-03-05 13:24:58 -08:00
2b22f546a2 Fix the py[co] part of the clean target in the make file 2012-03-05 16:21:39 -05:00
8b6953112d Merge pull request #79 from tbielawa/modpath
Read some defaults from the environment
2012-03-05 13:14:15 -08:00
c5f8bc9d79 Don't set ANSIBLE_HOSTS inside the env-setup script 2012-03-05 16:12:05 -05:00
f2c2786a14 Update constants.py to pull module path and the hosts file from the
environment (ANSIBLE_{LIBRARY,HOSTS}) if defined.

Update manpages to represent this.

Also update the env-setup script to set ANSIBLE_{LIBRARY,HOSTS}.
2012-03-05 16:08:36 -05:00
3c20f4000f Merge pull request #74 from tbielawa/ungrouped
Fix parse_hosts to not blow up on ungrouped hosts.
2012-03-05 11:16:55 -08:00
95555ecc14 Merge pull request #76 from tbielawa/hacking
Add environment updating script 'env-setup' to facilitate running ansibl...
2012-03-05 11:15:27 -08:00
cdd6b01d8b Merge pull request #75 from tbielawa/freshenMakeClean
Freshen up Makefile clean target
2012-03-05 11:13:53 -08:00
2d052fcefb Freshen up Makefile clean target 2012-03-05 14:12:11 -05:00
b190ea4b62 Fix parse_hosts to not blow up on ungrouped hosts. 2012-03-05 14:09:01 -05:00
6343aa6214 Add environment updating script 'env-setup' to facilitate running ansible from a git checkout. 2012-03-05 13:47:01 -05:00
a57f7ae010 Merge pull request #73 from skvidal/feature
rpm pkging/spec file
2012-03-05 09:39:36 -08:00
78566946c0 correct license 2012-03-05 12:24:01 -05:00
11bf2a5e03 add python-paramiko dependency 2012-03-05 12:16:08 -05:00
47aa018a84 add MANIFEST.in, ansible.spec, modify setup.py for rpm pkg creation 2012-03-05 12:15:24 -05:00
37541ea800 Merge pull request #70 from tbielawa/playbookmanpage
Correct see-also in playbook manpage
2012-03-05 04:55:09 -08:00
cb5929dad7 Setup module tests 2012-04-04 11:55:24 -04:00
c71afe35d6 Async tests complete. Fixed bug in async_wrapper 2012-04-04 11:30:14 -04:00
fae3a71899 WIP on async tests 2012-04-04 11:24:22 -04:00
f8eab8ed7e Here are those tests I talked about previously :) 2012-04-04 11:11:31 -04:00
369b9cde1c Add test for template module and make 'dark' errors clearer if we get output back and the JSON
is not parseable
2012-04-04 10:57:54 -04:00
c86b388812 Strip trailing newlines from command module, which happens in some shell commands 2012-04-04 10:30:22 -04:00
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)
2012-04-04 10:27:24 -04:00
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.
2012-04-04 09:16:11 -04:00
e9ae5eb9d5 Correct see-also in playbook manpage 2012-03-04 23:08:29 -05:00
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. 2012-03-03 14:26:59 -05:00
c839229f54 Fix code formatting in README.md 2012-03-03 14:20:58 -05:00
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.
2012-03-03 14:13:31 -05:00
defb91ae4d README updates 2012-03-03 14:06:15 -05:00
6a0b793578 Remove debug comments 2012-03-03 13:42:37 -05:00
8e07d83ad1 Async module, mostly operational, daemonizing/watch code may have bugs 2012-03-03 13:19:33 -05:00
718e2930b2 async module now forks 2012-03-03 13:06:43 -05:00
45c40524ef Time limit needs to be passed to async_wrapper. 2012-03-03 12:47:31 -05:00
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)
2012-03-03 12:41:22 -05:00
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.
2012-03-03 12:25:56 -05:00
1ed212513c Add user to playbook example so it's clear that this is available 2012-03-03 11:02:14 -05:00
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.
2012-03-03 10:53:15 -05:00
32c32abb4a Update AUTHORS 2012-03-02 23:12:43 -05:00
1c2d31ef85 add info about the 'all' group to README.md 2012-03-02 23:02:17 -05:00
cbfabcd0fb Add -i, -k, and -M to ansible-playbook CLI to match options in /usr/bin/ansible 2012-03-02 22:54:25 -05:00
e4304a0ac5 Make sure tempdirs are cleaned up after execution steps, fix notifiers, make sure
service module is installed by setup.py
2012-03-02 22:38:55 -05:00
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.
2012-03-02 22:10:51 -05:00
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.
2012-03-02 22:03:03 -05:00
0d7a84d591 Some minor refactoring of playbook code, more to go. 2012-03-02 21:43:46 -05:00
c57df6220b Add pydoc to playbook binary, fix default types for playbook '.get()' call 2012-03-02 21:20:37 -05:00
34cbbfbfe1 Added pydoc for utils.py 2012-03-02 21:16:29 -05:00
bf967adf83 Added pydoc for functions in Cli() 2012-03-02 21:11:43 -05:00
e9a24cdad4 Extensive refactoring of bin/ansible, moving most output functions into lib/ansible/utils to
encourage readability and make things more maintainable.
2012-03-02 21:08:48 -05:00
b33ef0de60 Add a newline in output here, possibly considering printing top level keys flat 2012-03-02 19:52:43 -05:00