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.
- Host: GitHub
- URL: https://github.com/futuretea/harvester-inventory
- Owner: futuretea
- Created: 2021-04-26T12:34:16.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-11-23T10:38:40.000Z (over 1 year ago)
- Last Synced: 2025-04-05T23:32:49.329Z (about 1 year ago)
- Topics: ansible, harvester
- Language: Go
- Homepage:
- Size: 12.6 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```