Skip to content

Update RDS Aurora variables #568

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 43 commits into from
Feb 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
195ff54
Need to check if is_local is defined in webserver meta dependencies. …
EmlynK Jan 5, 2022
a21e8d1
Ce dev refactor pr 1.x (#518)
gregharvey Jan 5, 2022
cb681f8
Adding backup handling to ldap_server. (#525)
gregharvey Jan 10, 2022
f134be0
Allowing 'gitLab' to disable Prometheus. (#530)
gregharvey Jan 17, 2022
450d409
GitHub Actions - Rebuilt documentation. (#526)
github-actions[bot] Jan 17, 2022
965d7b2
Prometheus pr 1.x (#533)
gregharvey Jan 17, 2022
cbb386d
Add private files support for Drupal in Nginx. (#535)
EmlynK Jan 18, 2022
8904ba8
Prometheus pr 1.x (#539)
gregharvey Jan 18, 2022
df86ca3
Removing our unused ClamAV roles and adding a Galaxy role to common b…
gregharvey Jan 25, 2022
c0e8b06
Revert "Moving OSSEC pkill to use process_manager role instead. (#258…
gregharvey Jan 27, 2022
9b41cf7
Moving key servers to a variable so we can set them. (#555)
gregharvey Feb 3, 2022
89ef9ef
Attempt to create an RDS read replica.
EmlynK Feb 4, 2022
d459ea1
Merge branch 'devel' into rds-aurora_PR_devel
EmlynK Feb 4, 2022
114fb70
Merge branch 'rds-aurora' into rds-aurora_PR_devel
EmlynK Feb 4, 2022
2e7d5b8
Use new task to create Aurora RDS instances.
EmlynK Feb 4, 2022
d9b4c03
Try and fix linting issues.
EmlynK Feb 4, 2022
60c08cf
Merge branch 'devel' into rds-aurora_PR_devel
EmlynK Feb 4, 2022
b2e8ac0
Merge branch 'rds-aurora' into rds-aurora_PR_devel
EmlynK Feb 4, 2022
796eebc
Don't pass max_storage variable for Aurora instances.
EmlynK Feb 4, 2022
79bc2bd
Merge branch 'devel' into rds-aurora_PR_devel
EmlynK Feb 4, 2022
2d10a8b
Merge branch 'rds-aurora' into rds-aurora_PR_devel
EmlynK Feb 4, 2022
d748ba1
Remove more storage related vars from Aurora RDS instance creation task.
EmlynK Feb 4, 2022
ac889dc
Merge branch 'devel' into rds-aurora_PR_devel
EmlynK Feb 4, 2022
614fea2
Merge branch 'rds-aurora' into rds-aurora_PR_devel
EmlynK Feb 4, 2022
ef7b5b3
Add profile and region to read replica creation.
EmlynK Feb 4, 2022
93809d6
Merge branch 'devel' into rds-aurora_PR_devel
EmlynK Feb 4, 2022
efd4ef9
Merge branch 'rds-aurora' into rds-aurora_PR_devel
EmlynK Feb 4, 2022
d553f4f
Try creating the Aurora read replica another way.
EmlynK Feb 4, 2022
46ec0da
Merge branch 'devel' into rds-aurora_PR_devel
EmlynK Feb 4, 2022
e0b0d61
Merge branch 'rds-aurora' into rds-aurora_PR_devel
EmlynK Feb 4, 2022
bb4e01e
Add some debug info.
EmlynK Feb 4, 2022
bcd69fa
Merge branch 'devel' into rds-aurora_PR_devel
EmlynK Feb 4, 2022
aa6bb0a
Merge branch 'rds-aurora' into rds-aurora_PR_devel
EmlynK Feb 4, 2022
8454ff4
Work around the silly registering of variables in Ansible.
EmlynK Feb 4, 2022
a91a409
Merge branch 'devel' into rds-aurora_PR_devel
EmlynK Feb 4, 2022
a76bab7
Merge branch 'rds-aurora' into rds-aurora_PR_devel
EmlynK Feb 4, 2022
70152d4
Rename an RDS CloudWatch task for Aurora DBs and remove RDS debug info.
EmlynK Feb 7, 2022
d666086
Add some Aurora info to aws_rds README file.
EmlynK Feb 7, 2022
4cc7dcd
Merge branch 'devel' into rds-aurora_PR_devel
EmlynK Feb 7, 2022
36a8872
Merge branch 'rds-aurora' into rds-aurora_PR_devel
EmlynK Feb 7, 2022
342ff53
Use reader instead of replica for Aurora readers.
EmlynK Feb 7, 2022
721acd0
Merge branch 'devel' into rds-aurora_PR_devel
EmlynK Feb 7, 2022
b7ccf08
Merge branch 'rds-aurora' into rds-aurora_PR_devel
EmlynK Feb 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion roles/aws/aws_rds/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ aws_rds:
state: present
description: example
engine: mariadb
replica: false # If true, a read replica will be created.
aurora_reader: false # If true, an Aurora reader instance will be created.
# engine_version: '5.7.2' # Omit to use latest.
# See parameter group docs: https://docs.ansible.com/ansible/latest/collections/community/aws/rds_param_group_module.html
# db_parameter_group_name: "example" # Omit to use default
Expand Down
8 changes: 4 additions & 4 deletions roles/aws/aws_rds/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,25 @@
register: _rds_instance_info_aurora
when: "'aurora' in aws_rds.engine"

- name: Create Aurora RDS read replica instance.
- name: Create Aurora RDS reader instance.
community.aws.rds_instance:
db_instance_identifier: "{{ aws_rds.name }}-replica"
db_instance_identifier: "{{ aws_rds.name }}-reader"
db_cluster_identifier: "{{ aws_rds.db_cluster_identifier }}"
db_instance_class: "{{ aws_rds.db_instance_class }}"
state: "{{ aws_rds.state }}"
engine: "{{ aws_rds.engine }}"
copy_tags_to_snapshot: true
publicly_accessible: "{{ aws_rds.publicly_accessible }}"
profile: "{{ aws_rds.aws_profile }}"
tags: "{{ aws_rds.tags | combine({ 'Name': aws_rds.name + '-replica' }) }}"
tags: "{{ aws_rds.tags | combine({ 'Name': aws_rds.name + '-reader' }) }}"
allow_major_version_upgrade: false
apply_immediately: true
wait: true
region: "{{ aws_rds.region }}"
engine_version: "{{ aws_rds.engine_version | default(omit) }}"
when:
- "'aurora' in aws_rds.engine"
- aws_rds.replica
- aws_rds.aurora_reader

- name: Create RDS instance
community.aws.rds_instance:
Expand Down