title: Puppet: suppressing notice output from a file type
body: <p>As part of a puppet apply provisioning setup I need to change the owner group and permissions on directory recursively. This is pretty easy to do with puppet's file type:</p>
  
  <pre><code>    file { "$appRoot":
        ensure =&gt; directory,
        recurse =&gt; true,
        owner =&gt; 'whoever',
        group =&gt; 'thegroup',
      }
  </code></pre>
  
  <p>The problem is that there are tens of thousands of files in this directory, and puppet's notice: logging output writes out to the console or log file three times for each file, notifying that it successfully changed the owner, group, and mode. This leads to unusably large output logs and I'd like to suppress this output unless there was an error.</p>
  
  <p>In the exec type there is an option to do this, logoutput => on_failure or false, but I can't seem to find any way to do this with file. It seems like doing much (or anything) in exec is frowned upon in the puppet world, is there any other way to customize the logging on the file operation short of moving it to an exec?</p>