-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This mode allows to process template resources and run check_cmd on the result without updating target files nor running reload_cmd. This mode is useful to run monitoring checks where it's nice to be able to detect problems with the templates at rendering and application level.
- Loading branch information
Showing
6 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Dry-Run Mode | ||
|
||
When in dry-run mode target configuration files will not be modified but `check_cmd` will be executed and execution returns error if the execution of `check_cmd` fails. | ||
|
||
This mode behaves like `noop` mode but adds the execution of the `check_cmd` command. | ||
|
||
Note: dry-run mode *does not* update target and *does not* run `reload_cmd`. | ||
|
||
## Usage | ||
|
||
### commandline flag | ||
|
||
``` | ||
confd -dry-run | ||
``` | ||
|
||
### configuration file | ||
|
||
``` | ||
dry-run = true | ||
``` | ||
|
||
### Example | ||
|
||
``` | ||
confd -onetime -dry-run | ||
``` | ||
|
||
- | ||
|
||
``` | ||
2016-06-09T15:22:28-03:00 confd[29789]: INFO /tmp/myconfig.conf has md5sum 5fc1bd8022b5cbb5aca50b74817fa9c9 should be 7cfb29f5029fc9502f58665d66ce1c6c | ||
2016-06-09T15:22:28-03:00 confd[29789]: WARNING Dry-run mode enabled. /tmp/myconfig.conf will not be modified | ||
``` |
This file contains 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