Skip to content

Commit 7bfc707

Browse files
committed
Update description of replication module [skip ci]
1 parent cc835a3 commit 7bfc707

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

library/mongodb_replication.py

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
short_description: Adds or removes a node from a MongoDB Replica Set.
2424
description:
2525
- Adds or removes host from a MongoDB replica set. Initialize replica set if it needed.
26-
version_added: "2.1"
26+
version_added: "2.2"
2727
options:
2828
login_user:
2929
description:
@@ -56,7 +56,7 @@
5656
required: true
5757
host_port:
5858
description:
59-
- The port of the host
59+
- The port of the host, which should be added/deleted from RS
6060
required: true
6161
default: null
6262
host_type:
@@ -128,6 +128,23 @@
128128
- mongodb_replication: replica_set=replSet host_name=mongo4.dev host_port=27017 state=absent
129129
'''
130130

131+
RETURN = '''
132+
host_name:
133+
description: The name of the host to add/remove from replica set
134+
returned: success
135+
type: string
136+
sample: "mongo3.dev"
137+
host_port:
138+
description: The port of the host, which should be added/deleted from RS
139+
returned: success
140+
type: int
141+
sample: 27017
142+
host_type:
143+
description: The type of the host in replica set
144+
returned: success
145+
type: string
146+
sample: "replica"
147+
'''
131148
import ConfigParser
132149
import time
133150
from distutils.version import LooseVersion

0 commit comments

Comments
 (0)