Inventory
lig opened this issue · 6 comments
- Static ansible-like inventory
- New static Stonic inventory
- Dynamic inventory
Please include an option to treat executable files as static inventories instead of dynamic.
fyi, some things on inventory, old and new https://serge.vanginderachter.be/2016/current-state-of-the-ansible-inventory-and-how-it-might-evolve/
@stephenwithav @srvg Thanks guys! This helped.
My company started designing our own inventory a couple of years ago, as storing 100's or 1000's of nodes in an ini file is just ridiculous, right?
We developed several complexities, with deterministic dict merging, a dynamic injection system, and plugins for vagrant and aws (among others).
We are currently in an upgrade and rewrite to "v2", and are simplifying many things. The plugin system has been powerful for us, and allows us to transform things like the output of ec2.py and really make it our own.
Our current design ideas are to actually keep everything on disk as yaml:
- https://github.com/ansible/ansible/blob/devel/lib/ansible/inventory/yaml.py
- https://github.com/ansible/ansible/blob/devel/examples/hosts.yaml
and to write to the newer yaml inventory format for 100% upstream compatibility. This will make out inventory tool a drop in replacement, and keep the inventory sources open to abandon our tool and just go back to using the ansible yaml inventory format directly.
We don't have any public design docs (or any internal ones that would make sense yet). If you're interested in stealing any of our design or code for stonic's inventory solution, let me know.
@senorsmile the idea we are working on at the moment as to allow to plug any inventory implementation as easy as possible no matter how dynamic its nature is.
So I believe it will be pretty simple to implement a connector for your own inventory implementation for Stonic.