Skip to content

Comments

(#396) Add support for adding hooks after cert creation#405

Merged
bastelfreak merged 1 commit intovoxpupuli:masterfrom
bastelfreak:cleanup
Feb 10, 2026
Merged

(#396) Add support for adding hooks after cert creation#405
bastelfreak merged 1 commit intovoxpupuli:masterfrom
bastelfreak:cleanup

Conversation

@bastelfreak
Copy link
Member

certbot supports different hooks. They are executed during the certificate renewal. Those hooks are configured per-certificate. Previously you had to specify all hooks during the initial certificate creation. If a hook was added afterwards in Puppet, it was written to disk as a shell script, but it wasn't added to the configuration file. The config file wasn't managed with openvox at all, it was created by certbot. certbot has no cli options to update an existing config file. Because of that, we added an ini_setting resource to ensure that all hooks are added to the config file.

Fixes #396

@bastelfreak bastelfreak self-assigned this Feb 10, 2026
@bastelfreak bastelfreak added the bug Something isn't working label Feb 10, 2026
@bastelfreak
Copy link
Member Author

based on the code one could assume that this was already supported, so I labeled it as bug and not enhancement.

@bastelfreak bastelfreak force-pushed the cleanup branch 2 times, most recently from a4acbc8 to 8b3fc3e Compare February 10, 2026 14:07
certbot supports different hooks. They are executed during the
certificate renewal. Those hooks are configured per-certificate.
Previously you had to specify all hooks during the initial certificate
creation. If a hook was added afterwards in Puppet, it was written to
disk as a shell script, but it wasn't added to the configuration file.
The config file wasn't managed with openvox at all, it was created by
certbot. certbot has no cli options to update an existing config file.
Because of that, we added an ini_setting resource to ensure that all
hooks are added to the config file.

Fixes voxpupuli#396
Copy link

@Sharpie Sharpie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Moves some variable definitions earlier in the manifest, adds an ini_setting, and adds test cases 👍

@bastelfreak bastelfreak merged commit 9756f83 into voxpupuli:master Feb 10, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

certbot ignores changed hooks

2 participants