summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-testvm.yml
diff options
context:
space:
mode:
Diffstat (limited to 'inventory/host_vars/ch-testvm.yml')
-rw-r--r--inventory/host_vars/ch-testvm.yml25
1 files changed, 13 insertions, 12 deletions
diff --git a/inventory/host_vars/ch-testvm.yml b/inventory/host_vars/ch-testvm.yml
index 73702a95..24455db5 100644
--- a/inventory/host_vars/ch-testvm.yml
+++ b/inventory/host_vars/ch-testvm.yml
@@ -1,35 +1,36 @@
---
apt_repo_provider: ffgraz
-vm_host: ch-atlas
+_vm_host_: ch-atlas
install:
- host: "{{ vm_host }}"
- mem: 1024
- numcpu: 1
+ vm:
+ host: "{{ _vm_host_ }}"
+ mem: 1024
+ numcpu: 1
+ autostart: False
disks:
primary: /dev/sda
scsi:
sda:
type: lvm
- vg: "{{ hostvars[vm_host].host_name }}"
+ vg: "{{ hostvars[_vm_host_].host_name }}"
lv: "{{ inventory_hostname }}"
size: 5g
interfaces:
- bridge: br-public
name: primary0
mac: 52:54:00:42:e6:df
- autostart: False
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.gateway }}"
- prefix6: "{{ hostvars[vm_host].vm_host.network.bridges.public.prefix6 | ipaddr(hostvars[vm_host].vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
- gateway6: "{{ hostvars[vm_host].vm_host.network.bridges.public.gateway6 }}"
+ 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.gateway }}"
+ prefix6: "{{ hostvars[_vm_host_].vm_host.network.bridges.public.prefix6 | ipaddr(hostvars[_vm_host_].vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
+ gateway6: "{{ hostvars[_vm_host_].vm_host.network.bridges.public.gateway6 }}"