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

Do not name the RPM repo file differently depending on the Agent version #311

Merged
merged 4 commits into from
Dec 4, 2020

Conversation

albertvaka
Copy link
Contributor

@albertvaka albertvaka commented Nov 26, 2020

What does this PR do?

Use datadog.repo as the name, to be consistent with other install methods.

Motivation

We might want the repo file to be installed with the package manager in the future, and we don't want to end up with two of them. I'm still not sure how managing this file with Ansible will interact with the package manager trying to install a newer version of the file (eg: because we added a new GPG key). In case the package manager replaces the file (which I think is not the default behavior, but can be configured that way), Ansible will change it back anyway in the next run 🤷 In any case, that's a problem we will have to solve for all config management tools, so I think this change is still making things better by making all install methods consistent.

@albertvaka albertvaka requested a review from a team as a code owner November 26, 2020 15:10
Use 'datadog' as a name, to be consistent with other install methods.
@albertvaka albertvaka force-pushed the albertvaka/rpm-repo-filename branch from 9380d4e to a2f9e0e Compare November 26, 2020 15: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.

LGTM, left one small fix proposal for custom repos

yum_repository:
name: "ansible_datadog_{{ item }}.repo"
state: absent
with_items: [ 5, 6, 7 ]
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we also want to run this with custom, to remove the custom yum repository (if it exists).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done and fixed the tests that were failing.

@albertvaka albertvaka force-pushed the albertvaka/rpm-repo-filename branch from 8a8039a to f15d50f Compare November 27, 2020 13:58
tasks/pkg-redhat.yml Outdated Show resolved Hide resolved
Co-authored-by: Kylian Serrania <[email protected]>
@albertvaka albertvaka merged commit 314b32f into master Dec 4, 2020
@albertvaka albertvaka deleted the albertvaka/rpm-repo-filename branch December 4, 2020 13:25
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