mirror of
https://github.com/status-im/ansible-role-mongodb.git
synced 2025-02-04 01:03:40 +00:00
Update description of replication module [skip ci]
This commit is contained in:
parent
cc835a3f18
commit
7bfc707fcf
@ -23,7 +23,7 @@ module: mongodb_replication
|
|||||||
short_description: Adds or removes a node from a MongoDB Replica Set.
|
short_description: Adds or removes a node from a MongoDB Replica Set.
|
||||||
description:
|
description:
|
||||||
- Adds or removes host from a MongoDB replica set. Initialize replica set if it needed.
|
- Adds or removes host from a MongoDB replica set. Initialize replica set if it needed.
|
||||||
version_added: "2.1"
|
version_added: "2.2"
|
||||||
options:
|
options:
|
||||||
login_user:
|
login_user:
|
||||||
description:
|
description:
|
||||||
@ -56,7 +56,7 @@ options:
|
|||||||
required: true
|
required: true
|
||||||
host_port:
|
host_port:
|
||||||
description:
|
description:
|
||||||
- The port of the host
|
- The port of the host, which should be added/deleted from RS
|
||||||
required: true
|
required: true
|
||||||
default: null
|
default: null
|
||||||
host_type:
|
host_type:
|
||||||
@ -128,6 +128,23 @@ EXAMPLES = '''
|
|||||||
- mongodb_replication: replica_set=replSet host_name=mongo4.dev host_port=27017 state=absent
|
- mongodb_replication: replica_set=replSet host_name=mongo4.dev host_port=27017 state=absent
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
RETURN = '''
|
||||||
|
host_name:
|
||||||
|
description: The name of the host to add/remove from replica set
|
||||||
|
returned: success
|
||||||
|
type: string
|
||||||
|
sample: "mongo3.dev"
|
||||||
|
host_port:
|
||||||
|
description: The port of the host, which should be added/deleted from RS
|
||||||
|
returned: success
|
||||||
|
type: int
|
||||||
|
sample: 27017
|
||||||
|
host_type:
|
||||||
|
description: The type of the host in replica set
|
||||||
|
returned: success
|
||||||
|
type: string
|
||||||
|
sample: "replica"
|
||||||
|
'''
|
||||||
import ConfigParser
|
import ConfigParser
|
||||||
import time
|
import time
|
||||||
from distutils.version import LooseVersion
|
from distutils.version import LooseVersion
|
||||||
|
Loading…
x
Reference in New Issue
Block a user