summaryrefslogtreecommitdiff
path: root/inventory/host_vars
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-05-22 22:01:22 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-05-22 22:01:22 +0200
commit9d971a12b37f75fdaee22b8a6870091c45ea0a72 (patch)
tree280052184b66de91e083ffd97cd55ca317444b86 /inventory/host_vars
parentupdate my gpg key (diff)
ch-apt: base install
Diffstat (limited to 'inventory/host_vars')
-rw-r--r--inventory/host_vars/ch-apt.yml39
1 files changed, 39 insertions, 0 deletions
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_