Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexanderthaller/salt-compressor
Compress the output of saltstack-runs to make it easier to review changes that happen to a lot of servers.
https://github.com/alexanderthaller/salt-compressor
automation ops opsworks review-changes rust salt-compressor saltstack tool
Last synced: 3 months ago
JSON representation
Compress the output of saltstack-runs to make it easier to review changes that happen to a lot of servers.
- Host: GitHub
- URL: https://github.com/alexanderthaller/salt-compressor
- Owner: AlexanderThaller
- License: mit
- Created: 2017-03-04T13:52:45.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-03T11:27:14.000Z (almost 5 years ago)
- Last Synced: 2024-10-10T19:41:42.207Z (3 months ago)
- Topics: automation, ops, opsworks, review-changes, rust, salt-compressor, saltstack, tool
- Language: Rust
- Size: 54.7 KB
- Stars: 15
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# salt-compressor
Compress the output of saltstack-runs to make it easier to review changes that happen to a lot of servers.[![TravisCI Build Status](https://travis-ci.org/AlexanderThaller/salt-compressor.svg?branch=master)](https://travis-ci.org/AlexanderThaller/salt-compressor)
# Usage
```
salt-compressor 0.4.0
Alexander Thaller
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] --inputFLAGS:
-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 informationOPTIONS:
-C, --filter_command
Only print states that have commands that match the given regex [default: .*]-O, --filter_output
Only print states that have outputs that match the given regex [default: .*]-R, --filter_result
Only print states that have results that match the given regex [default: .*]-i, --input
Path to the input file. If input is '-' read from stdin-l, --loglevel
Loglevel to run under [default: info] [values: trace, debug, info, warn, error]
```# Example
```
salt '*' state.highstate -b 10 --static --out json test=true | salt-compressor -i -
```The `--static` and `--json` flags are important. `static` will output a much
easier to parse format. `json` will of course output everything in the JSON
format.