summaryrefslogtreecommitdiff
path: root/inventory
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-01-02 14:08:55 +0100
committerChristian Pointner <equinox@spreadspace.org>2021-01-02 14:08:55 +0100
commitffde6f13611339410c4de6001b4dbde01b8156cc (patch)
treec50eba8b8b9fe6afef9dcbfabc6a0f8bdb2a012a /inventory
parentinstall playbooks: fix order handlers and reboot (diff)
add ch-k8s-master
Diffstat (limited to 'inventory')
-rw-r--r--inventory/group_vars/chaos-at-home/network.yml1
-rw-r--r--inventory/host_vars/ch-k8s-master.yml33
-rw-r--r--inventory/hosts.ini2
3 files changed, 36 insertions, 0 deletions
diff --git a/inventory/group_vars/chaos-at-home/network.yml b/inventory/group_vars/chaos-at-home/network.yml
index 85bac426..0050579c 100644
--- a/inventory/group_vars/chaos-at-home/network.yml
+++ b/inventory/group_vars/chaos-at-home/network.yml
@@ -51,6 +51,7 @@ network_zones:
ch-apps: 1
ch-http-proxy: 8
ch-imap-proxy: 9
+ ch-k8s-master: 20
ch-jump: 22
ch-gw-lan: 28
ch-testvm-prometheus: 42
diff --git a/inventory/host_vars/ch-k8s-master.yml b/inventory/host_vars/ch-k8s-master.yml
new file mode 100644
index 00000000..bb8fa845
--- /dev/null
+++ b/inventory/host_vars/ch-k8s-master.yml
@@ -0,0 +1,33 @@
+---
+install_jumphost: ch-jump
+
+install:
+ vm:
+ memory: 4G
+ numcpus: 4
+ autostart: True
+ disks:
+ primary: /dev/sda
+ scsi:
+ sda:
+ type: zfs
+ name: root
+ size: 20g
+ 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 bfac8435..d34219f6 100644
--- a/inventory/hosts.ini
+++ b/inventory/hosts.ini
@@ -41,6 +41,7 @@ ch-calypso host_name=calypso
ch-thetys host_name=thetys
ch-dione host_name=dione
ch-helene host_name=helene
+ch-k8s-master host_name=k8s-master
[chaos-at-home:children]
mz-chaos-at-home
@@ -282,6 +283,7 @@ ch-imap-proxy
ch-auth-legacy
ch-prometheus-legacy
ch-testvm-prometheus
+ch-k8s-master
[vmhost-ch-prometheus]
ch-prometheus
[vmhost-ch-prometheus:children]