Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 698 Bytes

README.md

File metadata and controls

37 lines (28 loc) · 698 Bytes

harvester-inventory

the ansible dynamic inventory to pull hosts(nodes and virtualmachines) from Harvester.

Build

make
mv ./bin/harvester-inventory ./harvester-inventory

Example

all (nodes+virtualmachines)

ansible -m ping -i ./harvester-inventory all

nodes

ansible -m ping -i ./harvester-inventory nodes

virtualmachines in default namespace

ansible -m ping -i ./harvester-inventory vms

virtualmachines in other namespace

NAMESPACE=other ansible -m ping -i ./harvester-inventory vms

master node

ansible -m ping -i ./harvester-inventory node_label_node_role_kubernetes_io_control_plane_true