From d9beff889abecf39f396835ed258a2ce9f6b5f52 Mon Sep 17 00:00:00 2001 From: domel5 <98956907+domel5@users.noreply.github.com> Date: Wed, 19 Apr 2023 16:21:21 +0200 Subject: [PATCH] Run deploy on certificate renewal --- certbot_vault/plugin.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/certbot_vault/plugin.py b/certbot_vault/plugin.py index 814efee..2b05c09 100644 --- a/certbot_vault/plugin.py +++ b/certbot_vault/plugin.py @@ -189,3 +189,11 @@ def config_test(self): # pylint: disable=missing-docstring,no-self-use def restart(self): # pylint: disable=missing-docstring,no-self-use pass # pragma: no cover + + def renew_deploy(self, lineage, *args, **kwargs): # pylint: disable=missing-docstring,no-self-use,unused-argument + """ + Renew certificates when calling `certbot renew` + """ + self.deploy_cert(lineage.names()[0], lineage.cert_path, lineage.key_path, lineage.chain_path, lineage.fullchain_path) + +interfaces.RenewDeployer.register(VaultInstaller)