7bdc3cdb15
Configured with environment variables -- e.g.: ANSIBLE_INVENTORY_CONSUL_IO_LOG_ENABLED=1 ANSIBLE_INVENTORY_CONSUL_IO_LOG_LEVEL=DEBUG /path/to/consul_io.py --list This gives some verbose logging, including showing all HTTP requests being made, which I am finding useful, as I am trying to improve the performance of this script. |
||
---|---|---|
.. | ||
inventory | ||
README.md |
inventory
Inventory scripts allow you to store your hosts, groups, and variables in any way you like. Examples include discovering inventory from EC2 or pulling it from Cobbler. These could also be used to interface with LDAP or database.
chmod +x an inventory plugin and either name it /etc/ansible/hosts or use ansible with -i to designate the path to the script. You might also need to copy a configuration file with the same name and/or set environment variables, the scripts or configuration files have more details.
contributions welcome
Send in pull requests to add plugins of your own. The sky is the limit!