How to view the change in files on the puppet client?

232 views
Skip to first unread message

Gang Qin

unread,
May 5, 2015, 12:10:23 PM5/5/15
to puppet...@googlegroups.com
Dear Puppet Expert:
 
  When I run ''puppet agent --no-daemonize --verbose --onetime --noop " , I see a change in /etc/condor/config.d/wn-wn.config:

Notice: /Stage[second]/Condor::Config-wn-westmere/File[/etc/condor/config.d/wn-wn.config]/content: current_value {md5}a13d0e32d20eac20006194794f5a7d66, should be {md5}4d31c8ed36aed5c014022215ca944d6c (noop)

  Just wondering what's the most convenient way to view the change in this file directly before applying the change.

  Cheers,Gang

Peter Kristolaitis

unread,
May 5, 2015, 1:00:33 PM5/5/15
to puppet...@googlegroups.com
The option you're looking for is --show_diff

However, you should just use "puppet agent runonce --test" when testing stuff;  the --test flag sets all of the flags that you normally use for debugging, including --no-daemonize, --verbose, and --show_diff (plus a few others -- see the man page).   You will still need to specify --noop if you want that option, however.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7715fd1b-6555-4cea-8073-2c85fb2c2518%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages