I’d like to make a contribution to the RPM quick install section. When the script creates the /etc/yum.repos.d/gitlab-ce.repo file, it hard codes the major OS ($releasever in DNF/YUM) instead of using the $releasever macro.
In my environment, I have a Rocky 9 server that is doing a reposync of 7, 8 and 9 versions of Gitlab CE. I do not want to pull down all RPM packages. I’m doing a:
reposync -n gitlab_gitlab-ce --releasever 9
reposync -n gitlab_gitlab-ce --releasever 8
reposync -n gitlab_gitlab-ce --releasever 7
on my Rocky server. This allows me to pull down only the latest 7, 8 and 9 packages and make them available to my internal clients.
Since the install script hard codes the major version in the baseurl line, I am forced to modify the /etc/yum.repos.d/gitlab-ce.repo file manually.
If the baseurl line were to be changed to:
baseurl=https://packages.gitlab.com/gitlab/gitlab-ce/el/$releasever/$basearch
then DNF/YUM would substitue the --releasever parameter and I can download the 7, 8 and 9 packages programatically without having to change the repo file.
Where can I find the source code for this so that I can contribute my idea?
Thanks, Brian