AWS: Add support for available db types (#48703)

Add several database types which are supported by AWS in valid engine type.

Fixes: #48623

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/49522/head
Abhijeet Kasurde 6 years ago committed by GitHub
parent 257a8af922
commit 1763c8123b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -44,35 +44,8 @@ options:
engine: engine:
description: description:
- The type of database for this group. Required for state=present. - The type of database for this group. Required for state=present.
choices: - Please use following command to get list of all supported db engines and their respective versions.
- 'aurora5.6' - '# aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily"'
- 'mariadb10.0'
- 'mariadb10.1'
- 'mysql5.1'
- 'mysql5.5'
- 'mysql5.6'
- 'mysql5.7'
- 'oracle-ee-11.2'
- 'oracle-ee-12.1'
- 'oracle-se-11.2'
- 'oracle-se-12.1'
- 'oracle-se1-11.2'
- 'oracle-se1-12.1'
- 'postgres9.3'
- 'postgres9.4'
- 'postgres9.5'
- 'postgres9.6'
- 'sqlserver-ee-10.5'
- 'sqlserver-ee-11.0'
- 'sqlserver-ex-10.5'
- 'sqlserver-ex-11.0'
- 'sqlserver-ex-12.0'
- 'sqlserver-se-10.5'
- 'sqlserver-se-11.0'
- 'sqlserver-se-12.0'
- 'sqlserver-web-10.5'
- 'sqlserver-web-11.0'
- 'sqlserver-web-12.0'
immediate: immediate:
description: description:
- Whether to apply the changes immediately, or after the next reboot of any associated instances. - Whether to apply the changes immediately, or after the next reboot of any associated instances.
@ -163,38 +136,6 @@ try:
except ImportError: except ImportError:
pass # caught by imported HAS_BOTO3 pass # caught by imported HAS_BOTO3
VALID_ENGINES = [
'aurora5.6',
'mariadb10.0',
'mariadb10.1',
'mysql5.1',
'mysql5.5',
'mysql5.6',
'mysql5.7',
'oracle-ee-11.2',
'oracle-ee-12.1',
'oracle-se-11.2',
'oracle-se-12.1',
'oracle-se1-11.2',
'oracle-se1-12.1',
'postgres9.3',
'postgres9.4',
'postgres9.5',
'postgres9.6',
'sqlserver-ee-10.5',
'sqlserver-ee-11.0',
'sqlserver-ex-10.5',
'sqlserver-ex-11.0',
'sqlserver-ex-12.0',
'sqlserver-se-10.5',
'sqlserver-se-11.0',
'sqlserver-se-12.0',
'sqlserver-web-10.5',
'sqlserver-web-11.0',
'sqlserver-web-12.0',
]
INT_MODIFIERS = { INT_MODIFIERS = {
'K': 1024, 'K': 1024,
'M': pow(1024, 2), 'M': pow(1024, 2),

@ -78,7 +78,6 @@ lib/ansible/modules/cloud/amazon/lambda_event.py E317
lib/ansible/modules/cloud/amazon/rds.py E322 lib/ansible/modules/cloud/amazon/rds.py E322
lib/ansible/modules/cloud/amazon/rds.py E327 lib/ansible/modules/cloud/amazon/rds.py E327
lib/ansible/modules/cloud/amazon/rds_param_group.py E324 lib/ansible/modules/cloud/amazon/rds_param_group.py E324
lib/ansible/modules/cloud/amazon/rds_param_group.py E326
lib/ansible/modules/cloud/amazon/rds_subnet_group.py E324 lib/ansible/modules/cloud/amazon/rds_subnet_group.py E324
lib/ansible/modules/cloud/amazon/redshift.py E322 lib/ansible/modules/cloud/amazon/redshift.py E322
lib/ansible/modules/cloud/amazon/redshift.py E325 lib/ansible/modules/cloud/amazon/redshift.py E325

Loading…
Cancel
Save