Commit Graph
100 Commits
Author SHA1 Message Date
Michael DeHaan 155c3ca89e update playbook docs with updated syntax / minor edits 2012-02-27 22:48:45 -05:00
Michael DeHaan 302cc37c79 Merge branch 'master' of github.com:mpdehaan/ansible 2012-02-27 22:43:21 -05:00
Michael DeHaan 2860c14bc2 module doc updates 2012-02-27 22:43:08 -05:00
Michael DeHaan 4a3a5fb685 Merge branch 'master' of github.com:mpdehaan/ansible 2012-02-27 22:28:30 -05:00
Michael DeHaan 1caafb7bd9 Stop evaluating a host in a playbook when it encounters the first failure. 2012-02-27 22:28:01 -05:00
Michael DeHaan 74cf509ea4 More markdown. Might be done for now. Maybe. Grr, hate you markdown. 2012-02-27 21:31:18 -05:00
Michael DeHaan 1ef19af4eb More markdown formatting 2012-02-27 21:27:18 -05:00
Michael DeHaan f32f5d5ac5 Fix markdown bullets 2012-02-27 21:26:23 -05:00
Michael DeHaan 757574ee03 Make templating example make more sense 2012-02-27 21:13:44 -05:00
Michael DeHaan ada866be46 Further README tweaks 2012-02-26 23:03:06 -05:00
Michael DeHaan ff53237893 Some readme cleanup 2012-02-26 22:51:23 -05:00
Michael DeHaan ba4e36a9a9 Rename 'ensure' to 'state' because I think it's a bit cleaner and doesn't imply
all modules take a common parameter name.  But more or less we still work idempotently
in modules.
2012-02-26 22:31:42 -05:00
Michael DeHaan 228d1a0834 A really basic git module. Improvements welcome. 2012-02-26 22:17:31 -05:00
Michael DeHaan 1e860ba188 Merge pull request #39 from skvidal/master
make tmp path be a dir rather than a temp file
2012-02-27 16:24:21 -08:00
Michael DeHaan 8fc69d3055 Merge pull request #38 from skvidal/master
two fixes here
2012-02-27 05:13:09 -08:00
Michael DeHaan 5781e6e02f Merge pull request #32 from tbielawa/DocsFixin
Docs fixin
2012-02-26 18:44:14 -08:00
Michael DeHaan f7cff27f3d Drastically simply playbook syntax 2012-02-26 20:54:51 -05:00
Michael DeHaan 136d8fa33a add manpage crossreferences 2012-02-26 20:48:10 -05:00
Michael DeHaan 2262705ea3 Added stub for ansible-playbook (format) docs. Docs on ansible-playbook script TBD once
written.
2012-02-26 20:47:22 -05:00
Michael DeHaan fc4ba46d1a Add a ton of comments so folks can understand what runner does. More refactoring is
certaintly possible too.
2012-02-26 20:29:27 -05:00
Michael DeHaan c0ac0e9b62 Added comments to explain the playbook code. 2012-02-26 20:18:42 -05:00
Michael DeHaan 17a6ddb7ee Lining up with the reversion of 70ec508ee0, also
check the ansible-module file back in.  This is basically to make things easier
to build from setup.py.
2012-02-26 20:01:31 -05:00
Michael DeHaan 4e5da11217 Revert "don't check in manpage output file"
This reverts commit 70ec508ee0.
2012-02-26 20:00:46 -05:00
Michael DeHaan 78a254fc52 In playbooks, each pattern stanza can reference it's own user to run as, so you can
run things as multiple sets of users (if you want) in the same playbook.
2012-02-26 19:58:56 -05:00
Michael DeHaan 61d064d011 Fixed up KV munging in runner, misc fixes to copy, setup, and template modules 2012-02-26 19:55:26 -05:00
Michael DeHaan 226da501d3 Take notes about other modules that are in plan. 2012-02-26 19:29:56 -05:00
Michael DeHaan e5f62f20b1 make copy & template module take key/value parameters so we're consistent. Only the command
module works differently now

starter manpage for modules

allow template file location to be passed into template & setup modules
2012-02-26 19:21:44 -05:00
Michael DeHaan 77a7ddeebc Add start of documentation for modules 2012-02-26 18:52:42 -05:00
Michael DeHaan deb71da91e trim md5sum string so it does not contain the filename
also fix a bug/typo in the reporting from playbook
2012-02-26 12:10:57 -05:00
Michael DeHaan bfd93081ae Have to return the return code on failure, it's a rule! 2012-02-25 21:00:51 -05:00
Michael DeHaan d308254eae A basic service module with 'ensure' idempotence semantics. Playbook updated to use service
module vs command module for restarting.  May be some bugs and requires the service to implement 'status' -- and probably some better error handling (i.e. return JSON with "failed" element if failed).

