summaryrefslogtreecommitdiff
path: root/inventory
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-09-20 05:17:31 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-09-20 05:17:31 +0200
commit33bc238937f871caebefc1950e2a5037041f2f6a (patch)
treeec5648f14b410431e95ec0e2ba7e33015166a021 /inventory
parentclean up switch config (diff)
add host ch-prometheus-legacy
Diffstat (limited to 'inventory')
-rw-r--r--inventory/group_vars/chaos-at-home/network.yml4
-rw-r--r--inventory/group_vars/vmhost-ch-prometheus/main.yml5
-rw-r--r--inventory/host_vars/ch-prometheus-legacy.yml39
-rw-r--r--inventory/host_vars/ch-prometheus.yml4
-rw-r--r--inventory/hosts.ini2
5 files changed, 50 insertions, 4 deletions
diff --git a/inventory/group_vars/chaos-at-home/network.yml b/inventory/group_vars/chaos-at-home/network.yml
index c13b9602..c004feb9 100644
--- a/inventory/group_vars/chaos-at-home/network.yml
+++ b/inventory/group_vars/chaos-at-home/network.yml
@@ -20,7 +20,6 @@ network_zones:
#############
## legacy stuff
ch-prometheus-old: 250
- ch-auth-legacy: 88 ## legacy
ch-prometheus-legacy: 99 ## legacy
wifi:
ssid: "chaos at home"
@@ -58,10 +57,7 @@ network_zones:
ch-router: 254
#############
## legacy stuff
- ch-stats-legacy: 10
- ch-web-legacy: 81
ch-auth-legacy: 88
- ch-mail-legacy: 144
mgmt:
diff --git a/inventory/group_vars/vmhost-ch-prometheus/main.yml b/inventory/group_vars/vmhost-ch-prometheus/main.yml
index e97ee1f8..015b0aa3 100644
--- a/inventory/group_vars/vmhost-ch-prometheus/main.yml
+++ b/inventory/group_vars/vmhost-ch-prometheus/main.yml
@@ -24,3 +24,8 @@ vm_host:
name: vm
properties:
compression: lz4
+ storage:
+ pool: storage
+ name: vm
+ properties:
+ compression: lz4
diff --git a/inventory/host_vars/ch-prometheus-legacy.yml b/inventory/host_vars/ch-prometheus-legacy.yml
new file mode 100644
index 00000000..2bcff013
--- /dev/null
+++ b/inventory/host_vars/ch-prometheus-legacy.yml
@@ -0,0 +1,39 @@
+---
+install:
+ vm:
+ memory: 4G
+ numcpus: 2
+ autostart: True
+ disks:
+ primary: /dev/sda
+ scsi:
+ sda:
+ type: zfs
+ name: root
+ size: 20g
+ sdb:
+ type: zfs
+ backend: storage
+ name: home
+ size: 350g
+ system_lvm:
+ volumes:
+ - name: root
+ size: 5G
+ filesystem: ext4
+ mountpoint: /
+ interfaces:
+ - bridge: br-lan
+ name: eth0
+
+network:
+ nameservers: "{{ network_zones.lan.dns }}"
+ domain: "{{ host_domain }}"
+ systemd_link:
+ interfaces: "{{ install.interfaces }}"
+ primary: &_network_primary_
+ name: eth0
+ address: "{{ network_zones.lan.prefix | ipaddr(network_zones.lan.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
+ gateway: "{{ network_zones.lan.gateway }}"
+ interfaces:
+ - *_network_primary_
diff --git a/inventory/host_vars/ch-prometheus.yml b/inventory/host_vars/ch-prometheus.yml
index 3b4a3899..38bc197a 100644
--- a/inventory/host_vars/ch-prometheus.yml
+++ b/inventory/host_vars/ch-prometheus.yml
@@ -85,6 +85,10 @@ zfs_sanoid_modules:
use_template: production
recursive: yes
process_children_only: yes
+ storage/vm:
+ use_template: production
+ recursive: yes
+ process_children_only: yes
storage:
use_template: production
recursive: yes
diff --git a/inventory/hosts.ini b/inventory/hosts.ini
index 41a9b0b2..15764446 100644
--- a/inventory/hosts.ini
+++ b/inventory/hosts.ini
@@ -25,6 +25,7 @@ ch-apps host_name=apps
ch-http-proxy host_name=http-proxy
ch-imap-proxy host_name=imap-proxy
ch-auth-legacy host_name=auth
+ch-prometheus-legacy host_name=prometheus
ch-atlas host_name=atlas
ch-pan host_name=pan
ch-keyserver host_name=keyserver
@@ -264,6 +265,7 @@ ch-apps
ch-http-proxy
ch-imap-proxy
ch-auth-legacy
+ch-prometheus-legacy
[vmhost-ch-prometheus]
ch-prometheus
[vmhost-ch-prometheus:children]