Skip to content

Commit

Permalink
Run deploy on certificate renewal
Browse files Browse the repository at this point in the history
  • Loading branch information
domel5 authored Apr 19, 2023
1 parent 0a91c60 commit d9beff8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions certbot_vault/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit d9beff8

Please sign in to comment.