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!
13 years ago
Michael DeHaan
5ed2b894d9
Add an additional way to dereference a variable in a playbook, $foo
...
(Using varReplace function originally from yum, thanks Seth)
13 years ago
Michael DeHaan
af9596307d
Move templating into a utils function. Reuse is our friend.
13 years ago
Michael DeHaan
860fe50048
Fix grammatical error.
13 years ago
Michael DeHaan
c1fe0dd719
Quote long variables in playbooks when feeding them to the setup command
13 years ago
Michael DeHaan
5371a9e497
Regression tests for playbooks, logging the events they call via callbacks.
13 years ago
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.
13 years ago
Michael DeHaan
45abe3c16b
Add unit tests for playbooks, and fix an error caught by one
13 years ago
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)
13 years ago
Michael DeHaan
fde7de80df
Remove "import *" from bin/ansible so we can use pyflakes, and remove unneeded imports in the process
13 years ago
Michael DeHaan
faa59e5ef1
Add the failtest module, primarily for easy development testing purposes. RPMs/etc need not ship this.
13 years ago
Michael DeHaan
a4b8cdf8b3
Remove "import *"'s from bin/ansible-playbook code so pyflakes will be usable.
13 years ago
Michael DeHaan
9e07b24239
Fix indentation
13 years ago
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.
13 years ago
Michael DeHaan
c861e0de55
Fix "import *" and resultant new things detectable from "make pyflakes"
13 years ago
Michael DeHaan
33aa50eae7
Inside of runner, do not 'import *' from utils, so we can more easily tell where functions come from
13 years ago
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.
13 years ago
Michael DeHaan
57dec507f0
List less alternative apps
13 years ago
Michael DeHaan
29293ba51d
Rename 'design goals' to 'features'
13 years ago
Michael DeHaan
cd06703fa2
Clarify some things on index page
13 years ago
Michael DeHaan
00bf6f1ebf
Mention other distributions.
13 years ago
Michael DeHaan
f29db92052
more complete from checkout docs
13 years ago
Michael DeHaan
3f75fd575c
Show how easy it is to run from checkout.
13 years ago
Michael DeHaan
82bd75c1e0
Update env-setup script to make it work better
13 years ago
Michael DeHaan
f1c8fc63cb
host file must be marked config(noreplace), update rpm build to use checked in manpage src
13 years ago
Michael DeHaan
5905974737
Fix variable referenced before assignment when not using external variables script
13 years ago
Michael DeHaan
3495d402c7
Default for class variable
13 years ago
Michael DeHaan
b8eeb0f906
Add note about localhost/auth
13 years ago
Michael DeHaan
3d2a7ebd68
Added cobbler external inventory script, which is a demo of how external inventory
...
works in Ansible in general.
13 years ago
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.
13 years ago
Michael DeHaan
c81aed412a
Fix rst syntax errors
13 years ago
Michael DeHaan
bedde394fc
Tell folks about packaged releases, but encourage usage of git.
13 years ago
Michael DeHaan
e12e724a42
Fix error on examples page
13 years ago
Michael DeHaan
12c3e04023
Fix reference
13 years ago
Michael DeHaan
f535335fe0
Add shell module to examples page.
13 years ago
Michael DeHaan
15acaec687
Crossref playbooks from async poll section
13 years ago
Michael DeHaan
f708b75d41
Fix formatting
13 years ago
Michael DeHaan
1a926c69a1
Added some foreshadowing of CLI syntax to the patterns page.
13 years ago
Michael DeHaan
7a8397d60f
link module dev guide from modules page
13 years ago
Michael DeHaan
bbc2aca10f
Make additional reference to playbooks examples dir
13 years ago
Michael DeHaan
a4c23463fb
Add IRC and google groups links to each page
13 years ago
Michael DeHaan
31c353543c
Reinstate page nav, various TOC structure cleanup
13 years ago
Michael DeHaan
3a1bbac3a7
Move see also blocks to bottom of each page to include reading docs, remove 'fork me' to avoid text overlap,
...
simply menu nav so folks find the chapter link.
13 years ago
Michael DeHaan
39d02eeff4
Add external inventory script info (and Cobbler example) to API page.
13 years ago
Michael DeHaan
f200a467e7
Update example to use correct state name
13 years ago
Michael DeHaan
f39944b89b
Update example to use correct service state; minor pep8 indent/spacing fixes
13 years ago
Michael DeHaan
24923c2e17
Purge unused imports per pyflakes
13 years ago
Michael DeHaan
60bf82d266
Remove comment about FIXME that is already resolved
13 years ago
Michael DeHaan
d78817c426
Add file features to examples.
13 years ago
Michael DeHaan
0674c31dbc
Added documentation on the 'file' module and how 'copy' and 'template' can also use the options that 'file'
...
provides.
13 years ago