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

Fix Package not depending on the right Yumrepo #664

Merged
merged 1 commit into from
Oct 23, 2020

Conversation

albertvaka
Copy link
Contributor

@albertvaka albertvaka commented Oct 22, 2020

What does this PR do?

The package resource required the Yumrepo called datadog6 instead of datadog, which was wrong.

Also I think we were using an empty package resource to force the yumrepo being created, but we can actually use that same package instance to install the datadog-agent package if we specify it instead of doing that right after. Changed that as well.

Motivation

Should fix: #659

@albertvaka albertvaka requested a review from a team as a code owner October 22, 2020 15:39
@albertvaka albertvaka force-pushed the albertvaka/package-requires-yumrepo branch 2 times, most recently from 01db139 to c3f5c18 Compare October 22, 2020 16:49
@albertvaka albertvaka force-pushed the albertvaka/package-requires-yumrepo branch from c3f5c18 to d88dc3e Compare October 22, 2020 16:52
Copy link
Member

@mx-psi mx-psi left a comment

Choose a reason for hiding this comment

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

LGTM, docs say manage_repo is deprecated so I suppose we should revisit this at some point, but it makes sense to keep it like this for now

# $manage_repo
# Deprecated. Only works for RPM. Install datadog-agent manually and then set
# manage_install=false to achieve the same behaviour as setting this to false.

@albertvaka
Copy link
Contributor Author

Whenever we do a new major version we should remove manage_repo.

@albertvaka albertvaka merged commit dd544b7 into master Oct 23, 2020
@albertvaka albertvaka deleted the albertvaka/package-requires-yumrepo branch October 23, 2020 10:38
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.

RedHat installations fail because the Yumrepo[datadog] is not setup before the Package[datadog-agent]
2 participants