From 42eb600e6ebae7accb357d10d2cf697c34a0cab4 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Mon, 8 May 2023 18:29:39 +0200 Subject: [PATCH] feat: remotely trigger caladan's acme refresh --- narwhal/acme_renew/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/narwhal/acme_renew/Makefile b/narwhal/acme_renew/Makefile index 72ecea0..41aecef 100644 --- a/narwhal/acme_renew/Makefile +++ b/narwhal/acme_renew/Makefile @@ -1,10 +1,10 @@ WD=/var/lib/dags/acme_renew -.PHONY: all refresh_pg renew_certs caladan_sync +.PHONY: all refresh_pg renew_certs caladan_sync fugu_sync caladan_trigger NGINX_RELOAD=$(WD)/nginx_reload -all: renew_certs $(NGINX_RELOAD) refresh_pg +all: renew_certs caladan_trigger $(NGINX_RELOAD) refresh_pg ############################################################################### @@ -68,6 +68,9 @@ fugu_sync: renew_certs $(ACME_DIR)/ \ dags@fugu:$(ACME_DIR) +caladan_trigger: caladan_sync + ssh -i $(SSH_KEY) dags@caladan "doas make -C /srv/dags/caladan/acme_refresh" + ############################################################################### # Reload the nginx instance running on my reverse proxy docker-compose service # so that it uses the new certificates.