diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-10-16 12:36:04 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-10-16 12:36:04 +0200 |
commit | 426f7b3dde4b12919590092b6ad56576fb668230 (patch) | |
tree | 3c9d70961b4642a0c32f2a031b67b9204886d35e | |
parent | prometues: add some more smartmon alerts (diff) |
add test host for OMD
-rw-r--r-- | chaos-at-home/ch-omd.yml | 10 | ||||
-rw-r--r-- | inventory/group_vars/chaos-at-home/network.yml | 1 | ||||
-rw-r--r-- | inventory/host_vars/ch-omd.yml | 33 | ||||
-rw-r--r-- | inventory/hosts.ini | 2 |
4 files changed, 46 insertions, 0 deletions
diff --git a/chaos-at-home/ch-omd.yml b/chaos-at-home/ch-omd.yml new file mode 100644 index 00000000..142f1be8 --- /dev/null +++ b/chaos-at-home/ch-omd.yml @@ -0,0 +1,10 @@ +--- +- name: Basic Setup + hosts: ch-omd + roles: + - role: apt-repo/base + - role: core/base + - role: core/sshd/base + - role: core/zsh + - role: core/ntp + - role: apt-repo/consol-labs 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 |