summaryrefslogtreecommitdiff
path: root/inventory/group_vars/vmhost-ch-gnocchi
diff options
context:
space:
mode:
Diffstat (limited to 'inventory/group_vars/vmhost-ch-gnocchi')
-rw-r--r--inventory/group_vars/vmhost-ch-gnocchi/main.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/inventory/group_vars/vmhost-ch-gnocchi/main.yml b/inventory/group_vars/vmhost-ch-gnocchi/main.yml
new file mode 100644
index 00000000..5b36795e
--- /dev/null
+++ b/inventory/group_vars/vmhost-ch-gnocchi/main.yml
@@ -0,0 +1,25 @@
+---
+__vmhost_bridge_interface_zones__:
+ enp1s0:
+ - lan
+ - svc
+ enp2s0:
+ - magenta
+ enp3s0:
+ - mgmt
+ - iot
+
+__vmhost_bridge_interface_zones_yaml__: |
+ {% for interface in (__vmhost_bridge_interface_zones__.keys() | sort) %}
+ {% for zone in __vmhost_bridge_interface_zones__[interface] %}
+ {{ zone }}:
+ interfaces:
+ - {{ interface }}.{{ network_zones[zone].vlan }}
+ {% endfor %}
+ {% endfor %}
+
+
+vm_host:
+ name: ch-gnocchi
+ network:
+ bridges: "{{ __vmhost_bridge_interface_zones_yaml__ | from_yaml }}"