From 426f7b3dde4b12919590092b6ad56576fb668230 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 16 Oct 2021 12:36:04 +0200 Subject: add test host for OMD --- inventory/group_vars/chaos-at-home/network.yml | 1 + inventory/host_vars/ch-omd.yml | 33 ++++++++++++++++++++++++++ inventory/hosts.ini | 2 ++ 3 files changed, 36 insertions(+) create mode 100644 inventory/host_vars/ch-omd.yml (limited to 'inventory') diff --git a/inventory/group_vars/chaos-at-home/network.yml b/inventory/group_vars/chaos-at-home/network.yml index 5034c43a..cca3c947 100644 --- a/inventory/group_vars/chaos-at-home/network.yml +++ b/inventory/group_vars/chaos-at-home/network.yml @@ -71,6 +71,7 @@ network_zones: __svc_http__: 80 __svc_imap__: 143 ch-mon: 230 + ch-omd: 231 ch-router-obsd: 253 ch-router: 254 ############# diff --git a/inventory/host_vars/ch-omd.yml b/inventory/host_vars/ch-omd.yml new file mode 100644 index 00000000..7f514a5d --- /dev/null +++ b/inventory/host_vars/ch-omd.yml @@ -0,0 +1,33 @@ +--- +install_jumphost: ch-jump + +install: + vm: + memory: 8G + numcpus: 4 + autostart: yes + disks: + primary: /dev/sda + scsi: + sda: + type: zfs + name: root + size: 50g + interfaces: + - bridge: br-svc + name: svc0 + +network: + nameservers: "{{ network_zones.svc.dns }}" + domain: "{{ host_domain }}" + systemd_link: + interfaces: "{{ install.interfaces }}" + primary: &_network_primary_ + name: svc0 + address: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets[inventory_hostname]) | ipaddr('address/prefix') }}" + gateway: "{{ network_zones.svc.gateway }}" + static_routes: + - destination: "{{ network_zones.lan.prefix }}" + gateway: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets['ch-gw-lan']) | ipaddr('address') }}" + interfaces: + - *_network_primary_ diff --git a/inventory/hosts.ini b/inventory/hosts.ini index b1c5b338..036f9bf7 100644 --- a/inventory/hosts.ini +++ b/inventory/hosts.ini @@ -31,6 +31,7 @@ ch-testvm-prometheus host_name=testvm-prometheus ch-iot host_name=iot ch-vpn host_name=vpn ch-mon host_name=mon +ch-omd host_name=omd ch-epimetheus host_name=epimetheus ch-mc host_name=mc ch-atlas host_name=atlas @@ -342,6 +343,7 @@ ch-testvm-prometheus ch-iot ch-vpn ch-mon +ch-omd ch-k8s-master [vmhost-ch-prometheus] ch-prometheus -- cgit v1.2.3