inventory: Add create_groups option

This adds the create_groups option to the inventory, which allows to
control the creation of groups from labels on VirtualMachines. By
default it is disabled.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
Felix Matouschek
2023-09-05 14:48:12 +02:00
parent 100bcee082
commit e33b479326
5 changed files with 33 additions and 16 deletions

View File

@@ -2,3 +2,4 @@ plugin: kubevirt.core.kubevirt
connections:
- namespaces:
- default
create_groups: yes

View File

@@ -2,4 +2,5 @@ plugin: kubevirt.core.kubevirt
connections:
- namespaces:
- default
create_groups: yes
label_selector: app=test

View File

@@ -2,4 +2,5 @@ plugin: kubevirt.core.kubevirt
connections:
- namespaces:
- default
create_groups: yes
network_name: bridge-network