On Thu, Sep 4, 2014 at 1:19 PM, Constantin Wolber <
[email protected]> wrote:
>
> i searched quite a bit in the documentations and through google but did
> not find a suitable solution.
>
> I am using the file resource to change the ownership of a directory
> recursively. What happens is that for every single file a notice is
> generated for change of user and of group. Since I'm using some reports on
> the puppetmaster this puts a lot of uninteresting information in those
> reports. So is there any chance of suppressing those notices?
>
> I only found a solution for a manual run but not for an automatic run.
> Since the --logdest would also suppress notices that are interesting in
> other situations.
>

You can drop the resource loglevel to debug,

file { '/tmp/a':
  ensure => directory,
  recurse => true,
  loglevel => 'debug',
}

This will suppress the change message unless you run puppet agent with the
flag --debug, but you should still see the refresh notice if something
changes.

HTH,

Nan

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CACqVBqCmyXkCnmeou-CV8GirvbcaEjx1goJN9DkLaNZNyOrYNg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to