From b16e762f112f6d114ce6ed314e55fe09bdc51247 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 23 Apr 2021 19:11:16 +0200 Subject: base install for sgg-icecast --- inventory/host_vars/sgg-icecast.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 inventory/host_vars/sgg-icecast.yml (limited to 'inventory/host_vars') diff --git a/inventory/host_vars/sgg-icecast.yml b/inventory/host_vars/sgg-icecast.yml new file mode 100644 index 00000000..10ceded1 --- /dev/null +++ b/inventory/host_vars/sgg-icecast.yml @@ -0,0 +1,32 @@ +--- +install: + vm: + memory: 2G + numcpus: 2 + autostart: False + disks: + primary: /dev/sda + scsi: + sda: + type: zfs + name: root + size: 10g + interfaces: + - bridge: br-public + name: primary0 + +network: + nameservers: "{{ vm_host.network.dns }}" + domain: "{{ host_domain }}" + systemd_link: + interfaces: "{{ install.interfaces }}" + 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.prefix | ipaddr(vm_host.network.bridges.public.offsets[vm_host.name]) | ipaddr('address') }}" + template: overlay + overlay: "{{ (vm_host.network.bridges.public.overlays.default.prefix | ipaddr(vm_host.network.bridges.public.overlays.default.offsets[inventory_hostname])).split('/')[0] }}" + interfaces: + - *_network_primary_ + +external_ip: "{{ network.primary.overlay }}" -- cgit v1.2.3