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

Regression: yum $releasever results in 404 error for RHEL yum repo #153

Closed
esalberg opened this issue Aug 8, 2017 · 7 comments
Closed
Labels
bug Something isn't working

Comments

@esalberg
Copy link

esalberg commented Aug 8, 2017

This commit, which changes ${releasever} (set to 5/6/7 for RHEL) to $releasever (uses the yum releasever) does not work for us on RHEL6. The yum $releasever is 6Server, and the actual gitlab URL needs just 6.
1192cc6

This was previously noted and fixed / working fine, e.g. as seen in this issue:
#42

I'm happy to put in a PR (I forked the module anyway so that I could get my upgrade to proceed), but I wanted to put in an issue first to get confirmation.

@esalberg
Copy link
Author

esalberg commented Aug 8, 2017

Also, since the old code used is_hash, and that is deprecated, would you prefer:

  1. ignore $::os[release][major] and just use $::operatingsystemrelease
  2. use validate_legacy (but that only supports Puppet 4.4.x+, so may be too version restricting)
  3. replace it another way?

Code in question:
if is_hash($::os) {
$releasever = $::os[release][major]
} else {
$releasever = $::operatingsystemmajrelease
}

@Poil
Copy link

Poil commented Aug 22, 2017

+1

@jsmelser
Copy link

I am getting this on redhat 7 as well.

@TJuberg
Copy link

TJuberg commented Nov 10, 2017

I can confirm that this issue is affecting us on Redhat Enterprise Linux 7 as well

@mhyzon
Copy link
Contributor

mhyzon commented Dec 12, 2017

I created #172 which fixes this issue (again, I guess?) and also adds the proper GPG key for EE if you are using EE and enables RPM verification.

@pebtron
Copy link

pebtron commented Jan 9, 2018

@juniorsysadmin juniorsysadmin added the bug Something isn't working label Jan 29, 2018
@juniorsysadmin
Copy link
Member

Fixed by #172 I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants