Hi folks,
I'm looking for a way to generate dsh hostgroups (as used by clustershell / pdsh / dsh and similar "ssh in parallel to multiple machines" tools) from tags.
I don't see a direct API call to get tags -> vmids, so it appears that I'm going to have to iterate over each node and VM (either by cli `qm config $vmid | grep ^tags` or API (GET /api2/json/nodes/{node}/qemu/{vmid}/config)
1) has anybody done this before so I don't reinvent the wheel?
2) are there any better ways to gather tag info?
Many thanks
Andrew
I'm looking for a way to generate dsh hostgroups (as used by clustershell / pdsh / dsh and similar "ssh in parallel to multiple machines" tools) from tags.
I don't see a direct API call to get tags -> vmids, so it appears that I'm going to have to iterate over each node and VM (either by cli `qm config $vmid | grep ^tags` or API (GET /api2/json/nodes/{node}/qemu/{vmid}/config)
1) has anybody done this before so I don't reinvent the wheel?
2) are there any better ways to gather tag info?
Many thanks
Andrew