From 477b6b1905bf750196d62166d1165c6e75cea6d7 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 10 Feb 2021 20:54:20 +0100 Subject: add host ch-vpn --- inventory/host_vars/ch-vpn.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 inventory/host_vars/ch-vpn.yml (limited to 'inventory/host_vars/ch-vpn.yml') diff --git a/inventory/host_vars/ch-vpn.yml b/inventory/host_vars/ch-vpn.yml new file mode 100644 index 00000000..193d7417 --- /dev/null +++ b/inventory/host_vars/ch-vpn.yml @@ -0,0 +1,33 @@ +--- +install_jumphost: ch-jump + +install: + vm: + memory: 2G + numcpus: 2 + autostart: yes + disks: + primary: /dev/sda + scsi: + sda: + type: zfs + name: root + size: 20g + 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_ -- cgit v1.2.3