summaryrefslogtreecommitdiffstats
path: root/modules/tozt/manifests/headscale.pp
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2024-02-21 00:27:17 -0500
committerJesse Luehrs <doy@tozt.net>2024-02-21 00:27:17 -0500
commitec941f994fbc72ab9291e4fef39f167d17c0137e (patch)
tree4a2ccd33ae363961c446330212111c932d6d1f52 /modules/tozt/manifests/headscale.pp
parent5bfea3f6c1f7a99b36eb776d77c02d64059b9790 (diff)
downloadpuppet-tozt-ec941f994fbc72ab9291e4fef39f167d17c0137e.tar.gz
puppet-tozt-ec941f994fbc72ab9291e4fef39f167d17c0137e.zip
add an attempt at basic headscale configuration
Diffstat (limited to 'modules/tozt/manifests/headscale.pp')
-rw-r--r--modules/tozt/manifests/headscale.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/tozt/manifests/headscale.pp b/modules/tozt/manifests/headscale.pp
new file mode 100644
index 0000000..b337e3b
--- /dev/null
+++ b/modules/tozt/manifests/headscale.pp
@@ -0,0 +1,16 @@
+class tozt::headscale {
+ include tozt::certbot
+ include tozt::persistent
+
+ class { "headscale":
+ data_dir => "/media/persistent/headscale";
+ }
+
+ nginx::site {
+ "headscale-tls":
+ source => 'puppet:///modules/tozt/nginx/headscale-tls.conf',
+ require => Class['certbot'];
+ "headscale":
+ source => 'puppet:///modules/tozt/nginx/headscale.conf';
+ }
+}