Commit Graph

19 Commits (111561f7829b517fb0b7577a0e2147292bdba58f)

Author SHA1 Message Date
Jeroen Hoekx b7cb00073b Correctly add ungrouped hosts to 'ungrouped' in YAML inventory. 13 years ago
Daniel Hokka Zakrisson e30d931062 Add tests of host exclusions 13 years ago
Michael DeHaan d4cc8dc242 Fix hosts being in multiple groups, and duplicate host references in the same inventory file. 13 years ago
Jeroen Hoekx 1d28212f86 Inventory: undefined group -> ungrouped.
Also change test name collision.
13 years ago
Jeroen Hoekx 3b40158961 Inventory: support list of vars in host. 13 years ago
Michael DeHaan a7b9bf958d Add tests for new advanced inventory features (groups of groups, group variables) in the default INI format file. 13 years ago
Michael DeHaan 46c661b3e3 Further work on making the YAML inventory parser use the new inventory objects. 13 years ago
Michael DeHaan 3fb2d38514 Reinstate external inventory script support this time using the new more OO-ey inventory system.
Next up: YAML format.
13 years ago
Michael DeHaan 4011d15faa Refactored inventory to make it object oriented, need to make YAML format and executable script
format compatible with this still, and add some tests for INI-style groups of groups
and variables.
13 years ago
Jeroen Hoekx 03541baba7 Define 'inventory_hostname' variable for hosts. 13 years ago
Jeroen Hoekx b87710a1df Introduce group_names in template variables.
This is a list of all the groups a host is in.
13 years ago
Jeroen Hoekx 903e4f6eae Support dicts in inventory vars. 13 years ago
Michael DeHaan 9ce27be878 Remove extra_vars tests 13 years ago
Jeroen Hoekx 8c3206c99f Return a copy of the host variables. 13 years ago
Jeroen Hoekx 961ccdb2f4 List hosts in no group in the ungrouped group. 13 years ago
Jeroen Hoekx 3a24aa9a70 Add YAML inventory format.
See test/yaml_hosts for an example.

Hosts can be part of multiple groups.

Groups can also have variables, inherited by the hosts.
There is no variable scope, last variable seen wins.
13 years ago
Jeroen Hoekx 54f4526160 Export SSH port number as host variable. 13 years ago
Jeroen Hoekx 746f1b92ae Reimplement the class method on Runner. 13 years ago
Jeroen Hoekx 195e6d617b Add tests for Inventory class. 13 years ago