Merge pull request #264 from bcoca/mongo_user_name
changed to make name primary over user
This commit is contained in:
commit
e196703ff3
1 changed files with 4 additions and 3 deletions
|
@ -57,11 +57,12 @@ options:
|
||||||
description:
|
description:
|
||||||
- The name of the database to add/remove the user from
|
- The name of the database to add/remove the user from
|
||||||
required: true
|
required: true
|
||||||
user:
|
name:
|
||||||
description:
|
description:
|
||||||
- The name of the user to add or remove
|
- The name of the user to add or remove
|
||||||
required: true
|
required: true
|
||||||
default: null
|
default: null
|
||||||
|
aliases: [ 'user' ]
|
||||||
password:
|
password:
|
||||||
description:
|
description:
|
||||||
- The password to use for the user
|
- The password to use for the user
|
||||||
|
@ -178,7 +179,7 @@ def main():
|
||||||
login_port=dict(default='27017'),
|
login_port=dict(default='27017'),
|
||||||
replica_set=dict(default=None),
|
replica_set=dict(default=None),
|
||||||
database=dict(required=True, aliases=['db']),
|
database=dict(required=True, aliases=['db']),
|
||||||
user=dict(required=True, aliases=['name']),
|
name=dict(required=True, aliases=['user']),
|
||||||
password=dict(aliases=['pass']),
|
password=dict(aliases=['pass']),
|
||||||
ssl=dict(default=False),
|
ssl=dict(default=False),
|
||||||
roles=dict(default=None, type='list'),
|
roles=dict(default=None, type='list'),
|
||||||
|
@ -195,7 +196,7 @@ def main():
|
||||||
login_port = module.params['login_port']
|
login_port = module.params['login_port']
|
||||||
replica_set = module.params['replica_set']
|
replica_set = module.params['replica_set']
|
||||||
db_name = module.params['database']
|
db_name = module.params['database']
|
||||||
user = module.params['user']
|
user = module.params['name']
|
||||||
password = module.params['password']
|
password = module.params['password']
|
||||||
ssl = module.params['ssl']
|
ssl = module.params['ssl']
|
||||||
roles = module.params['roles']
|
roles = module.params['roles']
|
||||||
|
|
Loading…
Reference in a new issue