Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions website/infra/bootstrap/60-static-ip.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Based on Hetzner's instructions:
# https://docs.hetzner.com/cloud/floating-ips/persistent-configuration/#ubuntu-using-netplan

network:
version: 2
renderer: networkd
ethernets:
eth0:
addresses: ["${server_ip}/32"]
2 changes: 1 addition & 1 deletion website/infra/bootstrap/user_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ runcmd:
log_content /var/run/reboot-required
log_content /var/run/reboot-required.pkgs

- ip addr add ${server_ip} dev eth0
- netplan apply

- systemctl enable --now data-volume.service

Expand Down
1 change: 1 addition & 0 deletions website/infra/cloud_init.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ locals {
bootstrap = "${path.module}/bootstrap"

template_files = {
"60-static-ip.yaml" = "/etc/netplan/60-static-ip.yaml"
"umami.service" = "/etc/systemd/system/umami.service"
"data-volume.service" = "/etc/systemd/system/data-volume.service"
"docker-daemon.json" = "/etc/docker/daemon.json"
Expand Down