Skip to content

luizhpriotto/xenorchestra_inventory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Invetory to use in Ansible.

How to use:

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:

xo-cli

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.

Example of invent.ini:

[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:

Dockerhub

About

Dynamic Inventory from Xen Orchestra to use on Ansible.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published