summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-hroottest-obsd.yml
diff options
context:
space:
mode:
Diffstat (limited to 'inventory/host_vars/ch-hroottest-obsd.yml')
-rw-r--r--inventory/host_vars/ch-hroottest-obsd.yml19
1 files changed, 10 insertions, 9 deletions
diff --git a/inventory/host_vars/ch-hroottest-obsd.yml b/inventory/host_vars/ch-hroottest-obsd.yml
index 292e8101..61476370 100644
--- a/inventory/host_vars/ch-hroottest-obsd.yml
+++ b/inventory/host_vars/ch-hroottest-obsd.yml
@@ -1,10 +1,12 @@
---
-vm_host: ch-hroottest
+_vm_host_: ch-hroottest
install:
- host: "{{ vm_host }}"
- mem: 1024
- numcpu: 1
+ vm:
+ host: "{{ _vm_host_ }}"
+ mem: 1024
+ numcpu: 1
+ autostart: True
disks:
primary: /dev/vda
virtio:
@@ -15,13 +17,12 @@ install:
interfaces:
- bridge: br-public
name: vio0
- autostart: True
network:
- nameservers: "{{ hostvars[vm_host].vm_host.network.dns }}"
+ nameservers: "{{ hostvars[_vm_host_].vm_host.network.dns }}"
domain: "{{ host_domain }}"
primary:
interface: vio0
- ip: "{{ hostvars[vm_host].vm_host.network.bridges.public.prefix | ipaddr(hostvars[vm_host].vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address') }}"
- mask: "{{ hostvars[vm_host].vm_host.network.bridges.public.prefix | ipaddr('netmask') }}"
- gateway: "{{ hostvars[vm_host].vm_host.network.bridges.public.prefix | ipaddr('address') }}"
+ ip: "{{ hostvars[_vm_host_].vm_host.network.bridges.public.prefix | ipaddr(hostvars[_vm_host_].vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address') }}"
+ mask: "{{ hostvars[_vm_host_].vm_host.network.bridges.public.prefix | ipaddr('netmask') }}"
+ gateway: "{{ hostvars[_vm_host_].vm_host.network.bridges.public.prefix | ipaddr('address') }}"