summaryrefslogtreecommitdiff
path: root/inventory
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-01-20 01:13:38 +0100
committerChristian Pointner <equinox@spreadspace.org>2021-01-20 01:13:38 +0100
commit5d7668b75579dcd98a87102280930c6d7cfa02df (patch)
tree69e2cce50d2b2fde1c7b67e29be2871f2acb0fe1 /inventory
parentinstall esptool to ch-equinox-(ws|t450s) (diff)
add ch-iot vm
Diffstat (limited to 'inventory')
-rw-r--r--inventory/group_vars/chaos-at-home/network.yml4
-rw-r--r--inventory/host_vars/ch-iot.yml37
-rw-r--r--inventory/hosts.ini2
3 files changed, 43 insertions, 0 deletions
diff --git a/inventory/group_vars/chaos-at-home/network.yml b/inventory/group_vars/chaos-at-home/network.yml
index 0050579c..0c637010 100644
--- a/inventory/group_vars/chaos-at-home/network.yml
+++ b/inventory/group_vars/chaos-at-home/network.yml
@@ -39,6 +39,9 @@ network_zones:
ssid: "stuff at home"
encryption: "sae-mixed"
key: "{{ vault_wifi_keys.iot }}"
+ offsets:
+ ch-wled-test: 1
+ ch-iot: 254
svc:
vlan: 32
@@ -54,6 +57,7 @@ network_zones:
ch-k8s-master: 20
ch-jump: 22
ch-gw-lan: 28
+ ch-iot: 30
ch-testvm-prometheus: 42
ch-nic: 53
__svc_http__: 80
diff --git a/inventory/host_vars/ch-iot.yml b/inventory/host_vars/ch-iot.yml
new file mode 100644
index 00000000..d9e1f153
--- /dev/null
+++ b/inventory/host_vars/ch-iot.yml
@@ -0,0 +1,37 @@
+---
+install_jumphost: ch-jump
+
+install:
+ vm:
+ memory: 1G
+ numcpus: 1
+ autostart: False
+ disks:
+ primary: /dev/sda
+ scsi:
+ sda:
+ type: zfs
+ name: root
+ size: 5g
+ interfaces:
+ - bridge: br-svc
+ name: svc0
+ - bridge: br-iot
+ name: iot0
+
+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_
+ - name: iot0
+ address: "{{ network_zones.iot.prefix | ipaddr(network_zones.iot.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
diff --git a/inventory/hosts.ini b/inventory/hosts.ini
index 2863223b..f8de1d26 100644
--- a/inventory/hosts.ini
+++ b/inventory/hosts.ini
@@ -28,6 +28,7 @@ ch-imap-proxy host_name=imap-proxy
ch-auth-legacy host_name=auth
ch-prometheus-legacy host_name=prometheus
ch-testvm-prometheus host_name=testvm-prometheus
+ch-iot host_name=iot
ch-epimetheus host_name=epimetheus
ch-atlas host_name=atlas
ch-pan host_name=pan
@@ -284,6 +285,7 @@ ch-imap-proxy
ch-auth-legacy
ch-prometheus-legacy
ch-testvm-prometheus
+ch-iot
ch-k8s-master
[vmhost-ch-prometheus]
ch-prometheus