Michael DeHaan
b8eeb0f906
Add note about localhost/auth
2012-03-30 19:58:28 -04:00
Michael DeHaan
3d2a7ebd68
Added cobbler external inventory script, which is a demo of how external inventory
...
works in Ansible in general.
2012-03-30 19:56:22 -04:00
Michael DeHaan
9f6d98844e
If the inventory file is EXECUTABLE, treat it as a file returning JSON, if called directly, return the host
...
and groups list. If called with an argument of a host name, return the key=value data for that particular
host.
2012-03-30 19:06:14 -04:00
Michael DeHaan
f200a467e7
Update example to use correct state name
2012-03-15 23:11:09 -04:00
Michael DeHaan
f39944b89b
Update example to use correct service state; minor pep8 indent/spacing fixes
2012-03-15 23:10:03 -04:00
Michael DeHaan
24923c2e17
Purge unused imports per pyflakes
2012-03-15 23:06:59 -04:00
Michael DeHaan
60bf82d266
Remove comment about FIXME that is already resolved
2012-03-15 23:05:34 -04:00
Michael DeHaan
311b93995c
Add some comments
2012-03-15 22:37:37 -04:00
Michael DeHaan
6874d853c9
Fix changed=True/False detection when specifying mode=
2012-03-15 22:35:59 -04:00
Michael DeHaan
63818000b4
auto call the file module after copy/template module usage in runner
...
note some changed=True/False detection bits in file module still need tweaking
2012-03-15 22:32:14 -04:00
Michael DeHaan
4ad885111b
Disable debug
2012-03-15 22:04:32 -04:00
Michael DeHaan
5004d21f10
Return file info about the file regardless of changes made
2012-03-15 22:04:04 -04:00
Michael DeHaan
be55145a1e
Initial crack at the file module
2012-03-15 21:53:14 -04:00
Michael DeHaan
8914a1a0d7
license file should be in source tree
2012-03-15 20:24:22 -04:00
Michael DeHaan
9049b0e7ca
Because folks on RHEL 6 (not CentOS 6) have some issues with asciidoc, do not build the asciidoc from
...
the rpm or make install targets. Also modify the make install (only) to copy over files into the library
directory since the setup.py does not do this (due to a distutils bug, more or less).
2012-03-15 20:21:10 -04:00
Michael DeHaan
1a0672fd1e
Fix exception type
2012-03-14 12:51:26 -04:00
Michael DeHaan
c909b66864
use iteritems vs items(), probably doesn't matter that much
2012-03-14 21:56:49 -04:00
Michael DeHaan
a735dd2b17
Added the 'test-module' script, useful for testing modules without running them in Ansible.
2012-03-14 21:49:27 -04:00
Michael DeHaan
4bde4926c3
Modules don't have to return JSON, key=value pairs is ok.
2012-03-14 21:16:15 -04:00
Michael DeHaan
40fd778e2c
'shell' is a magic module that executes the command module with shell=True
2012-03-14 20:40:06 -04:00
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.
2012-03-14 20:02:29 -04:00
Michael DeHaan
e8751baaf3
Remove remote log function as it's only used in one place now
2012-03-14 20:00:09 -04:00
Michael DeHaan
696b67f935
Fix async to use the new argfiles method (wrapping brain around rock, really must write module development guide)
2012-03-14 19:57:56 -04:00
Michael DeHaan
aeea46678d
Fix the copy module to use the argsfile method
2012-03-14 19:09:44 -04:00
Michael DeHaan
917f929e86
Fix template module
2012-03-14 19:08:10 -04:00
Michael DeHaan
6b152c94b9
Correct the setup module
2012-03-14 19:06:35 -04:00
Michael DeHaan
3ea9174ed7
Split argsfile handling into subfunction, attempt to apply argsfile logic to setup
2012-03-14 19:05:19 -04:00
Seth Vidal
1f53c89b14
convert so they handle argsfiles rather than arguments
2012-03-14 18:47:13 -04:00
Seth Vidal
a9a9e3af65
modify yum to be used with argsfile and fix a number of items with
...
how it handles "advanced" pkgspecs for the state= cases
2012-03-14 18:46:53 -04:00
Seth Vidal
a9948f97c6
convert runner to use an args file rather than just arguments passed
...
on the command line
2012-03-14 18:46:33 -04:00
Michael DeHaan
f681425453
Rename hosts file back since included by MANIFEST.in
2012-03-13 22:00:03 -04:00
Michael DeHaan
ee69bd18cc
Add -T to playbook manpage
2012-03-13 21:54:42 -04:00
Michael DeHaan
db61e8f346
Fix -t tree mode so it writes out the value for each host, not everything, once again
2012-03-13 21:38:06 -04:00
Michael DeHaan
e6f175e929
Allow the SSH timeout to be passed to playbooks just like it already could with /usr/bin/ansible
2012-03-13 21:35:34 -04:00
Michael DeHaan
e3b4981feb
Various additions to make sure timed out and failed hosts are taken out of the playbook even if failed
...
during setup, async tasks, or poll operations. This introduced some redundancy so I've made some
notes in the code where things need to be refactored to remove them.
2012-03-13 21:30:34 -04:00
Michael DeHaan
4ae98ed92d
Upgrades to error handling, now general try/catch available.
2012-03-13 20:59:05 -04:00
Michael DeHaan
2e1b59a9d2
restructure the examples directory
2012-03-13 19:27:13 -04:00
Michael DeHaan
09a7119e74
Annotate more files, fix missing imports messing with playbooks. Hey Tim, please test your stuff :)
2012-03-13 19:19:54 -04:00
Michael DeHaan
238fffd6ef
Annotated playbook example
2012-03-13 18:55:04 -04:00
Michael DeHaan
84c60c2750
Merge pull request #91 from skvidal/feature
...
modify build/spec file to work on el6 with quasi-broken setup process
2012-03-13 15:37:11 -07:00
Michael DeHaan
8df0c92f3c
Merge pull request #28 from tbielawa/DieGracefully
...
Die gracefully...
2012-03-13 15:35:38 -07:00
Seth Vidal
3567237dbc
modify build/spec file to work on el6 with quasi-broken setup process
...
remove data_files section from setup.py for some reason or another
2012-03-13 11:08:10 -04:00
Tim Bielawa
dfd2c6dce3
Implement friendlier error handling.
...
Generic AnsibleError exception + host inventory missing exception.
First shot at catching these in a generic way in bin/ansible*.
2012-03-12 23:11:54 -04:00
Michael DeHaan
ce85222fa6
What we are running is actually a "play" (multiple plays per playbook) so rename the function to make it more clear
2012-03-12 22:05:51 -04:00
Michael DeHaan
adf1492da2
Add external vars example
2012-03-12 22:03:20 -04:00
Michael DeHaan
e582bd5ec5
Add fire and forget example
2012-03-12 21:02:38 -04:00
Michael DeHaan
86e19cd8c8
This adds async poll support to playbooks. See examples. Some more testing due + docs
...
but this is more or less a mirror of what /bin/ansible does. It also has a 'fire and
forget' mode if the poll interval is left off or set to 0.
2012-03-12 20:53:10 -04:00
Michael DeHaan
32484f2156
Merge pull request #90 from skvidal/feature
...
yum module
2012-03-12 16:27:20 -07:00
Seth Vidal
0b94c78042
yum module
...
add state=latest and clean up the output cases
added some fixmes on verification
2012-03-12 16:31:13 -04:00
Michael DeHaan
6660a5efbd
add polling info to manpage
2012-03-11 21:09:44 -04:00