Commit graph

27253 commits

Author SHA1 Message Date
Michael DeHaan
05e27a419c HTML doesn't work like that on that page :) 2012-03-20 21:07:33 -04:00
Michael DeHaan
d2141feada Add subscribe link to markdown index 2012-03-20 21:06:49 -04:00
Michael DeHaan
0a20e65f92 Add subscribe link to main page 2012-03-20 21:04:47 -04:00
Michael DeHaan
a045630c02 Add docs on only_if 2012-03-20 20:15:53 -04:00
Michael DeHaan
54b98effdf Add demonstration of only_if capability 2012-03-20 19:55:24 -04:00
Michael DeHaan
dfbe591cc0 Add "only_if" capability, which allows task steps to be skipped if they do not match a conditional. 2012-03-20 19:55:04 -04:00
Michael DeHaan
a98e0a8cc4 quoting 2012-03-19 23:56:35 -04:00
Michael DeHaan
149cc57b0f remove unneeded code 2012-03-19 23:54:47 -04:00
Michael DeHaan
6b8f5224b8 Added docs on conditional import usage 2012-03-19 23:43:03 -04:00
Michael DeHaan
c05e7fd83e Fix typing issue 2012-03-19 22:46:54 -04:00
Michael DeHaan
64471db94a Remove test from bottom of example that doesn't really make sense in the context of the example's use case. 2012-03-19 22:44:11 -04:00
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!
2012-03-19 22:42:31 -04:00
Michael DeHaan
5ed2b894d9 Add an additional way to dereference a variable in a playbook, $foo
(Using varReplace function originally from yum, thanks Seth)
2012-03-19 19:32:38 -04:00
Michael DeHaan
af9596307d Move templating into a utils function. Reuse is our friend. 2012-03-19 19:23:14 -04:00
Michael DeHaan
860fe50048 Fix grammatical error. 2012-03-18 20:41:38 -04:00
Michael DeHaan
c1fe0dd719 Quote long variables in playbooks when feeding them to the setup command 2012-03-18 19:50:22 -04:00
Michael DeHaan
5371a9e497 Regression tests for playbooks, logging the events they call via callbacks. 2012-03-18 19:25:56 -04:00
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.
2012-03-18 18:50:25 -04:00
Michael DeHaan
45abe3c16b Add unit tests for playbooks, and fix an error caught by one 2012-03-18 18:29:11 -04:00
Michael DeHaan
9c5ec886a6 Import cleanup, plus have /bin/ansible remind you if no hosts were matched by a pattern (for instance, assume
there was a typo in the pattern)
2012-03-18 17:53:58 -04:00
Michael DeHaan
fde7de80df Remove "import *" from bin/ansible so we can use pyflakes, and remove unneeded imports in the process 2012-03-18 17:41:44 -04:00
Michael DeHaan
faa59e5ef1 Add the failtest module, primarily for easy development testing purposes. RPMs/etc need not ship this. 2012-03-18 17:35:49 -04:00
Michael DeHaan
a4b8cdf8b3 Remove "import *"'s from bin/ansible-playbook code so pyflakes will be usable. 2012-03-18 17:32:36 -04:00
Michael DeHaan
9e07b24239 Fix indentation 2012-03-18 17:25:22 -04:00
Michael DeHaan
6777268f4c Fixup the code that allows facter/ohai/other data to bubble up and be used in future action lines. It's a niche
case compared to usage in templates but it should work and will be wanted later for conditional support.
2012-03-18 17:24:09 -04:00
Michael DeHaan
c861e0de55 Fix "import *" and resultant new things detectable from "make pyflakes" 2012-03-18 17:16:12 -04:00
Michael DeHaan
33aa50eae7 Inside of runner, do not 'import *' from utils, so we can more easily tell where functions come from 2012-03-18 17:04:07 -04:00
Michael DeHaan
9837a616eb Preserve changed data on file and template ops when the mode operations don't result in a change but the files
were still replaced.
2012-03-18 16:58:00 -04:00
Michael DeHaan
57dec507f0 List less alternative apps 2012-03-18 13:17:25 -04:00
Michael DeHaan
29293ba51d Rename 'design goals' to 'features' 2012-03-18 13:08:45 -04:00
Michael DeHaan
cd06703fa2 Clarify some things on index page 2012-03-18 13:03:45 -04:00
Michael DeHaan
00bf6f1ebf Mention other distributions. 2012-03-18 12:55:18 -04:00
Michael DeHaan
f29db92052 more complete from checkout docs 2012-03-18 12:45:23 -04:00
Michael DeHaan
3f75fd575c Show how easy it is to run from checkout. 2012-03-18 12:41:00 -04:00
Michael DeHaan
82bd75c1e0 Update env-setup script to make it work better 2012-03-18 12:28:22 -04:00
Michael DeHaan
f1c8fc63cb host file must be marked config(noreplace), update rpm build to use checked in manpage src 2012-03-31 11:08:42 -04:00
Michael DeHaan
5905974737 Fix variable referenced before assignment when not using external variables script 2012-03-31 11:03:29 -04:00
Michael DeHaan
3495d402c7 Default for class variable 2012-03-31 11:02:10 -04:00
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
c81aed412a Fix rst syntax errors 2012-03-17 17:16:31 -04:00
Michael DeHaan
bedde394fc Tell folks about packaged releases, but encourage usage of git. 2012-03-17 17:00:41 -04:00
Michael DeHaan
e12e724a42 Fix error on examples page 2012-03-31 11:19:35 -04:00
Michael DeHaan
12c3e04023 Fix reference 2012-03-31 10:51:48 -04:00
Michael DeHaan
f535335fe0 Add shell module to examples page. 2012-03-31 10:50:47 -04:00
Michael DeHaan
15acaec687 Crossref playbooks from async poll section 2012-03-31 10:41:29 -04:00
Michael DeHaan
f708b75d41 Fix formatting 2012-03-31 10:40:01 -04:00
Michael DeHaan
1a926c69a1 Added some foreshadowing of CLI syntax to the patterns page. 2012-03-31 10:38:24 -04:00
Michael DeHaan
7a8397d60f link module dev guide from modules page 2012-03-31 10:21:28 -04:00