An open API service indexing awesome lists of open source software.

https://github.com/futuretea/harvester-inventory

the ansible dynamic inventory to pull hosts from Harvester.
https://github.com/futuretea/harvester-inventory

ansible harvester

Last synced: 11 months ago
JSON representation

the ansible dynamic inventory to pull hosts from Harvester.

Awesome Lists containing this project

README

          

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

## Build
```bash
make
mv ./bin/harvester-inventory ./harvester-inventory
```

## Example

### all (nodes+virtualmachines)
```bash
ansible -m ping -i ./harvester-inventory all
```

### nodes
```bash
ansible -m ping -i ./harvester-inventory nodes
```

### virtualmachines in default namespace
```bash
ansible -m ping -i ./harvester-inventory vms
```

### virtualmachines in other namespace
```bash
NAMESPACE=other ansible -m ping -i ./harvester-inventory vms
```

### master node
```bash
ansible -m ping -i ./harvester-inventory node_label_node_role_kubernetes_io_control_plane_true
```