diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-10-26 17:10:27 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-10-26 17:10:27 +0100 |
commit | 3e8c0e35d40d5a47a7e84e75979e17820dee8f76 (patch) | |
tree | 651a5f6fc1cbdc5dbb9ae55c1bbccf2d5aa989e7 /inventory/group_vars/vmhost-ch-prometheus/vars.yml | |
parent | remove now unneeded filesystem handling for ubuntu-ws (diff) |
don't use main.yml inside group_vars
Diffstat (limited to 'inventory/group_vars/vmhost-ch-prometheus/vars.yml')
-rw-r--r-- | inventory/group_vars/vmhost-ch-prometheus/vars.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/inventory/group_vars/vmhost-ch-prometheus/vars.yml b/inventory/group_vars/vmhost-ch-prometheus/vars.yml new file mode 100644 index 00000000..015b0aa3 --- /dev/null +++ b/inventory/group_vars/vmhost-ch-prometheus/vars.yml @@ -0,0 +1,31 @@ +--- +__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 + storage: + pool: storage + name: vm + properties: + compression: lz4 |