... | ... | @@ -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
|
|
|
|
... | ... | |