5

puppet agent -t shows diffs of binary files sometimes and it messes up my terminal. How can I get it to not show diffs at all?

2

puppet agent -t shows diffs of binary files sometimes and it messes up my terminal. How can I get it to not show diffs at all?

I'm afraid that the answer is you can't. Because the --test option enable the show_diff, even if you add --no-show_diff or show_diff = false to the command line:

puppet help agent

* --test:
  Enable the most common options used for testing. These are 'onetime',
  'verbose', 'ignorecache', 'no-daemonize', 'no-usecacheonfailure',
  'detailed-exit-codes', 'no-splay', and 'show_diff'.
2

As noted by Preflightsiren in this comment:

you could replace -t with "--verbose --onetime --ignorecache --no-daemonize"
  • This is the right answer. Add --no-show-diff and you won't see the diff in the terminal. puppet agent --verbose --onetime --no-daemonize --no-show-diff – m0dular Dec 21 '18 at 21:27
0

Boolean options are negated by specifying no-, so you just want puppet agent -t --no-show_diff.

  • Doesn't work with Puppet 3.4.3, don't know about newer versions – Joril Feb 8 at 10:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.