Skip to content

Commit 2291c76

Browse files
committed
Simplify the values for mongos' ensure param
1 parent 49144ff commit 2291c76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manifests/mongos.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This installs a Mongo Shard daemon. See README.md for more details.
22
class mongodb::mongos (
3-
Variant[Boolean, String] $ensure = $mongodb::mongos::params::ensure,
3+
String $ensure = $mongodb::mongos::params::ensure,
44
Stdlib::Absolutepath $config = $mongodb::mongos::params::config,
55
Optional[String[1]] $config_content = $mongodb::mongos::params::config_content,
66
Optional[String[1]] $config_template = $mongodb::mongos::params::config_template,
@@ -26,7 +26,7 @@
2626
contain mongodb::mongos::config
2727
contain mongodb::mongos::service
2828

29-
if ($ensure == 'present' or $ensure == true) {
29+
if $ensure != 'absent' {
3030
Class['mongodb::mongos::install'] -> Class['mongodb::mongos::config']
3131

3232
if $restart {

0 commit comments

Comments
 (0)