1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fixed rax_cdb argument spec

now we pull the actual arguments and added aliases to be nice
fixes #3075
This commit is contained in:
Brian Coca 2016-02-19 06:55:38 -08:00 committed by Matt Clay
parent b58e16ed3d
commit ab6242bace

View file

@ -43,11 +43,13 @@ options:
- type of instance (i.e. MySQL, MariaDB, Percona) - type of instance (i.e. MySQL, MariaDB, Percona)
default: MySQL default: MySQL
version_added: "2.0" version_added: "2.0"
aliases: ['type']
cdb_version: cdb_version:
description: description:
- version of database (MySQL supports 5.1 and 5.6, MariaDB supports 10, Percona supports 5.6) - version of database (MySQL supports 5.1 and 5.6, MariaDB supports 10, Percona supports 5.6)
choices: ['5.1', '5.6', '10'] choices: ['5.1', '5.6', '10']
version_added: "2.0" version_added: "2.0"
aliases: ['version']
state: state:
description: description:
- Indicate desired state of the resource - Indicate desired state of the resource
@ -222,8 +224,8 @@ def main():
name=dict(type='str', required=True), name=dict(type='str', required=True),
flavor=dict(type='int', default=1), flavor=dict(type='int', default=1),
volume=dict(type='int', default=2), volume=dict(type='int', default=2),
cdb_type=dict(type='str', default='MySQL'), cdb_type=dict(type='str', default='MySQL', aliases=['type']),
cdb_version=dict(type='str', default='5.6'), cdb_version=dict(type='str', default='5.6', aliases=['version']),
state=dict(default='present', choices=['present', 'absent']), state=dict(default='present', choices=['present', 'absent']),
wait=dict(type='bool', default=False), wait=dict(type='bool', default=False),
wait_timeout=dict(type='int', default=300), wait_timeout=dict(type='int', default=300),
@ -241,8 +243,8 @@ def main():
name = module.params.get('name') name = module.params.get('name')
flavor = module.params.get('flavor') flavor = module.params.get('flavor')
volume = module.params.get('volume') volume = module.params.get('volume')
cdb_type = module.params.get('type') cdb_type = module.params.get('cdb_type')
cdb_version = module.params.get('version') cdb_version = module.params.get('cdb_version')
state = module.params.get('state') state = module.params.get('state')
wait = module.params.get('wait') wait = module.params.get('wait')
wait_timeout = module.params.get('wait_timeout') wait_timeout = module.params.get('wait_timeout')