forked from ungleich-public/cdist
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. |
||
---|---|---|
.. | ||
conf | ||
core | ||
exec | ||
preos/debootstrap | ||
scan | ||
sphinxext | ||
test | ||
util | ||
__init__.py | ||
argparse.py | ||
autil.py | ||
banner.py | ||
config.py | ||
configuration.py | ||
emulator.py | ||
flock.py | ||
hostsource.py | ||
info.py | ||
install.py | ||
integration.py | ||
inventory.py | ||
log.py | ||
message.py | ||
mputil.py | ||
preos.py | ||
shell.py |