From a37913ecac336d54c3e75ca5046677efb67d2013 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 5 Dec 2020 20:36:20 +0100 Subject: cleanup ch-testvm* and make common playbook work in any case --- inventory/host_vars/ch-testvm-prometheus.yml | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 inventory/host_vars/ch-testvm-prometheus.yml (limited to 'inventory/host_vars/ch-testvm-prometheus.yml') diff --git a/inventory/host_vars/ch-testvm-prometheus.yml b/inventory/host_vars/ch-testvm-prometheus.yml new file mode 100644 index 00000000..597cd134 --- /dev/null +++ b/inventory/host_vars/ch-testvm-prometheus.yml @@ -0,0 +1,33 @@ +--- +install_jumphost: ch-jump + +install: + vm: + memory: 1G + numcpus: 1 + autostart: False + disks: + primary: /dev/sda + scsi: + sda: + type: zfs + name: root + size: 5g + 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