summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-testvm-phoebe.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-12-27 22:15:33 +0100
committerChristian Pointner <equinox@spreadspace.org>2021-12-27 22:15:33 +0100
commit07bcf8e86e0e11f0d2928e3451e151695f84b9a8 (patch)
treefa20c2c84187306240380e4a925712a017c4d97a /inventory/host_vars/ch-testvm-phoebe.yml
parentimplement vm/guest/network role for OpenBSD (diff)
add testvm for phoebe and fix switch port configs
Diffstat (limited to 'inventory/host_vars/ch-testvm-phoebe.yml')
-rw-r--r--inventory/host_vars/ch-testvm-phoebe.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/inventory/host_vars/ch-testvm-phoebe.yml b/inventory/host_vars/ch-testvm-phoebe.yml
new file mode 100644
index 00000000..880b4e06
--- /dev/null
+++ b/inventory/host_vars/ch-testvm-phoebe.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: 15g
+ 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') }}"