summaryrefslogtreecommitdiff
path: root/inventory/host_vars/sk-tomnext-hp.yml
diff options
context:
space:
mode:
Diffstat (limited to 'inventory/host_vars/sk-tomnext-hp.yml')
-rw-r--r--inventory/host_vars/sk-tomnext-hp.yml23
1 files changed, 13 insertions, 10 deletions
diff --git a/inventory/host_vars/sk-tomnext-hp.yml b/inventory/host_vars/sk-tomnext-hp.yml
index cfa26218..667cb76d 100644
--- a/inventory/host_vars/sk-tomnext-hp.yml
+++ b/inventory/host_vars/sk-tomnext-hp.yml
@@ -1,10 +1,12 @@
---
-vm_host: sk-tomnext
+_vm_host_: sk-tomnext
install:
- host: "{{ vm_host }}"
- mem: 8192
- numcpu: 4
+ vm:
+ host: "{{ _vm_host_ }}"
+ mem: 8192
+ numcpu: 4
+ autostart: True
disks:
primary: /dev/sda
scsi:
@@ -15,18 +17,19 @@ install:
interfaces:
- bridge: br-public
name: primary0
- autostart: True
+
+vm_guest_autologin_on_serial: no
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') }}"
- overlay: "{{ (hostvars[vm_host].vm_host.network.bridges.public.overlay.prefix | ipaddr(hostvars[vm_host].vm_host.network.bridges.public.overlay.offsets[inventory_hostname])).split('/')[0] }}"
+ 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') }}"
+ overlay: "{{ (hostvars[_vm_host_].vm_host.network.bridges.public.overlay.prefix | ipaddr(hostvars[_vm_host_].vm_host.network.bridges.public.overlay.offsets[inventory_hostname])).split('/')[0] }}"
external_ip: "{{ network.primary.overlay }}"