We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60e16ce commit bc83296Copy full SHA for bc83296
manifests/replset.pp
@@ -1,8 +1,16 @@
1
-# Wrapper class useful for hiera based deployments
+#
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
9
class mongodb::replset (
- $sets = undef
10
+ Boolean $sets_creation = true,
11
+ Optional[Hash] $sets = undef,
12
) {
- if $sets {
13
+ if $sets and $sets_creation {
14
create_resources(mongodb_replset, $sets)
15
}
16
0 commit comments