summaryrefslogtreecommitdiff
path: root/inventory/group_vars
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-08-19 01:29:36 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-08-19 01:29:36 +0200
commitf399928637cc2f12bf7cb06a4ea107bc0a88e5db (patch)
tree320bef2c5f0a60caf1c3fd05bac9f06ce1c7708c /inventory/group_vars
parentadd hacky workaround for zfs-mount-generator bug (diff)
add host ch-prometheus
Diffstat (limited to 'inventory/group_vars')
-rw-r--r--inventory/group_vars/chaos-at-home/network.yml5
-rw-r--r--inventory/group_vars/vmhost-ch-prometheus/main.yml26
2 files changed, 29 insertions, 2 deletions
diff --git a/inventory/group_vars/chaos-at-home/network.yml b/inventory/group_vars/chaos-at-home/network.yml
index ba22bcc3..b21074ff 100644
--- a/inventory/group_vars/chaos-at-home/network.yml
+++ b/inventory/group_vars/chaos-at-home/network.yml
@@ -14,8 +14,9 @@ network_zones:
ch-equinox-ws: 1
ch-oulu: 2
ch-oulu-vm1: 3
+ ch-mc: 10
ch-auth: 88
- ch-prometheus: 99
+ ch-prometheus: 200
ch-prometheus-old: 250
ch-gw-lan: 254
wifi:
@@ -57,7 +58,7 @@ network_zones:
offsets:
ch-equinox-ws: 1
ch-jump: 22
- ch-prometheus: 99
+ ch-prometheus: 100 # IPMI
ch-sw0: 200
ch-sw1: 201
ch-ap0: 220
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