Unify cron command w/ variable, allowing user specifciation#27
Open
eengstrom wants to merge 7 commits intoclutterbox:masterfrom
Open
Unify cron command w/ variable, allowing user specifciation#27eengstrom wants to merge 7 commits intoclutterbox:masterfrom
eengstrom wants to merge 7 commits intoclutterbox:masterfrom
Conversation
The latest `dns-lexicon` won't install on that platform.
Defaults to `"{{ dehydrated_install_root }}/dehydrated --cron"`
There were subtle variations on the call to this scattered through the
code, and this way one may change the command, or embed into a pipe to
redirect output as needed. For example:
- Don't give up on first failure:
```
dehydrated_renew_command: "{{ dehydrated_install_root }}/dehydrated
--cron --keep-going"
```
- More complicated example to redirect output to `syslog`:
```
dehydrated_renew_command: "bash -c '({{ dehydrated_install_root
}}/dehydrated -c -g | logger -t dehydrated -p local7.info) 2>&1 | logger
-t dehydrated -p local7.error -s'"
```
... although the latter is somewhat contrived and one would probably be
better served by using a `systemd` timer rather than a cron job, which
would then do effectively the same thing.
8bb1aa9 to
440b152
Compare
|
Can we get this merged? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
builds on #25 (for testing) and #19 (simply to break changes into smaller chunks). Probably want to merge those first, in that order.
See rationale and comments in #26
fixes #26