Evil Ham
a696f3cf00
This would fix #839 Certbot uses locking [1] even for read-only operations and does not properly use exit codes, which means that sometimes it would print: "Another instance of Certbot is already running" and exit with success. However, the previous explorers would take that as the certificate being absent and would trigger code generation. The issue was made worse by having many explorers running certbot, so for N certificates, we'd run certbot N*4 times, potentially "in parallel". [1]: https://certbot.eff.org/docs/using.html#id5 This patch joins all explorers in one to avoid starting multiple remote python processes and uses a cdist-specific lock in /tmp/certbot.cdist.lock with a 60 seconds timeout. It has been tested with certbot 0.31.0 and 0.17 that the: from certbot.main import main trick works. It is somewhat well documented so it can be somewhat relied upon. |
||
---|---|---|
.. | ||
explorer | ||
manifest | ||
type | ||
.gitignore | ||
README |
This is a sample configuration that can be used as an example for /etc/cdist. For instance: [root@kr etc]# ln -s ~nico/p/cdist/conf/ /etc/cdist