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

Add datadog_manage_config to disable changing the Agent config files #410

Merged
merged 3 commits into from
Jan 21, 2022

Conversation

albertvaka
Copy link
Contributor

Adds a new variable datadog_manage_config that defaults to true but can be set to false. Doing so will make our role not change any of the Agent config files when it runs. This allows using the role to update the Agent if manual modifications have been made to the config files without overwriting them.

@albertvaka albertvaka requested a review from a team as a code owner January 20, 2022 17:54
Copy link
Contributor

@KSerrania KSerrania left a comment

Choose a reason for hiding this comment

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

Can we add unit install tests for the datadog_manage_config: false case, as it significantly changes the behavior of the role? At least something that verifies that the role doesn't crash in that mode.

tasks/agent-linux.yml Show resolved Hide resolved
tasks/agent-win.yml Show resolved Hide resolved
tasks/agent5-linux.yml Show resolved Hide resolved
@albertvaka
Copy link
Contributor Author

We don't have any unit tests on this repo 😅 😅 😅 Only kitchen tests and a setup for manual tests (I used the later). Should I maybe add a kitchen test?

@albertvaka albertvaka force-pushed the albertvaka/add-datadog-manage-config branch 3 times, most recently from b2a73ea to 4a1d4cc Compare January 20, 2022 19:27
@albertvaka albertvaka force-pushed the albertvaka/add-datadog-manage-config branch from 4a1d4cc to 5a1d7ac Compare January 21, 2022 11:42
@albertvaka albertvaka merged commit 45a083c into main Jan 21, 2022
@albertvaka albertvaka deleted the albertvaka/add-datadog-manage-config branch January 21, 2022 11:51
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