File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 23
23
short_description: Adds or removes a node from a MongoDB Replica Set.
24
24
description:
25
25
- 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 "
27
27
options:
28
28
login_user:
29
29
description:
56
56
required: true
57
57
host_port:
58
58
description:
59
- - The port of the host
59
+ - The port of the host, which should be added/deleted from RS
60
60
required: true
61
61
default: null
62
62
host_type:
128
128
- mongodb_replication: replica_set=replSet host_name=mongo4.dev host_port=27017 state=absent
129
129
'''
130
130
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
+ '''
131
148
import ConfigParser
132
149
import time
133
150
from distutils .version import LooseVersion
You can’t perform that action at this time.
0 commit comments