Promox inventory plugin #56336
I have (heavily) modified the existing foreman inventory plugin to make it work with Proxmox VE.
It collects all Proxmox Nodes, LXC containers and KVM hosts and groups them up as follows:
As an option (want_facts) it will gather the VM's configuration and wrap it in facts.
For connectivity purposes to the Proxmox nodes, it will always gather the first interface with an IP and set the ansible_host fact for that node to it.
As this is my first shot at helping to improve Ansible, I really look forward to your feedback (and try to make this a success! ;-))
Sample output from my laptop, which has 2 pools (one without hosts) and a bunch of lab VMs
I've checked the output from Shippable, but I think that test is wrong. There's 1 test that failed and it mentions the following error:
However, line 62 of the plugin script reads as follows:
Did I do something wrong? (If so, this error is also in the Foreman plugin)