Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mongodb no longer provides the stable link #361

Merged
merged 2 commits into from
Aug 31, 2017
Merged

mongodb no longer provides the stable link #361

merged 2 commits into from
Aug 31, 2017

Conversation

attachmentgenie
Copy link
Member

so we need to link directly to the appropriate version dir, fixed it similar as the no enterprise version

@attachmentgenie
Copy link
Member Author

@@ -13,7 +13,8 @@
$location = $repo_location
$description = 'MongoDB Custom Repository'
} elsif $mongodb::globals::use_enterprise_repo == true {
$location = 'https://repo.mongodb.com/yum/redhat/$releasever/mongodb-enterprise/stable/$basearch/'
$mongover = split($version, '[.]')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version defaults to undef so perhaps we should raise an error if it is not set, as use_enterprise_repo requires it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its used for all redhat family repos, not just enterprise. In the foss part of the decision tree, there is simple check if $version is set. I could add the same code to the enterprise check.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could add the check to globals, or here. Something like

if $use_enterprise_repo == true and $version == undef {
  fail('You must set mongodb::globals::version when mongodb::globals::use_enterprise_repo is true')
}

Bram Vogelaar and others added 2 commits July 4, 2017 10:15
…h means version needs to be set, moved the version split out of if tree to prevent code duplication
@eputnam eputnam merged commit a971adb into voxpupuli:master Aug 31, 2017
@wyardley wyardley added the bug Something isn't working label Oct 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants