Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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