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

Fixes #35728 - Disable telemetry by default #851

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Nov 7, 2022

Puppetserver 7.0 adopted opt-out telemetry, meaning telemetry is sent by default. Foreman traditionally has had a policy where no telemetry was sent by default. Disabling the telemetry would bring align Puppetserver to this policy.

Still a draft since I haven't checked all the implications. Users of the installer will also need to change their answer. Possibly this could be a migration, but then we'd disrespect users who wanted to opt-in. Possibly an upgrade note.

Copy link
Contributor

@wbclark wbclark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be Optional[Boolean] $server_puppetserver_telemetry = undef, and then interpret

false - intentional opt out
true - intentional opt in
undef - opt in (puppet default)

installer answers would set it to false and installer would get a migration that sets it to false if previously undef, which makes false the installer default without clobbering intentional opt ins

that should cover all bases except 1. installer users who already used release 16.3.0 of this module, 2. and non-installer users, and we'd need release notes for those users.

@ekohl
Copy link
Member Author

ekohl commented Nov 7, 2022

That may actually be better yes. At least for the future to explicitly record the opt-in/opt-out.

@ekohl ekohl force-pushed the disable-telemetry-by-default branch 2 times, most recently from 7c380b8 to 58fd7a8 Compare February 21, 2023 11:54
@ekohl ekohl marked this pull request as ready for review February 21, 2023 11:56
Puppetserver 7.0 adopted opt-out telemetry[1], meaning telemetry is sent
by default. Foreman traditionally has had a policy where no telemetry
was sent by default. Disabling the telemetry would bring align
Puppetserver to this policy.

It uses Optional[Boolean] so the Foreman installer can explicitly record
the users answer if they choose anything, where undef means whatever
the module thinks is best.

[1]: https://puppet.com/docs/puppet/7/server/puppet_server_usage_telemetry.html
@ekohl ekohl force-pushed the disable-telemetry-by-default branch from 58fd7a8 to 95788e3 Compare February 21, 2023 12:11
@ekohl ekohl merged commit 95788e3 into theforeman:master Feb 21, 2023
@ekohl ekohl deleted the disable-telemetry-by-default branch February 21, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants