Abiquo has created a dynamic inventory plugin for Ansible. What is Ansible? To summarize using Ansible's own description:
“Ansible is a radically simple IT orchestration engine that automates configuration management, application deployment, and many other IT needs”
...
Once a basic host entry has been defined, you have different associations that may be useful for applying playbooks in bulk mode:
Description label
Datacenter
Virtual Appliance
Template
The next host group is:
Code Block |
---|
{ "CentOS_6.5_x64": { "children": [ "ABQ_d7985e52-4551-4b00-a21e-b6d823264e2d", "ABQ_0601a901-2845-4b3f-a52b-964c90b33240" ], "hosts": [] } } |
This group contains all hosts using the CentOS 6.5 x64 template, so, if we want to apply a package to update all hosts which are using this template, we just need to specify that label in our playbook.
In the same way, you can execute a playbook on all hosts deployed in a Virtual Appliance, which are defined as the children:
...
For a video demonstration, please see httpsee the link to youtube at the end of the blog post: https://www.abiquo.com/2014/05/14/abiquo-dynamic-inventory-plugin-for-ansible/