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-atlas.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 inventory/host_vars/ch-testvm-atlas.yml (limited to 'inventory/host_vars/ch-testvm-atlas.yml') diff --git a/inventory/host_vars/ch-testvm-atlas.yml b/inventory/host_vars/ch-testvm-atlas.yml new file mode 100644 index 00000000..e86eb632 --- /dev/null +++ b/inventory/host_vars/ch-testvm-atlas.yml @@ -0,0 +1,32 @@ +--- +install: + vm: + memory: 1G + numcpus: 1 + autostart: False + disks: + primary: /dev/sda + scsi: + sda: + type: lvm + vg: "{{ hostvars[vm_host.name].host_name }}" + lv: "{{ inventory_hostname }}" + size: 5g + interfaces: + - bridge: br-public + name: primary0 + mac: 52:54:00:42:e6:df + +network: + nameservers: "{{ vm_host.network.dns }}" + domain: "{{ host_domain }}" + systemd_link: + interfaces: "{{ install.interfaces }}" + primary: &_network_primary_ + name: primary0 + address: "{{ vm_host.network.bridges.public.prefix | ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address/prefix') }}" + gateway: "{{ vm_host.network.bridges.public.gateway }}" + address6: "{{ vm_host.network.bridges.public.prefix6 | ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address/prefix') }}" + gateway6: "{{ vm_host.network.bridges.public.gateway6 }}" + interfaces: + - *_network_primary_ -- cgit v1.2.3