X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=README.md;h=bbe429fc9f8dfe015576903d252b2db066645257;hb=a99752f729bf5d3200f63d3e336e4021a1e5d4a5;hp=ac945b40933428c3aaeb32a8021fd92664d48563;hpb=07c07d75f6ca791bb7006be62b9f5d229ccf1a94;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/README.md b/README.md index ac945b4..bbe429f 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,15 @@ class { 'apt': }, } ``` +When `Exec['apt_update']` is triggered, it will generate a `Notice` message. Because the default [logging level for agents](https://docs.puppet.com/puppet/latest/configuration.html#loglevel) is `notice`, this will cause the repository update to appear in logs and agent reports. Some tools, such as [The Foreman](https://www.theforeman.org), report the update notice as a significant change. By setting the [loglevel](https://docs.puppet.com/puppet/latest/metaparameter.html#loglevel) metaparameter for `Exec['apt_update']` above the agent logging level, one can eliminate these updates from reports: +```puppet +class { 'apt': + update => { + frequency => 'daily', + loglevel => 'debug', + }, +} +``` ### Pin a specific release