4 ms·
Don't call it "server manifest". It'll confuse people. You mean "inventory". You can dynamically populate "facts" and "inventory". See: https://github.com/ansi
by susi22 13y ago
Don't call it "server manifest". It'll confuse people. You mean "inventory". You can dynamically populate "facts" and "inventory". See:
https://github.com/ansible-provisioning/ansible-provisioning https://github.com/ansible-provisioning/ansible-provisioning
http://jpmens.net/2013/06/18/adapting-inventory-for-ansible/ http://jpmens.net/2013/06/18/adapting-inventory-for-ansible/
Especially for ec2 there is many modules that allows you to do that too. You can easily specify an inventory file which you populates dynamically.
There is also a lot being done about this in v1.3.
HTH
- purephase 13y agoExcellent! Thanks for letting me know. I'll have to dive back in and check it out.
- mpdehaan2 13y agoYeah check out the API chapter of the docs, there's information about all kinds of dynamic inventory scripts. https://github.com/ansible/ansible/tree/devel/plugins/inventory https://github.com/ansible/ansible/tree/devel/plugins/invent...
- davis_m 13y agoThis is exactly the info I needed for some work I am doing. Thanks!