diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-06-11 17:53:55 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-06-12 00:29:17 +0200 |
commit | 607bc14c38dcd0b416f4caefdcb41b0a74012a55 (patch) | |
tree | c7c7a8a3a3f6add10f44b46ab8c01d5093a5cc6f /inventory/host_vars/ele-gwhetzner.yml | |
parent | sk-cloudia: update nextcloud and jitsi-meet (diff) |
harmonize vm install config
Diffstat (limited to 'inventory/host_vars/ele-gwhetzner.yml')
-rw-r--r-- | inventory/host_vars/ele-gwhetzner.yml | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/inventory/host_vars/ele-gwhetzner.yml b/inventory/host_vars/ele-gwhetzner.yml index 98f5fb6e..2519ab94 100644 --- a/inventory/host_vars/ele-gwhetzner.yml +++ b/inventory/host_vars/ele-gwhetzner.yml @@ -1,10 +1,12 @@ --- -vm_host: sk-2019vm +_vm_host_: sk-2019vm install: - host: "{{ vm_host }}" - mem: 1024 - numcpu: 1 + vm: + host: "{{ _vm_host_ }}" + mem: 1024 + numcpu: 1 + autostart: False disks: primary: /dev/sda scsi: @@ -15,19 +17,18 @@ install: interfaces: - bridge: br-public name: primary0 - 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.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 }}" |