From f399928637cc2f12bf7cb06a4ea107bc0a88e5db Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 19 Aug 2020 01:29:36 +0200 Subject: add host ch-prometheus --- inventory/group_vars/vmhost-ch-prometheus/main.yml | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 inventory/group_vars/vmhost-ch-prometheus/main.yml (limited to 'inventory/group_vars/vmhost-ch-prometheus/main.yml') diff --git a/inventory/group_vars/vmhost-ch-prometheus/main.yml b/inventory/group_vars/vmhost-ch-prometheus/main.yml new file mode 100644 index 00000000..e97ee1f8 --- /dev/null +++ b/inventory/group_vars/vmhost-ch-prometheus/main.yml @@ -0,0 +1,26 @@ +--- +__vmhost_bridge_interface_zones__: + bond0: "{{ network_zones | list | difference(['lan']) }}" + +__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 %} + lan: + interfaces: + - enp1s0 + +vm_host: + name: ch-prometheus + network: + bridges: "{{ __vmhost_bridge_interface_zones_yaml__ | from_yaml }}" + zfs: + default: + pool: nvme + name: vm + properties: + compression: lz4 -- cgit v1.2.3