summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-hroottest-vm1.yml
diff options
context:
space:
mode:
Diffstat (limited to 'inventory/host_vars/ch-hroottest-vm1.yml')
-rw-r--r--inventory/host_vars/ch-hroottest-vm1.yml19
1 files changed, 10 insertions, 9 deletions
diff --git a/inventory/host_vars/ch-hroottest-vm1.yml b/inventory/host_vars/ch-hroottest-vm1.yml
index ccb3ca92..d3276efb 100644
--- a/inventory/host_vars/ch-hroottest-vm1.yml
+++ b/inventory/host_vars/ch-hroottest-vm1.yml
@@ -1,10 +1,12 @@
---
-vm_host: ch-hroottest
+_vm_host_: ch-hroottest
install:
- host: "{{ vm_host }}"
- mem: 4096
- numcpu: 4
+ vm:
+ host: "{{ _vm_host_ }}"
+ mem: 4096
+ numcpu: 4
+ autostart: True
disks:
primary: /dev/sda
scsi:
@@ -15,15 +17,14 @@ install:
interfaces:
- bridge: br-public
name: primary0
- autostart: True
network:
- nameservers: "{{ hostvars[vm_host].vm_host.network.dns }}"
+ nameservers: "{{ hostvars[_vm_host_].vm_host.network.dns }}"
domain: "{{ host_domain }}"
systemd_link:
interfaces: "{{ install.interfaces }}"
primary:
interface: primary0
- 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') }}"