File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# PRIVATE CLASS: do not use directly
22class mongodb::repo (
33 $ensure = $mongodb::params::ensure,
4+ $version = $mongodb::params::version,
45) inherits mongodb::params {
56 case $::osfamily {
67 ' RedHat' , ' Linux' : {
78 if $mongodb::globals::use_enterprise_repo == true {
89 $location = ' https://repo.mongodb.com/yum/redhat/$releasever/mongodb-enterprise/stable/$basearch/'
910 $description = ' MongoDB Enterprise Repository'
1011 }
12+ elsif (versioncmp($version , ' 3.0.0' ) >= 0) {
13+ $mongover = split($version , ' [.]' )
14+ $location = $::architecture ? {
15+ ' x86_64' => " http://repo.mongodb.org/yum/redhat/${::operatingsystemmajrelease} /mongodb-org/${mongover[0]}.${mongover[1]}/x86_64/" ,
16+ default => undef
17+ }
18+ }
1119 else {
1220 $location = $::architecture ? {
1321 ' x86_64' => ' http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/' ,
You can’t perform that action at this time.
0 commit comments