Skip to content

Commit df9d2b8

Browse files
author
Sergei Antipov
committed
Updated readme
1 parent a3a4b61 commit df9d2b8

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,21 @@ mongodb_root_admin_password
115115
```
116116
Example vars for replication:
117117
```yaml
118-
mongodb_login_host: 192.168.56.2 # Mongodb master host
119-
120118
# mongodb_replication_params should be configured on each replica set node
121119
mongodb_replication_params:
122120
- { host_name: 192.168.56.2, host_port: "{{ mongodb_conf_port }}", host_type: replica }
123121
# host_type can be replica(default) and arbiter
124122
```
123+
And inventory file for replica set:
124+
```ini
125+
[mongo_master]
126+
192.158.56.2 mongodb_master=True # it'n not a really master of MongoDB replica set,
127+
# use this variable for replica set init only
128+
129+
[mongo_replicas]
130+
192.168.56.3
131+
192.168.56.4
132+
```
125133

126134
Licensed under the GPLv2 License. See the [LICENSE.md](LICENSE.md) file for details.
127135

0 commit comments

Comments
 (0)