summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ele-mur.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-06-22 01:12:15 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-06-22 01:12:15 +0200
commitb13af9ddfd01117b350243dd1cc483a35a420611 (patch)
tree6d6faee4278235ee79fb3ee0c2a18729e5715b19 /inventory/host_vars/ele-mur.yml
parentmove r3-cccamp19 stuff to _graveyard_, introduce new kvm groups (diff)
all vm hosts/guests use the new network config schema
Diffstat (limited to 'inventory/host_vars/ele-mur.yml')
-rw-r--r--inventory/host_vars/ele-mur.yml22
1 files changed, 10 insertions, 12 deletions
diff --git a/inventory/host_vars/ele-mur.yml b/inventory/host_vars/ele-mur.yml
index 88e3b0ed..b7d4d38e 100644
--- a/inventory/host_vars/ele-mur.yml
+++ b/inventory/host_vars/ele-mur.yml
@@ -5,11 +5,8 @@ ssh_users_root:
apt_repo_provider: ffgraz
-_vm_host_: ch-atlas
-
install:
vm:
- host: "{{ _vm_host_ }}"
mem: 1024
numcpu: 1
autostart: False
@@ -18,7 +15,7 @@ install:
scsi:
sda:
type: lvm
- vg: "{{ hostvars[_vm_host_].host_name }}"
+ vg: "{{ hostvars[vm_host.name].host_name }}"
lv: "{{ inventory_hostname }}"
size: 5g
interfaces:
@@ -30,14 +27,15 @@ install:
mac: 52:54:00:37:fd:8b
network:
- nameservers: "{{ hostvars[_vm_host_].vm_host.network.dns }}"
+ nameservers: "{{ 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 }}"
+ 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_