Example of call: docker run --rm -e XOA_HOST="192.168.1.1" -e XOA_USER="xoa" -e XOA_PASS="123456" luizhpriotto/xenorchestra_inventory
It was used xo-cli to get the Dynamic Inventory:
The version of npm package used was 0.11.1
Example of using on Ansible:
docker run --rm -e XOA_HOST="192.168.1.1" -e XOA_USER="xoa" -e XOA_PASS="123456" luizhpriotto/xenorchestra_inventory > invent.ini
ansible master -m ping --private-key xoa_rsa -u debian --become-method su --become-user root -i invent.ini
The dynamic inventory is based on system tags of the Xen Orchestra.
[kub]
192.168.1.152
192.168.1.42
[worker]
192.168.1.152
[2021.01]
192.168.1.152
[XOA]
192.168.1.152
[master]
192.168.1.4
Docker image: