File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Based on Hetzner's instructions:
2+ # https://docs.hetzner.com/cloud/floating-ips/persistent-configuration/#ubuntu-using-netplan
3+
4+ network :
5+ version : 2
6+ renderer : networkd
7+ ethernets :
8+ eth0 :
9+ addresses : ["${server_ip}/32"]
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ runcmd:
5353 log_content /var/run/reboot-required
5454 log_content /var/run/reboot-required.pkgs
5555
56- - ip addr add ${server_ip} dev eth0
56+ - netplan apply
5757
5858 - systemctl enable --now data-volume.service
5959
Original file line number Diff line number Diff line change 66 bootstrap = " ${ path . module } /bootstrap"
77
88 template_files = {
9+ " 60-static-ip.yaml" = " /etc/netplan/60-static-ip.yaml"
910 " umami.service" = " /etc/systemd/system/umami.service"
1011 " data-volume.service" = " /etc/systemd/system/data-volume.service"
1112 " docker-daemon.json" = " /etc/docker/daemon.json"
You can’t perform that action at this time.
0 commit comments