-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align windows agent to linux so that service is disabled on when data…
…dog_enabled false (#338) This includes several proposed modifications: Reorder the services in the stop_services task so that when they are shut down, they don't have dependency issues due to shutdown order of operations Disable services rather than stopping them when datadog_enabled is false Ensure services are not set to disabled when datadog_enabled is true Resolve/compute datadog_tracked_checks within the task sequence as set_fact rather than only with the default vars so that its variable precedence is higher than include_vars. Also address null/none dictionary during this step. Propose calling it sanitize-checks. Co-authored-by: Kylian Serrania <[email protected]>
- Loading branch information
1 parent
cfabc48
commit a12a1dd
Showing
4 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- name: Defend against defined but null datadog_checks variable | ||
set_fact: | ||
datadog_checks: "{{ datadog_checks | default({}, true) }}" | ||
|
||
- name: Resolve datadog_tracked_checks | ||
set_fact: | ||
datadog_tracked_checks: "{{ datadog_checks | list + datadog_additional_checks | default([], true) }}" | ||
|