File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 53
53
Optional[String] $replset = undef ,
54
54
Optional[Hash] $replset_config = undef ,
55
55
Optional[Array] $replset_members = undef ,
56
+ Optional[String] $replset_arbiter = undef ,
56
57
Optional[Boolean] $configsvr = undef ,
57
58
Optional[Boolean] $shardsvr = undef ,
58
59
Optional[Boolean] $rest = undef ,
112
113
# Set-up replicasets
113
114
if $replset {
114
115
# Check that we've got either a members array or a replset_config hash
115
- if $replset_members and $replset_config {
116
- fail(' You can provide either replset_members or replset_config, not both.' )
116
+ if ( $replset_members or $replset_arbiter ) and $replset_config {
117
+ fail(' You can provide either replset_members incl. replset_arbiter or replset_config, not both.' )
117
118
} elsif !$replset_members and !$replset_config {
118
119
# No members or config provided. Warn about it.
119
120
warning (' Replset specified, but no replset_members or replset_config provided.' )
128
129
" ${replset} " => {
129
130
' ensure' => ' present' ,
130
131
' members' => $replset_members ,
132
+ ' arbiter' => $replset_arbiter ,
131
133
},
132
134
}
133
135
}
You can’t perform that action at this time.
0 commit comments