1 个不稳定版本
使用旧的 Rust 2015
0.4.0 | 2017年6月24日 |
---|
#38 在 #ops
25KB
587 行
salt-compressor
压缩 saltstack-runs 的输出,以便更容易地审查大量服务器发生的变化。
用法
salt-compressor 0.4.0
Alexander Thaller <alexander.thaller@trivago.com>
Compress the output of saltstack-runs to make it easier to review changes that happen to a lot of servers.
USAGE:
salt-compressor [FLAGS] [OPTIONS] --input <path>
FLAGS:
-F, --filter_failed
Only print states that failed
-S, --filter_succeeded
Only print states that succeeded
-U, --filter_unchanged
Only print states that have outputs
-h, --help
Prints help information
-n, --no_save_file
Do not write save file on error
-V, --version
Prints version information
OPTIONS:
-C, --filter_command <regex>
Only print states that have commands that match the given regex [default: .*]
-O, --filter_output <regex>
Only print states that have outputs that match the given regex [default: .*]
-R, --filter_result <regex>
Only print states that have results that match the given regex [default: .*]
-i, --input <path>
Path to the input file. If input is '-' read from stdin
-l, --loglevel <level>
Loglevel to run under [default: info] [values: trace, debug, info, warn, error]
示例
salt '*' state.highstate -b 10 --static --out json test=true | salt-compressor -i -
“--static” 和 “--json” 标志非常重要。 static
将输出一种更容易解析的格式。 json
将当然以 JSON 格式输出一切。
依赖关系
~5–13MB
~154K SLoC