Skip to content
Snippets Groups Projects
Verified Commit 060f18e2 authored by anarcat's avatar anarcat
Browse files

mention patc instead of hack

parent 952e6033
No related branches found
No related tags found
No related merge requests found
......@@ -552,14 +552,10 @@ change causes the `cumin` run to abort.
Because the output `cumin` produces groups together nodes that return
identical output, and because `puppet agent -t` outputs unique
strings like catalog serial number and runtime in fractions of a
second, it can be useful to pipe the Puppet agent output to `sed` to
remove this noise. This way, all nodes on which the agent makes no
modification are grouped in the report printed by `cumin`.
second, we have made a wrapper called `patc` that will silence those
and will allow cumin to group those commands together:
set -o pipefail ; puppet agent -t | sed -r "s/^\x1b\[[0-9;]*m//;s/^(Info: (Caching catalog|Applying configuration)).*/\1/;s/^(Notice: Applied catalog )in [0-9\.]+ seconds/\1/"
Here `set -o pipefail` is used so that the return code from `sed`
doesn't clobber the one from `puppet agent -t`
cumin -b 5 '*' 'patc'
## Adding/removing a global admin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment