Commit Graph

218 Commits (bda2ce6ffdb04f37a920294ca2cc560c8ddebecb)

Author SHA1 Message Date
Dag Wieers 66fb7fd9de Make use of yes/no booleans in playbooks
14 years ago
Michael DeHaan 70bb7d1e54 Merge pull request #1696 from gregorg/enhance_limit
14 years ago
Daniel Hokka Zakrisson 54b45e9bd4 Allow intersecting host patterns by using &
14 years ago
Norman J. Harman Jr 6603737e4d Alphabetic inventory hostname patterns.
14 years ago
Gregory Duchatelet 8bc1b69c58 Add a unit test to subset limiting via a regex, and some doc in man
14 years ago
Brian Coca 6a1e2aaff5 moved override matching string to variable changed test template to match Signed-off-by: Brian Coca <briancoca+ansible@gmail.com>
14 years ago
Brian Coca d751d88b48 added test for template overrides Signed-off-by: Brian Coca <briancoca+ansible@gmail.com>
14 years ago
Daniel Hokka Zakrisson 0c70abfaa9 Make sure any existing groups gets reused
14 years ago
Michael DeHaan 0c4b30a471 Aliased node test doesn't make sense locally, so remove it.
14 years ago
Michael DeHaan 9985995a9d Make tests use the local connection type, fix missing callback in tests.
14 years ago
Daniel Hokka Zakrisson e74ffd6764 Lookup plugin arguments need to be templated
14 years ago
Daniel Hokka Zakrisson eebbbd3f0e Make parameterized playbook includes work with vars as a list
14 years ago
Daniel Hokka Zakrisson 5752d2a850 Fix lookup plugin test properly
14 years ago
Daniel Hokka Zakrisson d2dce1d63f Make lookup plugin replacements part of the main variable logic
14 years ago
Daniel Hokka Zakrisson f91fa9f765 Fix lookup plugin test
14 years ago
Daniel Hokka Zakrisson 9c095b72b9 Add parameterized playbook includes
14 years ago
Daniel Hokka Zakrisson 383dc30560 Rename varReplaceWithItems to template_ds
14 years ago
Daniel Hokka Zakrisson 43419d7b20 Add tests for lookup plugins
14 years ago
Daniel Hokka Zakrisson 47082a9171 Add $LOOKUP(<lookup plugin>,<data>) as a templating option
14 years ago
Daniel Hokka Zakrisson 40af8eff14 Add testcase for first_available_file
14 years ago
Daniel Hokka Zakrisson 56314f7225 Add test case for non-existing variable in varReplaceWithItems
14 years ago
Daniel Hokka Zakrisson fbda2d4628 Use default port if ansible_ssh_port is not set for the delegated node
14 years ago
Daniel Hokka Zakrisson efe83daf19 Fix ${var.$other_var} and add test cases for it
14 years ago
Michael DeHaan 6ba30170dd Make group_vars and host_vars available to usr/bin/ansible, and make vars_plugins exist
14 years ago
Michael DeHaan e04dab904a Use previous proven multiprocessing logic as the simplification didn't have the same Ctrl-C handling and may
14 years ago
Michael DeHaan f8e946b71d Merge branch 'varfind-cleanups' of git://github.com/dhozac/ansible into devel
14 years ago
Daniel Hokka Zakrisson 1449c8ac67 Fix ansible_ssh_host again
14 years ago
Daniel Hokka Zakrisson c9c5fc1456 Merge varFind and varLookup
14 years ago
Michael DeHaan cbc12f0dba Various performance streamlining and making the file features usable in all modules without daisy chaining.
14 years ago
Michael DeHaan 6fa1a49037 Fix the basic templating system such that when the template ends in '$', life continues as normal.
14 years ago
willthames 5a769a5a4d Fixed tests to reflect desired configuration behaviour
14 years ago
Michael DeHaan 0837a29e51 Only expand lists in templating inside of module action lines, to avoid breaking usage with with_items and "in" statements, etc
14 years ago
Michael DeHaan 7583704144 "force=" code under the file module is problematic, remove it
14 years ago
Michael DeHaan c5d2f6b0d3 implement lookup plugins for arbitrary enumeration over arbitrary things. See the mailing list for some cool examples.
14 years ago
Jeroen Hoekx 23a62f5a78 Return multiple groups from inventory API.
14 years ago
Jeroen Hoekx 30c019447b Fix typo in inventory API test script.
14 years ago
Daniel Hokka Zakrisson 695b4bcb46 Allow non-string types in with_items variables
14 years ago
Daniel Hokka Zakrisson 6477bdc6fc Use a regexp to filter out arguments instead
14 years ago
Michael DeHaan 22f3aef4dc remove test for private function that is no longer present
14 years ago
Daniel Hokka Zakrisson dfee6e19ca Replace lists with a comma-separated join
14 years ago
Daniel Hokka Zakrisson 4b29c2cf74 Revert pull request #1091
14 years ago
Michael DeHaan 06cfc52afd fix tests and change nosetests flags so asserts show what comparisons failed
14 years ago
Daniel Hokka Zakrisson 9e4fac5ebd Create a string parser for varReplace instead of using re
14 years ago
Daniel Hokka Zakrisson b55ef665ba Fix only_if statements referencing non-string types
14 years ago
Daniel Hokka Zakrisson 51216dcfae Add tests for varReplace repr
14 years ago
Michael DeHaan 4ded8cb3b3 Change $FILE{} and $PIPE{} to $FILE() and $PIPE()
14 years ago
Daniel Hokka Zakrisson cc948f339c Allow including files through variables
14 years ago
Michael DeHaan b8c4bb9e6e Revert "Allow including files through variables"
14 years ago
Michael DeHaan b2af95e4a6 Change $FILE{} and $PIPE{} to $FILE() and $PIPE()
14 years ago
Michael DeHaan e1ecb95b3d Delete test that was coded against *local* resolv.conf -- obviously not going to be the same between people's computers
14 years ago
Michael DeHaan 08b70949c7 Fix a test and a typo in an example
14 years ago
Aleksej Romanov eefe66f1cc Squashed commit of the following:
14 years ago
Michael DeHaan b25b9fd840 Merge pull request #1058 from jkleint/devel
14 years ago
John Kleint 2a002f5c0b Support iteration over command output in with_items.
14 years ago
Daniel Hokka Zakrisson 9e78b10ae3 Add test data file
14 years ago
Daniel Hokka Zakrisson bf47bb4753 Allow including files through variables
14 years ago
Michael DeHaan 04555f525e Fix a test from a previous pull request.
14 years ago
John Kleint 1f8696f5c1 Fix inventory.get_hosts when hosts is a list.
14 years ago
Brian Coca 83d1028a21 - Makefile now works with freebsd (date command options are diff)
14 years ago
Michael DeHaan 508c04b85b remove svn tests
14 years ago
Dane Summers eb49ee38ae full test case for subversion, minimal tests for git
14 years ago
Dave Peticolas b42e835aab Always load group_vars and host_vars.
14 years ago
Michael DeHaan 9041adddaa Add support for ranged patterns like webservers[0-49] for hitting the first 50 webservers.
14 years ago
Michael DeHaan de21cb27d8 Remove tests that involve network effects -- makes things faster and they are not really deep tests here either way.
14 years ago
Michael DeHaan 259f2dc4de Various retooling of the internal code behind inventory pattern matching in support of pending support
14 years ago
Dave Peticolas 08272dc25d Remove unused imports.
14 years ago
Michael DeHaan 1c9b43df1b more whitespace
14 years ago
Petros Moisiadis 2ac4acbf97 fixes for tests
14 years ago
Will Thames 845a7ac5ae test_one not working as tests after skipped test failing, because
14 years ago
Michael DeHaan d79900b434 Merge pull request #732 from willthames/fix_git_fail_json
14 years ago
u348095 e863ba0cec Fixes for git module when it fails.
14 years ago
Michael DeHaan fe558f680a Fix some failing tests, script tests seem to indicate magic variables are not being provided
14 years ago
Michael DeHaan 47cead3603 Merge pull request #727 from sfromm/git
14 years ago
willthames 1bcba4f4a2 test/TestRunner.py now executes false with no directory prefix
14 years ago
Stephen Fromm 90bf67cf56 Make test_git functional in TestRunner.py
14 years ago
Michael DeHaan 8fa4dc3920 Small change to previous patch, make ranges of hosts inclusive.
14 years ago
Chin Fang e3b2521f01 Added a host expansion feature to ansible's inventory parsing
14 years ago
Michael DeHaan dde11baa56 Remove YAML inventory tests since this is now deprecated.
14 years ago
Michael DeHaan 9e62fd42b5 update test utils code
14 years ago
Michael DeHaan 867b2437cc consolidate output code in callbacks.py, from utils, remove extra functions
14 years ago
Michael DeHaan 279b5965b8 Much streamlining around setup steps in playbooks, now only run setup once per play.
14 years ago
Michael DeHaan 931f9f1a61 Setup module no longer saves to disk, as templates are mostly useful in playbooks and this allows lots of simplifications
14 years ago
Michael DeHaan 60f295f7a0 Squashed commit of the following:
14 years ago
Michael DeHaan efac68b636 Remove the -D module debug flag, which no longer is functional due to sudo pty requirements, and replace with -v/--verbose.
14 years ago
Jeroen Hoekx d592e15dcc Correctly add ungrouped hosts to 'ungrouped' in YAML inventory.
14 years ago
Daniel Hokka Zakrisson 031c75e53a Update tests to reflect new API
14 years ago
Daniel Hokka Zakrisson 24d73b0fe6 Add tests of iterative templating
14 years ago
Daniel Hokka Zakrisson 05a7a3725b Add tests of host exclusions
14 years ago
Michael DeHaan bd893b765b Merge pull request #459 from dhozac/with_items-variable
14 years ago
Stephen Fromm 9cf182c225 Add assemble module
14 years ago
Daniel Hokka Zakrisson a05da2d312 Allow with_items to specify a variable
14 years ago
John Kleint 70837469c6 Properly template list of hosts in playbooks.
14 years ago
Matt Goodall 639763c138 Allow "=" in k-v values.
14 years ago
Michael DeHaan 8e88667f82 Fix hosts being in multiple groups, and duplicate host references in the same inventory file.
14 years ago
Jeroen Hoekx ecc0b0770c If /usr/share/dict/words does not exist, use cracklib-small to test large output.
14 years ago
Michael DeHaan d4f660edc3 Do not run unit tests against the EVENTS code because it is subject to change and that does not mean anything is broken.
14 years ago
Michael DeHaan f8807da57b Merge pull request #363 from jhoekx/template-only-if
14 years ago
Jeroen Hoekx cd9f926b5f Fix correct variable expansion in includes only_if.
14 years ago
Jeroen Hoekx 3cbc229990 Support list indexing in varReplace.
14 years ago
Jeroen Hoekx 74e21e6154 Fixup unicode varReplace templating.
14 years ago