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

patchman-client - Update yum repo config parsing #535

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

auebergang
Copy link

Supports a [space] around the name key/value

Amazon linux 2 is using both formats which meant the priority wasn't being picked up

/etc/yum.repos.d/amzn2-extras.repo

...
...
[amzn2extra-epel]
enabled = 1
name = Amazon Extras repo for epel
mirrorlist = $awsproto://$amazonlinux.$awsregion.$awsdomain/$releasever/extras/epel/latest/$basearch/mirror.list
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-amazon-linux-2
priority = 10
skip_if_unavailable = 1
report_instanceid = yes

and /etc/yum.repos.d/amzn2-core.repo

[amzn2-core]
name=Amazon Linux 2 core repository
mirrorlist=$awsproto://$amazonlinux.$awsregion.$awsdomain/$releasever/$product/$target/$basearch/mirror.list
priority=10
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-amazon-linux-2
enabled=1
metadata_expire=300
mirrorlist_expire=300
report_instanceid=yes
...
...

Supports a [space] around the name key/value
@furlongm furlongm merged commit d531c30 into furlongm:master Dec 7, 2023
5 checks passed
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