Skip to content

Commit

Permalink
removing unneeded fact evaluation
Browse files Browse the repository at this point in the history
remove support for < 4.0.0
  • Loading branch information
james.powis authored and james.powis committed Mar 30, 2018
1 parent a00bc49 commit 2504c90
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
tries => 5,
}

if is_hash($postgresql) {
if $postgresql =~ Hash {
unless $postgresql[enable] {
exec { 'gitlab_setup':
command => "/bin/echo yes | ${rake_exec} gitlab:setup",
Expand Down
5 changes: 3 additions & 2 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,16 @@
}
}
'redhat': {

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

$releasever = $facts['os']['release']['major']

yumrepo { "gitlab_official_${edition}":
descr => 'Official repository for Gitlab',
baseurl => "https://packages.gitlab.com/gitlab/gitlab-${edition}/el/${::operatingsystemmajrelease}/\$basearch",
baseurl => "https://packages.gitlab.com/gitlab/gitlab-${edition}/el/${releasever}/\$basearch",
enabled => 1,
repo_gpgcheck => 1,
gpgcheck => 1,
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"requirements": [
{
"name": "puppet",
"version_requirement": ">=4.10.0 <6.0.0"
"version_requirement": ">=4.10.0 <6.0.0
}
]
}

0 comments on commit 2504c90

Please sign in to comment.