summaryrefslogtreecommitdiff
path: root/inventory
diff options
context:
space:
mode:
Diffstat (limited to 'inventory')
-rw-r--r--inventory/group_vars/chaos-at-home/network.yml1
-rw-r--r--inventory/host_vars/ch-apt.yml39
-rw-r--r--inventory/hosts.ini2
3 files changed, 42 insertions, 0 deletions
diff --git a/inventory/group_vars/chaos-at-home/network.yml b/inventory/group_vars/chaos-at-home/network.yml
index 1108ebb1..8984a5a2 100644
--- a/inventory/group_vars/chaos-at-home/network.yml
+++ b/inventory/group_vars/chaos-at-home/network.yml
@@ -83,6 +83,7 @@ network_zones:
- 195.58.161.122
offsets:
ch-apps: 1
+ ch-apt: 7
ch-http-proxy: 8
ch-imap-proxy: 9
ch-vpn: 10
diff --git a/inventory/host_vars/ch-apt.yml b/inventory/host_vars/ch-apt.yml
new file mode 100644
index 00000000..c6260c54
--- /dev/null
+++ b/inventory/host_vars/ch-apt.yml
@@ -0,0 +1,39 @@
+---
+install_jumphost: ch-jump
+
+install:
+ vm:
+ memory: 2G
+ numcpus: 2
+ autostart: True
+ disks:
+ primary: /dev/sda
+ scsi:
+ sda:
+ type: zfs
+ name: root
+ size: 10g
+ sdb:
+ type: zfs
+ name: data
+ size: 20g
+ properties:
+ 'syncoid:sync': 'false'
+ 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 | ansible.utils.ipaddr(network_zones.svc.offsets[inventory_hostname]) }}"
+ gateway: "{{ network_zones.svc.gateway }}"
+ static_routes:
+ - destination: "{{ network_zones.lan.prefix }}"
+ gateway: "{{ network_zones.svc.prefix | ansible.utils.ipaddr(network_zones.svc.offsets['ch-gw-lan']) | ansible.utils.ipaddr('address') }}"
+ interfaces:
+ - *_network_primary_
diff --git a/inventory/hosts.ini b/inventory/hosts.ini
index 4ab98ab6..b6cbaa4e 100644
--- a/inventory/hosts.ini
+++ b/inventory/hosts.ini
@@ -26,6 +26,7 @@ ch-equinox-t450s host_name=equinox-t450s
ch-chromebook host_name=chromebook
ch-prometheus host_name=prometheus
ch-apps host_name=apps
+ch-apt host_name=apt
ch-http-proxy host_name=http-proxy
ch-imap-proxy host_name=imap-proxy
ch-prometheus-legacy host_name=prometheus
@@ -378,6 +379,7 @@ vmhost-ch-phoebe-guests
[vmhost-ch-prometheus-guests]
ch-apps
+ch-apt
ch-http-proxy
ch-imap-proxy
ch-prometheus-legacy