Skip to content

Commit

Permalink
Merge pull request #172 from mhyzon/master
Browse files Browse the repository at this point in the history
Fix repo URL for RHEL 7.  Enable gpgcheck and add in gitlab-ee key.
  • Loading branch information
tobru authored Dec 12, 2017
2 parents 687bbc5 + 9088ccc commit c55c995
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,18 @@
}
'redhat': {

$gpgkey = $edition ? {
'ee' => 'https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey/gitlab-gitlab-ee-3D645A26AB9FBD22.pub.gpg',
default => 'https://packages.gitlab.com/gpg.key',
}

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/${::operatingsystemmajrelease}/\$basearch",
enabled => 1,
gpgcheck => 0,
gpgkey => 'https://packages.gitlab.com/gpg.key',
repo_gpgcheck => 1,
gpgcheck => 1,
gpgkey => $gpgkey,
sslcacert => '/etc/pki/tls/certs/ca-bundle.crt',
sslverify => 1,
}
Expand Down

0 comments on commit c55c995

Please sign in to comment.