Skip to content

Fix yum config-manager invocation in installers and docs#34870

Merged
atburke merged 2 commits intomasterfrom
atburke/ec2-discovery-amazon-linux
Nov 27, 2023
Merged

Fix yum config-manager invocation in installers and docs#34870
atburke merged 2 commits intomasterfrom
atburke/ec2-discovery-amazon-linux

Conversation

@atburke
Copy link
Copy Markdown
Contributor

@atburke atburke commented Nov 22, 2023

This change fixes the invocation of the yum config manager in both the default installers and the docs.

Fixes #34538.

Changelog: Fixed default installer yum error on RHEL and Amazon Linux

@github-actions
Copy link
Copy Markdown
Contributor

🤖 Vercel preview here: https://docs-gq1p8wl6q-goteleport.vercel.app/docs/ver/preview

Copy link
Copy Markdown
Contributor

@fheinecke fheinecke left a comment

Choose a reason for hiding this comment

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

This change not work on CentOS 7 out of the box. yum-config-manager needs to be installed on 8 forward, but works on all RHEL based distros. I would recommend adding a check for centos7, install yum-config-manager, or download and parse the repo config file manually.

@fheinecke
Copy link
Copy Markdown
Contributor

Also, if this logic changes then this test must be updated as well.

Copy link
Copy Markdown
Collaborator

@r0mant r0mant left a comment

Choose a reason for hiding this comment

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

@atburke Yeah, echoing @fheinecke's comment, sorry if the ticket description wasn't clear but this only affects AL2023, other distros should keep using existing command.

@github-actions
Copy link
Copy Markdown
Contributor

🤖 Vercel preview here: https://docs-h5rywo8gs-goteleport.vercel.app/docs/ver/preview

@atburke
Copy link
Copy Markdown
Contributor Author

atburke commented Nov 27, 2023

Friendly ping @fheinecke

Copy link
Copy Markdown
Contributor

@fheinecke fheinecke left a comment

Choose a reason for hiding this comment

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

LGTM

This test step line should move to the next step as well, to capture the specifics of our install docs: https://github.com/gravitational/teleport.e/blob/master/.github/workflows/deploy-packages.yaml#L557-L558

@atburke atburke added this pull request to the merge queue Nov 27, 2023
Merged via the queue into master with commit 419fe69 Nov 27, 2023
@atburke atburke deleted the atburke/ec2-discovery-amazon-linux branch November 27, 2023 21:35
@public-teleport-github-review-bot
Copy link
Copy Markdown

@atburke See the table below for backport results.

Branch Result
branch/v12 Failed
branch/v13 Create PR
branch/v14 Create PR

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.

Auto-discovery install script doesn't work on AL2023

5 participants