summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inventory/group_vars/chaos-at-home/network.yml1
-rw-r--r--inventory/host_vars/ch-imap-proxy.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 3c8b5275..332729a1 100644
--- a/inventory/group_vars/chaos-at-home/network.yml
+++ b/inventory/group_vars/chaos-at-home/network.yml
@@ -45,6 +45,7 @@ network_zones:
- 9.9.9.9
offsets:
ch-apps: 1
+ ch-imap-proxy: 9
ch-stats-legacy: 10 ## legacy
ch-jump: 22
ch-gw-lan: 28
diff --git a/inventory/host_vars/ch-imap-proxy.yml b/inventory/host_vars/ch-imap-proxy.yml
new file mode 100644
index 00000000..8034750f
--- /dev/null
+++ b/inventory/host_vars/ch-imap-proxy.yml
@@ -0,0 +1,33 @@
+---
+install_jumphost: ch-jump
+
+install:
+ vm:
+ memory: 2G
+ numcpus: 2
+ autostart: True
+ disks:
+ primary: /dev/sda
+ scsi:
+ sda:
+ type: zfs
+ name: root
+ size: 10g
+ 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 7bc1ae64..f4a7c266 100644
--- a/inventory/hosts.ini
+++ b/inventory/hosts.ini
@@ -23,6 +23,7 @@ ch-nic host_name=nic
ch-equinox-ws host_name=equinox-ws
ch-prometheus host_name=prometheus
ch-apps host_name=apps
+ch-imap-proxy host_name=imap-proxy
ch-atlas host_name=atlas
ch-pan host_name=pan
ch-keyserver host_name=keyserver
@@ -259,6 +260,7 @@ vmhost-ch-gnocchi-guests
[vmhost-ch-prometheus-guests]
ch-apps
+ch-imap-proxy
[vmhost-ch-prometheus]
ch-prometheus
[vmhost-ch-prometheus:children]