mirror of https://github.com/ansible/ansible.git
AWS dynamic inventory: fixup RDS integration tests (#61259)
* ec2 inventory/rds: (integration tests) migrate to module_defaults and cope with missing security_token * ec2 inventory/rds: (integration tests) Avoid hard coding the parameter group name Generated it based on the information returned when creating the RDS instance. * ec2 inventory/rds: (integration tests) rename templates to .j2 rather than .yml - avoids throwing yamllint errors - makes it clear they're templates not the final yaml files.pull/61294/head
parent
a6b124cccc
commit
4e6298b847
@ -1,7 +1,9 @@
|
|||||||
plugin: aws_rds
|
plugin: aws_rds
|
||||||
aws_access_key_id: '{{ aws_access_key }}'
|
aws_access_key_id: '{{ aws_access_key }}'
|
||||||
aws_secret_access_key: '{{ aws_secret_key }}'
|
aws_secret_access_key: '{{ aws_secret_key }}'
|
||||||
|
{% if security_token | default(false) %}
|
||||||
aws_security_token: '{{ security_token }}'
|
aws_security_token: '{{ security_token }}'
|
||||||
|
{% endif %}
|
||||||
regions:
|
regions:
|
||||||
- '{{ aws_region }}'
|
- '{{ aws_region }}'
|
||||||
filters:
|
filters:
|
@ -1,7 +1,9 @@
|
|||||||
plugin: aws_rds
|
plugin: aws_rds
|
||||||
aws_access_key_id: '{{ aws_access_key }}'
|
aws_access_key_id: '{{ aws_access_key }}'
|
||||||
aws_secret_access_key: '{{ aws_secret_key }}'
|
aws_secret_access_key: '{{ aws_secret_key }}'
|
||||||
|
{% if security_token | default(false) %}
|
||||||
aws_security_token: '{{ security_token }}'
|
aws_security_token: '{{ security_token }}'
|
||||||
|
{% endif %}
|
||||||
regions:
|
regions:
|
||||||
- '{{ aws_region }}'
|
- '{{ aws_region }}'
|
||||||
keyed_groups:
|
keyed_groups:
|
Loading…
Reference in New Issue