Skip to content

Commit

Permalink
Support Suse enterprise repository
Browse files Browse the repository at this point in the history
  • Loading branch information
h-haaks committed Mar 24, 2024
1 parent b6d3f5f commit fe0ed21
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,13 @@
$_repo_location = $repo_location
$description = 'MongoDB Custom Repository'
} else {
$_repo_location = "https://repo.mongodb.org/zypper/suse/\$releasever_major/mongodb-org/${version}/\$basearch/"
$description = 'MongoDB Repository'
if $use_enterprise_repo {
$_repo_location = "https://repo.mongodb.com/zypper/suse/\$releasever_major/mongodb-enterprise/${version}/\$basearch/"
$description = 'MongoDB Enterprise Repository'
} else {
$_repo_location = "https://repo.mongodb.org/zypper/suse/\$releasever_major/mongodb-org/${version}/\$basearch/"
$description = 'MongoDB Repository'
}
}

class { 'mongodb::repo::zypper':
Expand Down

0 comments on commit fe0ed21

Please sign in to comment.