Hey guys,
I’m in the process of wrapping up on a Docker inventory plugin, but before I open a pull request, I wanted to check about something.
Here’s a link for those interested: https://github.com/angstwad/ansible/tree/docker_inv/plugins/inventory
The question is about my use of a YAML-formatted confuration file. Note, this is in addition to supporting environment variables. I noticed that nearly all the modules in Inventory are using INI-formatted files, but this is probably because their dependent libraries support INI-formatted config files. Since docker-py has no such support, I figured I’d go with YAML files. The YAML config file enumerates Docker hosts and options, and a defaults section that could apply to all hosts.
tl;dr: I use a YAML file for enumerating Docker hosts. Everything else seems to use INI. INI files are (mostly) dumb.
Thanks!