From 1a1b0224b2bd0306a27c14b7af1d0238d6315e85 Mon Sep 17 00:00:00 2001
From: Leonard Penzer <leonard@penzer.de>
Date: Sun, 15 Jun 2025 21:45:52 +0200
Subject: [PATCH] make prometheus01 a revproxy

---
 host_vars/prometheus01.vm.freifunk-stuttgart.de/revproxy | 7 +++++++
 host_vars/prometheus01.vm.freifunk-stuttgart.de/ssh      | 2 ++
 inventory/role_revproxy                                  | 1 +
 3 files changed, 10 insertions(+)
 create mode 100644 host_vars/prometheus01.vm.freifunk-stuttgart.de/revproxy
 create mode 100644 host_vars/prometheus01.vm.freifunk-stuttgart.de/ssh

diff --git a/host_vars/prometheus01.vm.freifunk-stuttgart.de/revproxy b/host_vars/prometheus01.vm.freifunk-stuttgart.de/revproxy
new file mode 100644
index 0000000..3dfde3e
--- /dev/null
+++ b/host_vars/prometheus01.vm.freifunk-stuttgart.de/revproxy
@@ -0,0 +1,7 @@
+---
+letsencrypt_account_email: "hostmaster@freifunk-stuttgart.de"
+letsencrypt_acme_directory: "https://acme-v02.api.letsencrypt.org/directory"
+vhosts:
+  - domain: prometheus01.vm.freifunk-stuttgart.de
+    backend: "http://127.0.0.1:9090/"
+    type: proxy
diff --git a/host_vars/prometheus01.vm.freifunk-stuttgart.de/ssh b/host_vars/prometheus01.vm.freifunk-stuttgart.de/ssh
new file mode 100644
index 0000000..a74af17
--- /dev/null
+++ b/host_vars/prometheus01.vm.freifunk-stuttgart.de/ssh
@@ -0,0 +1,2 @@
+---
+ssh_disable_password_login: yes
diff --git a/inventory/role_revproxy b/inventory/role_revproxy
index d7b6d87..2a9d66b 100644
--- a/inventory/role_revproxy
+++ b/inventory/role_revproxy
@@ -4,3 +4,4 @@ role_revproxy:
     revproxy-05.vm.freifunk-stuttgart.de:
     revproxy-03.vm.freifunk-stuttgart.de:
     revproxy-z10a.vm.freifunk-stuttgart.de:
+    prometheus01.vm.freifunk-stuttgart.de:
-- 
GitLab