Skip to content

Commit

Permalink
use releasever yum var
Browse files Browse the repository at this point in the history
  • Loading branch information
LongLiveCHIEF committed Apr 14, 2017
1 parent ab191ca commit 1192cc6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 1192cc6

Please sign in to comment.