Use --no-random-sleep-on-renew during check#71
Conversation
|
Best reviewed: commit by commit
Optimal code review plan
|
|
@anderbubble, thanks for this PR. Mind you amend your commit message so it passes the lint checks and follows the guidelines for commit messages? I'll merge this as soon as it passes the checks. Regarding your other comment about the Any contribution will be welcome! |
|
@anderbubble To pass the @javierbertoli If you want, we can just do this directly via. the |
|
I'll tend to it right now. |
letsencrypt is consistently the longest state in my configuration, and apparently because of the random delay introduced when renewing non-interactively. Conceivably this could be made optional using a pillar variable; but, for now, I'll just disable the random sleep, at least during dry-run.
1efc4af to
07cbc3b
Compare
|
Thanks, @anderbubble! |
|
🎉 This PR is included in version 0.20.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
letsencrypt is consistently the longest state in my configuration, and apparently because of the random delay introduced when renewing non-interactively. Conceivably this could be made optional using a pillar variable; but, for now, I'll just disable the random sleep, at least during dry-run.
That said, I am left wondering whether
check_letsencrypt_cert.shandrenew_letsencrypt_cert.shmight should just be the commands used even when using packages. It seems, for example, thatcheck_letsencrypt_cert.shchecks the installed certs statically, without interaction with an external service, which seems preferable.PR progress checklist (to be filled in by reviewers)
What type of PR is this?
Primary type
[build]Changes related to the build system[chore]Changes to the build process or auxiliary tools and libraries such as documentation generation[ci]Changes to the continuous integration configuration[feat]A new feature[fix]A bug fix[perf]A code change that improves performance[refactor]A code change that neither fixes a bug nor adds a feature[revert]A change used to revert a previous commit[style]Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)Secondary type
[docs]Documentation changes[test]Adding missing or correcting existing testsDoes this PR introduce a
BREAKING CHANGE?No.
Related issues and/or pull requests
n/a
Describe the changes you're proposing
Use
--no-random-sleep-on-renewduringcheck_cert_cmdto minimize the time the state takes to run.Pillar / config required to test the proposed changes
any valid effective configuration
Debug log showing how the proposed changes work
The random sleep can be seen in
/var/log/letsencrypt/letsencrypt.log(or similar).Documentation checklist
README(e.g.Available states).pillar.example.Testing checklist
state_top).Additional context