diff --git a/manifests/install.pp b/manifests/install.pp index e4889a24..2b773d15 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -50,15 +50,10 @@ } } 'redhat': { - if is_hash($::os) { - $releasever = $::os[release][major] - } else { - $releasever = $::operatingsystemmajrelease - } yumrepo { "gitlab_official_${edition}": descr => 'Official repository for Gitlab', - baseurl => "https://packages.gitlab.com/gitlab/gitlab-${edition}/el/${releasever}/\$basearch", + baseurl => "https://packages.gitlab.com/gitlab/gitlab-${edition}/el/\$releasever/\$basearch", enabled => 1, gpgcheck => 0, gpgkey => 'https://packages.gitlab.com/gpg.key',