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

Limit the versions of the agent that can be installed on Centos < 7 #556

Merged
merged 5 commits into from
Mar 13, 2024

Conversation

alopezz
Copy link
Contributor

@alopezz alopezz commented Mar 7, 2024

The approach taken here was:

  • When not pinned, install the latest datadog agent version known to work.
  • When pinned, error out if the pinned version is above 7.51.

@alopezz alopezz requested a review from a team as a code owner March 7, 2024 11:04
@alopezz alopezz force-pushed the alopez/deprecate-centos-6 branch 2 times, most recently from 722508c to 12e5b21 Compare March 7, 2024 11:16
@alopezz alopezz force-pushed the alopez/deprecate-centos-6 branch 2 times, most recently from e110a52 to f1c1a24 Compare March 7, 2024 12:53
tasks/os-check.yml Outdated Show resolved Hide resolved
when: ansible_facts.os_family == "RedHat"
block:
- name: Get RHEL major version equivalent
command: "rpm -E %{rhel}" # noqa: command-instead-of-module
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, this is interesting, I never thought about doing this. Have you tested on e.g. Scientific Linux 6? I feel like there might be rhel-6 based distros where this macro wouldn't expand, but I'm not sure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did a quick test on a Scientific Linux 6 box and it did expand as expected (to 6). Would you say it's safer to use something else (or at least to have some sort of fallback)?

@alopezz alopezz requested a review from bkabrda March 12, 2024 08:55
@alopezz alopezz merged commit b4b0c22 into main Mar 13, 2024
115 checks passed
@alopezz alopezz deleted the alopez/deprecate-centos-6 branch March 13, 2024 08:48
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.

3 participants