Skip to content

Commit 148e599

Browse files
committed
Disable reports by default
The default value for this goes all the way back to when it was introduced in 566bf78. I'd argue it a bad default, because it just writes files without any clean up process in place. That only causes hard disks to fill up. Having reports should be an opt in feature, where they make a careful choice. PuppetDB is an obvious recommended option but not one that can be relied on by default.
1 parent fce3ad2 commit 148e599

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/puppet/defaults.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ def self.initialize_default_settings!(settings)
14771477
:mode => "0750",
14781478
:desc => "The directory in which serialized data is stored, usually in a subdirectory."},
14791479
:reports => {
1480-
:default => "store",
1480+
:default => "none",
14811481
:desc => "The list of report handlers to use. When using multiple report handlers,
14821482
their names should be comma-separated, with whitespace allowed. (For example,
14831483
`reports = http, store`.)

lib/puppet/reference/report.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@
2121
2222
none
2323
----
24-
Discard all reports received.
24+
Discard all reports received. This is the default handler when the `reports`
25+
setting is unset.
2526
"

lib/puppet/reports/store.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
and this just stores the file on disk, in the `reportdir` directory.
1212
1313
These files collect quickly -- one every half hour -- so it is a good idea
14-
to perform some maintenance on them if you use this report (it's the only
15-
default report)."
14+
to perform some maintenance on them if you use this report."
1615

1716
def process
1817
validate_host(host)

0 commit comments

Comments
 (0)