Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable reports by default #9461

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/puppet/defaults.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,7 @@ def self.initialize_default_settings!(settings)
:mode => "0750",
:desc => "The directory in which serialized data is stored, usually in a subdirectory."},
:reports => {
:default => "store",
:default => "none",
:desc => "The list of report handlers to use. When using multiple report handlers,
their names should be comma-separated, with whitespace allowed. (For example,
`reports = http, store`.)
Expand Down
4 changes: 4 additions & 0 deletions lib/puppet/reference/report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@
See [About Reporting](https://puppet.com/docs/puppet/latest/reporting_about.html)
for more details.

none
----
Discard all reports received. This is the default handler when the `reports`
setting is unset.
"
3 changes: 1 addition & 2 deletions lib/puppet/reports/store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
and this just stores the file on disk, in the `reportdir` directory.

These files collect quickly -- one every half hour -- so it is a good idea
to perform some maintenance on them if you use this report (it's the only
default report)."
to perform some maintenance on them if you use this report."

def process
validate_host(host)
Expand Down