Skip to content

Commit b2018df

Browse files
committed
(maint) Turn off analytics submissions
Collecting analytics is now turned off by default. !removal * **Stop collecting bolt analytics** ([puppetlabs#3293](puppetlabs#3293)) Bolt no longer collects analytics by default.
1 parent 4b30c39 commit b2018df

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

documentation/analytics.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Analytics
22

33
Bolt collects data about how you use it to help the Bolt team make decisions
4-
about how to improve it. You can opt out of providing this data.
4+
about how to improve it. You can opt out of providing this data. Analytics is
5+
disabled by default.
56

67
## Opt out of data collection
78

@@ -12,7 +13,7 @@ or by setting an environment variable.
1213

1314
To disable data collection, set `analytics: false` in your [configuration
1415
file](configuring_bolt.md). This option is supported in the system-wide,
15-
user-level, and project configuration files.
16+
user-level, and project configuration files. `false` is the default value.
1617

1718
```yaml
1819
# bolt-defaults.yaml

documentation/bolt_installing.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
# Installing Bolt
22

3-
> Bolt automatically collects data about how you use it. If you want to opt
4-
> out of providing this data, you can do so. For more information, see
5-
> [Opt out of data collection](analytics.md#opt-out-of-data-collection).
6-
73
Packaged versions of Bolt are available for several Linux distributions, macOS,
84
and Microsoft Windows.
95

lib/bolt/config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def initialize(project, config_data, overrides = {})
169169
@config_files = []
170170

171171
default_data = {
172-
'analytics' => true,
172+
'analytics' => false,
173173
'apply-settings' => {},
174174
'color' => true,
175175
'compile-concurrency' => Etc.nprocessors,

spec/unit/config_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,8 @@
377377
end
378378

379379
context 'analytics' do
380-
it 'defaults to enabled' do
381-
expect(config.analytics).to eq(true)
380+
it 'defaults to disabled' do
381+
expect(config.analytics).to eq(false)
382382
end
383383

384384
it 'overrides a true value with false' do

0 commit comments

Comments
 (0)