Improvements welcome.
2012-02-25 20:27:11 -05:00
Michael DeHaan 3c3111c1f3 Add optional hosts parameter to examples to show how we can
override the host file in a playbook to load different groups
of hosts.
2012-02-25 19:56:06 -05:00
Michael DeHaan cb90df2377 Allow multiple patterns to specified, just like Func did. 2012-02-25 17:22:48 -05:00
Michael DeHaan 70ec508ee0 don't check in manpage output file 2012-02-25 17:19:12 -05:00
Michael DeHaan af74f53230 Merge branch 'master' of github.com:mpdehaan/ansible 2012-02-25 17:16:47 -05:00
Michael DeHaan 6b433239e6 Update README.md 2012-02-25 17:31:23 -05:00
Michael DeHaan b44ae0af90 applying indentation patch from skvidal 2012-02-25 17:16:23 -05:00
Michael DeHaan a5039eec62 Update reporting on playbook runs. 2012-02-25 15:21:11 -05:00
Michael DeHaan ed97125025 Merge branch 'master' of github.com:mpdehaan/ansible
Conflicts:
	TODO.md
2012-02-25 14:43:22 -05:00
Michael DeHaan 79fdc1b6f4 Notifable handlers only run when something is changed. Awesome. 2012-02-25 14:42:41 -05:00
Michael DeHaan 90eba11f27 Update TODO.md 2012-02-25 14:01:05 -05:00
Michael DeHaan de80166b6d Misc refactoring, updated TODO to reflect new templating features being completed 2012-02-05 13:25:10 -05:00
Michael DeHaan ba9468266f Can it get an easier? Yes it can! Further simply playbook format. 2012-02-05 13:05:09 -05:00
Michael DeHaan 6d0fd2bfde Compress the playbook format for readability 2012-02-05 12:52:07 -05:00
Michael DeHaan b053df4182 Some refactoring of runner.py -- more to come to eliminate repeated code 2012-02-05 12:48:52 -05:00
Michael DeHaan 6cceaa5f6a Implment copy with an actual minion-side module such that we can get md5sum's and
onchange events like Puppet's file providers do.
2012-02-24 05:15:28 -05:00
Michael DeHaan 440bac4a95 Added remote templating engine using jinja2, see examples/playbook.yml for usage.
Cleanup is due in runner.py
2012-02-24 04:35:51 -05:00
Michael DeHaan 5d6b0280d5 Added stub for template execution, WIP. 2012-02-24 03:45:36 -05:00
Michael DeHaan 102385e4ad Added a setup module which can be used to place key-value JSON data
on the system for use in a later template module.   These values
could also be used for module-specific config.
2012-02-24 03:25:09 -05:00
Michael DeHaan 2c5d5a328b Merge pull request #9 from skvidal/master
use logger to track all events run via ansible on the remote host.
2012-02-25 06:58:32 -08:00
Michael DeHaan e61d64307c Grr, markdown. 2012-02-25 09:41:30 -05:00
Michael DeHaan 635cd6f01e Nope, can't use a form in the README file. 2012-02-25 09:40:42 -05:00
Michael DeHaan 9b3d2b97a7 Merge branch 'master' of github.com:mpdehaan/ansible 2012-02-25 09:39:18 -05:00
Michael DeHaan fe02b21a95 Attempt adding google groups signup form to README 2012-02-25 09:39:03 -05:00
Michael DeHaan 0de9f0b28e Added idea about how to do async + timeout in modules 2012-02-24 03:04:46 -05:00
Michael DeHaan 6bfc275204 update TODO with ideas for playbook and latest plans 2012-02-24 02:49:05 -05:00
Michael DeHaan e25bb2f888 Upgrade output for playbook runs 2012-02-24 02:36:38 -05:00
Michael DeHaan ee2fa721f1 Kinda have to pass the host list parameter 2012-02-24 02:14:22 -05:00
Michael DeHaan 9e931f323c Update ohai module to run on older python clients. 2012-02-24 02:05:49 -05:00
Michael DeHaan f17c4ca4b2 Added an 'ohai' module. Some weird JSON hackage to get it to work. 2012-02-24 02:04:50 -05:00
Michael DeHaan c8fe53c4b9 Update README.md to reflect that this is a tool, not just an API. Though
the API is important.
2012-02-24 01:13:21 -05:00
Michael DeHaan b0d2739baa Merge pull request #6 from tbielawa/manpage
Because everything should have a man page
2012-02-24 17:30:11 -08:00
Michael DeHaan 43f7dee247 Added rough sketch of what I want for playbook support. Debug heavy at the moment
as I figure out how logging/output might look.  A couple of major TODO features
also listed in the file.
2012-02-24 01:02:24 -05:00
Michael DeHaan 2fc109b47a Credit Tim for last patch. 2012-02-23 23:58:40 -05:00
Michael DeHaan 767517ac65 Force forks to be an integer when read by command line 2012-02-23 23:57:26 -05:00
Michael DeHaan 7730341d24 We don't have modules that list when things change just yet. I plan to handle
this by having a changed=True/False in the JSON for these modules.  Added a note
so folks won't think we can only execute shell :)
2012-02-23 23:54:16 -05:00
Michael DeHaan 0095336a4e Update API docs for runner 2012-02-23 23:29:34 -05:00
Michael DeHaan d079c8e5f3 Move runner out of __init__.py so it's clear what classes live where. 2012-02-23 23:28:58 -05:00
Michael DeHaan 6eda2cf383 Added initial stub for where playbooks will go, moved to common
constants file so as to not repeat constants between CLI and lib.
2012-02-23 23:26:16 -05:00
Michael DeHaan be9fdc8ef1 Add Seth to authors file. 2012-02-23 23:03:57 -05:00
Michael DeHaan b2e8084c50 Merge pull request #4 from skvidal/master
adds an option to ask for and store the ssh password from the cli
2012-02-24 15:27:19 -08:00
Michael DeHaan a021020967 Merge pull request #3 from katzj/no-shell
Don't use a shell and thus avoid a whole class of problems
2012-02-24 15:26:33 -08:00
Michael DeHaan 0ac8e565c2 Merge pull request #2 from katzj/non-root-mktemp
Use a mktemp'd path for uploading modules
2012-02-24 15:26:18 -08:00
Michael DeHaan bd37864242 Comments and fixup on the dark/contacted code 2012-02-23 23:00:37 -05:00
Michael DeHaan 11f7930038 trim unused modules 2012-02-23 22:54:01 -05:00
Michael DeHaan 4a891b4108 Merge branch 'master' of github.com:mpdehaan/ansible 2012-02-23 22:50:45 -05:00
Michael DeHaan 659c0efd72 Add authors file to list contributors 2012-02-23 22:50:25 -05:00
Michael DeHaan 6bebedd7eb Merge pull request #1 from katzj/centos5-simplejson
Fall back to standalone simplejson module
2012-02-23 19:47:51 -08:00
Michael DeHaan 7be8d134c9 Rename 'successful' to 'contacted' ... 2012-02-23 22:47:03 -05:00
Michael DeHaan 530e54b3e4 Fix multiprocessing pool usage and remove stackoverflow hack 2012-02-23 22:38:51 -05:00
Michael DeHaan 4608a93de5 Added docs on split success/failure structures 2012-02-23 22:24:56 -05:00
Michael DeHaan 7ce5db97ed Add explicit calls to close connections 2012-02-23 22:10:34 -05:00
Michael DeHaan e0e98d10ce use readlines on stdout so we'll block on long running commands 2012-02-23 22:09:23 -05:00
Michael DeHaan 7eb2dd2dee Add remote setting to file, update TODO 2012-02-23 22:04:09 -05:00
Michael DeHaan 03647d64e9 Update docs, added TODO.md 2012-02-23 21:47:31 -05:00
Michael DeHaan 3da6370a65 use defaults better, improve/fix setup.py 2012-02-23 21:37:39 -05:00
Michael DeHaan 2c873a4467 Adding setup.py 2012-02-23 21:07:03 -05:00
Michael DeHaan 9681e1fa04 Add MIT license headers 2012-02-23 19:42:05 -05:00
Michael DeHaan cb7fb52736 Added copy to list of modules, though it's not really a true module. Added more idea notes. 2012-02-23 17:38:49 -05:00
Michael DeHaan a2a8deaeaa Added command module 2012-02-23 17:19:06 -05:00
Michael DeHaan f4fca1069a doc updates 2012-02-23 16:32:58 -05:00
Michael DeHaan 3807824c6d Added file copy support w/ readme updates 2012-02-23 16:07:10 -05:00
Michael DeHaan 83d15afc6f readme updates 2012-02-23 15:31:35 -05:00
Michael DeHaan 631ac37843 Example facter module. Look how quick that was. 2012-02-23 15:24:24 -05:00
Michael DeHaan 145a024d7b Split CLI into binscript 2012-02-23 14:56:14 -05:00
Michael DeHaan 288ce6b32e Further readme tweaks 2012-02-23 14:40:17 -05:00
Michael DeHaan 5170a9fe2c Readme edits 2012-02-23 14:28:39 -05:00
Michael DeHaan 381b3c971a Example for list of hosts syntax
TODO: add a command to auto-add a host, list hosts, etc
2012-02-23 14:20:28 -05:00
Michael DeHaan b9426ef99a Add SSH-agent usage instructions 2012-02-23 14:19:28 -05:00
Michael DeHaan c4f6d493b3 Initial library directory 2012-02-23 14:18:51 -05:00