RHEL repository uses wrong value for $releasever
Summary
RedHat Enterprise user the value "7server"for $releasever. Previous versions of RHEL only uses a number. The gitlab CE repository uses 7 which breaks yum repository files using the $releasever variable.
Steps to reproduce
On a RHEL 7 install, create a test.repo file under /etc/yum.repos.d/ with the following content:
[gitlab_official_ce]
name=Official repository for Gitlab
baseurl=https://packages.gitlab.com/gitlab/gitlab-ce/el/$releasever/$basearch
enabled=1
gpgcheck=0
repo_gpgcheck=1
gpgkey=https://packages.gitlab.com/gpg.key
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
sslverify=1
Run yum update. It will fail with the following error:
[root@sn325 yum.repos.d]# yum update
Loaded plugins: product-id, search-disabled-repos, subscription-manager
https://packages.gitlab.com/gitlab/gitlab-ce/el/7Server/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article
https://access.redhat.com/articles/1320623
If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.
===================================================================================================
Possible fixes
Create the correct directories/symlinks in the repository
Edited by Roelof van der Kleij