summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2024-02-21 21:22:54 -0500
committerJesse Luehrs <doy@tozt.net>2024-02-21 21:22:54 -0500
commit9b041cb849e37e830ede9f95a2034b0a538cebfb (patch)
tree9e4cf1661177e871707a2fce1d80af7ba918f4f5
parentfe6dc47624217a439cc214a00d5d0e7d583a9b66 (diff)
downloadpuppet-tozt-9b041cb849e37e830ede9f95a2034b0a538cebfb.tar.gz
puppet-tozt-9b041cb849e37e830ede9f95a2034b0a538cebfb.zip
fix config for 0.22 (0.23 isn't released yet)
-rwxr-xr-xmodules/headscale/facts.d/bind_address8
-rw-r--r--modules/headscale/templates/config.yaml2
2 files changed, 0 insertions, 10 deletions
diff --git a/modules/headscale/facts.d/bind_address b/modules/headscale/facts.d/bind_address
deleted file mode 100755
index 2e8236a..0000000
--- a/modules/headscale/facts.d/bind_address
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-set -eu
-set -o pipefail
-
-address="$(curl --connect-timeout 1 -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address || true)"
-if [ -n "$address" ]; then
- printf "bind_address=%s" "$address"
-fi
diff --git a/modules/headscale/templates/config.yaml b/modules/headscale/templates/config.yaml
index 134f331..16512d4 100644
--- a/modules/headscale/templates/config.yaml
+++ b/modules/headscale/templates/config.yaml
@@ -11,8 +11,6 @@ derp:
server:
enabled: true
stun_listen_addr: 0.0.0.0:3478
- private_key_path: <%= @data_dir %>/derp_server_private.key
- ipv4: <%= @bind_address %>
disable_check_updates: true
db_type: sqlite3
db_path: <%= @data_dir %>/db.sqlite