cdist configuration management Latest manual: https://www.cdi.st/manual/latest/ Home page: https://www.cdi.st
Find a file
Evil Ham a696f3cf00 [__letsencrypt_cert] Revamp explorers, add locking.
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.
2021-05-10 12:10:00 +02:00
bin [bin/cdist] Fix Python version check 2021-04-17 09:57:10 +02:00
cdist [__letsencrypt_cert] Revamp explorers, add locking. 2021-05-10 12:10:00 +02:00
completions Implement preos 2019-09-20 07:15:37 +02:00
configuration Restrict colored_output value to always/never/auto. 2020-06-06 13:45:31 +02:00
docs ++changelog 2021-04-26 21:27:15 +02:00
hacking Add timing hack / test1 2019-10-18 19:45:19 +02:00
other Fix typo in cdist-ci image README 2020-04-21 08:15:51 +02:00
.gitattributes Update build helper script in .gitattributes 2020-11-14 09:59:30 +01:00
.gitignore Rm cdist-type prefix and man page ref from docs 2019-12-06 10:00:32 +01:00
.gitlab-ci.yml [.gitlab-ci.yml] Make version before other targets 2020-11-11 14:49:04 +01:00
LICENSE Add LICENSE 2019-12-01 14:23:02 +01:00
Makefile Fix building man pages 2020-07-29 11:31:12 +02:00
MANIFEST.in add package data info 2012-10-29 22:18:32 +01:00
PKGBUILD.in Update old homepage residual refs and non working git protocol 2019-05-09 08:26:42 +02:00
README-maintainers s/build-helper/cdist-build-helper/ 2020-10-18 17:13:22 +03:00
README.md README: add bits about cdist-contrib 2020-04-27 16:30:52 +03:00
setup.py [setup.py] Add cdist.scan to packages 2020-12-02 19:54:41 +01:00

cdist

cdist is a usable configuration management system.

It adheres to the KISS principle and is being used in small up to enterprise grade environments.

For more information have a look at homepage or at docs/src for manual in reStructuredText format.

Contributing

Merge/Pull requests can be made in both upstream GitLab (managed by ungleich) and GitHub project.

Issues can be made and other project management activites happen only in GitLab (needs ungleich account).

For community-maintained types there is cdist-contrib project.

Participating

IRC: #cdist @ freenode

Matrix: #cdist:ungleich.ch

Mattermost: https://chat.ungleich.ch/ungleich/channels/cdist