From ecf615fa19313911332b19479d0f2961cee40163 Mon Sep 17 00:00:00 2001 From: David Kilias Date: Wed, 19 Oct 2022 18:49:29 +0200 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=F0=9F=8E=89=20add=20uptime-kuma=20?= =?UTF-8?q?container=20to=20pottwal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pottwal.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/pottwal.yml b/pottwal.yml index aa83d0b..e200faa 100644 --- a/pottwal.yml +++ b/pottwal.yml @@ -27,6 +27,8 @@ influxdb_host_port: 8088 influxdb_image: influxdb:2.4-alpine + uptimekuma_host_port: 8085 + roles: - role: docker_setup vars: @@ -48,6 +50,7 @@ deploy_cert_hook: "docker exec prosody prosodyctl --root cert import ${DOMAIN} /var/lib/dehydrated/certs" - name: redmine.n39.eu - name: influx.n39.eu + - name: uptime.n39.eu - role: penguineer.dehydrated_cron - role: dd24-dyndns-cron # variables are set in the inventory @@ -356,5 +359,31 @@ site_name: redmine.n39.eu proxy_port: "{{ redmine_host_port }}" + - name: Ensure the uptime-kuma directories exist + file: + path: "{{ item }}" + state: directory + with_items: + - "{{ data_dir }}/uptimekuma" + + - name: Ensure container for uptime-kuma is running + docker_container: + name: uptime-kuma + image: "louislam/uptime-kuma:1" + pull: true + state: started + detach: yes + ports: + - "127.0.0.1:{{ uptimekuma_host_port }}:3001" + restart_policy: unless-stopped + volumes: + - "{{ data_dir }}/uptime-kuma:/app/data" + + - name: Setup proxy site uptime.n39.eu + include_role: + name: setup-http-site-proxy + vars: + site_name: uptime.n39.eu + proxy_port: "{{ uptimekuma_host_port }}" handlers: From 5b47cd83f1212b1e1d2ae20aae3f0cd3fb05db1e Mon Sep 17 00:00:00 2001 From: David Kilias Date: Fri, 21 Oct 2022 14:35:01 +0200 Subject: [PATCH 2/3] feat: add uptime.n39.eu to holmium --- holmium.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/holmium.yml b/holmium.yml index 92ba397..a126c2e 100644 --- a/holmium.yml +++ b/holmium.yml @@ -30,6 +30,7 @@ - name: conference.jabber.n39.eu - name: influx.n39.eu local: true + - name: uptime.n39.eu - server: radon hosts: - name: nodered.n39.eu From 4fe8b8bb78781c6d30b88309f364969514914608 Mon Sep 17 00:00:00 2001 From: David Kilias Date: Fri, 21 Oct 2022 14:35:25 +0200 Subject: [PATCH 3/3] fix indentation in pottwal playbook --- pottwal.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pottwal.yml b/pottwal.yml index e200faa..c51d5b9 100644 --- a/pottwal.yml +++ b/pottwal.yml @@ -50,7 +50,7 @@ deploy_cert_hook: "docker exec prosody prosodyctl --root cert import ${DOMAIN} /var/lib/dehydrated/certs" - name: redmine.n39.eu - name: influx.n39.eu - - name: uptime.n39.eu + - name: uptime.n39.eu - role: penguineer.dehydrated_cron - role: dd24-dyndns-cron # variables are set in the inventory