summaryrefslogtreecommitdiff
path: root/inventory/host_vars
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-04-23 19:11:16 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-04-23 19:11:16 +0200
commitb16e762f112f6d114ce6ed314e55fe09bdc51247 (patch)
treed233bd8eb2ed60b7cef4fb3a93918a605b9b5c2d /inventory/host_vars
parentdeply onlyoffice on sk-tomnext-nc (diff)
base install for sgg-icecast
Diffstat (limited to 'inventory/host_vars')
-rw-r--r--inventory/host_vars/sgg-icecast.yml32
1 files changed, 32 insertions, 0 deletions
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 }}"