Skip to content

Commit f1e5f02

Browse files
author
Johan De Wit
committed
Splits version mongosh and mongodb
1 parent 2fcf351 commit f1e5f02

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

manifests/client/params.pp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# @api private
22
class mongodb::client::params inherits mongodb::globals {
3-
$package_ensure = pick($mongodb::globals::version, 'present')
3+
$package_ensure = pick($mongodb::globals::mongosh_version, 'present')
44
$manage_package = pick($mongodb::globals::manage_package, $mongodb::globals::manage_package_repo, false)
55

6-
# the new mongosh package is the same for all dsitros.
6+
# the new mongosh package is the same for all distros.
7+
# and it follows its own versioning
78
$package_name = 'mongodb-mongosh'
89
}

manifests/globals.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
$ipv6 = undef,
1717
$bind_ip = undef,
1818

19-
$version = 6.0,
19+
$version = '6.0',
20+
$mongosh_version = undef,
2021
$manage_package_repo = fact('os.distro.codename') ? { # Debian 10 doesn't provide mongodb packages. So manage it!
2122
'buster' => true,
2223
default => undef

0 commit comments

Comments
 (0)