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

[windows] Try to start NPM only when network_enabled is true #803

Merged
merged 2 commits into from
Aug 10, 2021

Conversation

KSerrania
Copy link
Contributor

What does this PR do?

On Windows, set sysprobe_enabled to true only when node['datadog']['system_probe']['network_enabled'] is true, to prevent operations on the system-probe service when it is not installed.

Motivation

On Windows, we install NPM only when node['datadog']['system_probe']['network_enabled'] is true (or with an explicit option): https://github.com/DataDog/chef-datadog/blob/main/libraries/recipe_helpers.rb#L97-L99.
With the current behavior, if node['datadog']['system_probe']['network_enabled'] is false but node['datadog']['system_probe']['enabled'] is true, then the chef cookbook tries to start the NPM service even though it hasn't been installed.

@KSerrania KSerrania requested a review from a team as a code owner June 15, 2021 14:37
@KSerrania KSerrania merged commit a51c303 into main Aug 10, 2021
@KSerrania KSerrania deleted the kserrania/windows-npm-fix branch August 10, 2021 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants