summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dan/ele-gwhetzner.yml8
-rw-r--r--inventory/host_vars/ele-gwhetzner.yml33
-rw-r--r--inventory/host_vars/sk-2019vm.yml2
-rw-r--r--inventory/hosts.ini2
4 files changed, 45 insertions, 0 deletions
diff --git a/dan/ele-gwhetzner.yml b/dan/ele-gwhetzner.yml
new file mode 100644
index 00000000..57e35e41
--- /dev/null
+++ b/dan/ele-gwhetzner.yml
@@ -0,0 +1,8 @@
+---
+- name: Basic Setup
+ hosts: ele-gwhetzner
+ roles:
+ - role: base
+ - role: sshd
+ - role: zsh
+ - role: wireguard/base
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 }}"
diff --git a/inventory/host_vars/sk-2019vm.yml b/inventory/host_vars/sk-2019vm.yml
index 511ad7a1..d9ac8c56 100644
--- a/inventory/host_vars/sk-2019vm.yml
+++ b/inventory/host_vars/sk-2019vm.yml
@@ -26,6 +26,7 @@ vm_host:
s2-k8s-test4: 3
sk-torrent: 136
emc-master: 137
+ ele-gwhetzner: 138
ch-mimas: 142
sk-testvm: 253
nat: yes
@@ -34,6 +35,7 @@ vm_host:
offsets:
sk-torrent: 0
emc-master: 1
+ ele-gwhetzner: 2
ch-mimas: 6
sk-testvm: 7
diff --git a/inventory/hosts.ini b/inventory/hosts.ini
index a74d4744..a9e78b1d 100644
--- a/inventory/hosts.ini
+++ b/inventory/hosts.ini
@@ -188,6 +188,7 @@ ele-laptop host_name=elevatop
ele-orpheum
ele-tub
ele-gwmur
+ele-gwhetzner
[elevate:children]
ele-ap
@@ -236,6 +237,7 @@ sk-torrent
ch-mimas
s2-k8s-test[0:4]
ele-gwmur
+ele-gwhetzner
[hroot]