Skip to content

Commit

Permalink
Add sets_creation so we can disable this class on Arbitrator servers …
Browse files Browse the repository at this point in the history
…while auth is enabled
  • Loading branch information
JvGinkel committed Jan 25, 2023
1 parent 94cbca3 commit 34da6fd
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions manifests/replset.pp
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# Wrapper class useful for hiera based deployments
#
# @summary Wrapper class useful for hiera based deployments
#
# @param sets_creation
# Boolean to disable mongodb_replset resource, we can use it to skipt this on Arbiter nodes that will produce an error when enabled
# @param sets
# Hash containing the replica set config
#
class mongodb::replset (
$sets = undef
Boolean $sets_creation = true,
Optional[Hash] $sets = undef,
) {
if $sets {
if $sets and $sets_creation {
create_resources(mongodb_replset, $sets)
}

Expand Down

0 comments on commit 34da6fd

Please sign in to comment.