diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-02-28 22:31:09 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-02-28 22:31:09 +0100 |
commit | 7dc61b62604f66231bb7296aa20e9fa82e05a2ee (patch) | |
tree | 6b8a3ee5fbf969e12421e59cbd627d867ab0932b /inventory/host_vars/ele-gwhetzner.yml | |
parent | added new vm el-gwmur (diff) |
added new vm el-gwhetzner
Diffstat (limited to 'inventory/host_vars/ele-gwhetzner.yml')
-rw-r--r-- | inventory/host_vars/ele-gwhetzner.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/inventory/host_vars/ele-gwhetzner.yml b/inventory/host_vars/ele-gwhetzner.yml new file mode 100644 index 00000000..254f0b8a --- /dev/null +++ b/inventory/host_vars/ele-gwhetzner.yml @@ -0,0 +1,33 @@ +--- +vm_host: sk-2019vm + +install: + host: "{{ vm_host }}" + mem: 1024 + numcpu: 1 + disks: + primary: /dev/sda + scsi: + sda: + type: zfs + pool: storage + name: "{{ inventory_hostname }}" + size: 5g + interfaces: + - bridge: br-public + name: primary0 + autostart: False + +network: + 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] }}" + +external_ip: "{{ network.primary.overlay }}" |