diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-08-19 01:29:36 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-08-19 01:29:36 +0200 |
commit | f399928637cc2f12bf7cb06a4ea107bc0a88e5db (patch) | |
tree | 320bef2c5f0a60caf1c3fd05bac9f06ce1c7708c /inventory/group_vars/vmhost-ch-prometheus | |
parent | add hacky workaround for zfs-mount-generator bug (diff) |
add host ch-prometheus
Diffstat (limited to 'inventory/group_vars/vmhost-ch-prometheus')
-rw-r--r-- | inventory/group_vars/vmhost-ch-prometheus/main.yml | 26 |
1 files changed, 26 insertions, 0 deletions
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 |