Skip to content

Commit 34da6fd

Browse files
committed
Add sets_creation so we can disable this class on Arbitrator servers while auth is enabled
1 parent 94cbca3 commit 34da6fd

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

manifests/replset.pp

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
# Wrapper class useful for hiera based deployments
1+
#
2+
# @summary Wrapper class useful for hiera based deployments
3+
#
4+
# @param sets_creation
5+
# Boolean to disable mongodb_replset resource, we can use it to skipt this on Arbiter nodes that will produce an error when enabled
6+
# @param sets
7+
# Hash containing the replica set config
8+
#
29
class mongodb::replset (
3-
$sets = undef
10+
Boolean $sets_creation = true,
11+
Optional[Hash] $sets = undef,
412
) {
5-
if $sets {
13+
if $sets and $sets_creation {
614
create_resources(mongodb_replset, $sets)
715
}
816

0 commit comments

Comments
 (0)