forked from ansible-collections/community.aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rds_cluster - update list of supported engines (ansible-collections#1191
) rds_cluster - update list of supported engines SUMMARY Add support for mysql and postgres engines ISSUE TYPE Bugfix Pull Request Docs Pull Request Feature Pull Request New Module Pull Request COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: Mark Chappell
- Loading branch information
1 parent
4aa35e3
commit 20b4115
Showing
7 changed files
with
210 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
minor_changes: | ||
- rds_cluster - update list of supported engines with ``mysql`` and ``postgres`` (https://github.com/ansible-collections/amazon.aws/pull/1191). | ||
- rds_cluster - add new options (e.g., ``db_cluster_instance_class``, ``allocated_storage``, ``storage_type``, ``iops``) (https://github.com/ansible-collections/amazon.aws/pull/1191). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
cloud/aws | ||
|
||
# It takes >20min to spawn the mutlti az cluster | ||
disabled | ||
|
||
rds_cluster | ||
rds_cluster_info |
7 changes: 7 additions & 0 deletions
7
tests/integration/targets/rds_cluster_multi_az/defaults/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Create cluster | ||
cluster_id: ansible-test-{{ tiny_prefix }} | ||
username: testrdsusername | ||
password: "{{ lookup('password', 'dev/null length=12 chars=ascii_letters,digits') }}" | ||
tags_create: | ||
Name: ansible-test-cluster-{{ tiny_prefix }} | ||
Created_By: Ansible_rds_cluster_integration_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
dependencies: | ||
- role: setup_botocore_pip | ||
vars: | ||
botocore_version: "1.23.44" |
79 changes: 79 additions & 0 deletions
79
tests/integration/targets/rds_cluster_multi_az/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
--- | ||
- module_defaults: | ||
group/aws: | ||
region: "{{ aws_region }}" | ||
aws_access_key: "{{ aws_access_key }}" | ||
aws_secret_key: "{{ aws_secret_key }}" | ||
security_token: "{{ security_token | default(omit) }}" | ||
collections: | ||
- amazon.aws | ||
|
||
block: | ||
- name: Ensure the resource doesn't exist | ||
rds_cluster: | ||
id: '{{ cluster_id }}' | ||
state: absent | ||
engine: 'mysql' | ||
username: '{{ username }}' | ||
password: '{{ password }}' | ||
skip_final_snapshot: true | ||
register: _result_delete_db_cluster | ||
|
||
- assert: | ||
that: | ||
- not _result_delete_db_cluster.changed | ||
ignore_errors: true | ||
|
||
- name: Create a source DB cluster (CHECK_MODE) | ||
rds_cluster: | ||
id: '{{ cluster_id }}' | ||
state: present | ||
engine: 'mysql' | ||
engine_version: 8.0.28 | ||
allocated_storage: 100 | ||
iops: 5000 | ||
db_cluster_instance_class: db.r6gd.xlarge | ||
username: '{{ username }}' | ||
password: '{{ password }}' | ||
wait: true | ||
tags: '{{ tags_create }}' | ||
register: _result_create_source_db_cluster | ||
check_mode: True | ||
vars: | ||
ansible_python_interpreter: "{{ botocore_virtualenv_interpreter }}" | ||
|
||
- assert: | ||
that: | ||
- _result_create_source_db_cluster.changed | ||
|
||
- name: Create a source DB cluster | ||
rds_cluster: | ||
id: '{{ cluster_id }}' | ||
state: present | ||
engine: 'mysql' | ||
engine_version: 8.0.28 | ||
allocated_storage: 100 | ||
iops: 5000 | ||
db_cluster_instance_class: db.r6gd.xlarge | ||
username: '{{ username }}' | ||
password: '{{ password }}' | ||
wait: true | ||
tags: '{{ tags_create }}' | ||
register: _result_create_source_db_cluster | ||
vars: | ||
ansible_python_interpreter: "{{ botocore_virtualenv_interpreter }}" | ||
|
||
- assert: | ||
that: | ||
- _result_create_source_db_cluster.changed | ||
|
||
always: | ||
|
||
- name: Delete DB cluster without creating a final snapshot | ||
rds_cluster: | ||
state: absent | ||
cluster_id: '{{ item }}' | ||
skip_final_snapshot: true | ||
ignore_errors: true | ||
loop: | ||
- '{{ cluster_id }}' |