Skip to content

Commit 8b7de22

Browse files
committed
README: clearify how to configure an arbiter node for a replica set
1 parent 4d90ec2 commit 8b7de22

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,14 +420,19 @@ set name as an argument to this set. All hosts must have the same set name.
420420
An array of member hosts for the replica set.
421421
Mutually exclusive with `replset_config` param.
422422

423+
##### `replset_arbiter`
424+
A string to identify an arbiter instance for the replica set.
425+
The arbiter node must also appear in `replset_members`.
426+
Mutually exclusive with `replset_config` param.
427+
423428
##### `replset_config`
424429
A hash that is used to configure the replica set.
425430
Mutually exclusive with `replset_members` param.
426431

427432
```puppet
428433
class mongodb::server {
429434
replset => 'rsmain',
430-
replset_config => { 'rsmain' => { ensure => present, members => ['host1:27017', 'host2:27017', 'host3:27017'] } }
435+
replset_config => { 'rsmain' => { ensure => present, members => ['host1:27017', 'host2:27017', 'host3:27017'], arbiter => ['host3:27017'] } }
431436
432437
}
433438
```

0 commit comments

Comments
 (0)