Skip to content
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

Create a playbook to deploy a simple flask web app into high availability architecture #97

Merged
merged 20 commits into from
Oct 25, 2023

Conversation

GomathiselviS
Copy link
Contributor

@GomathiselviS GomathiselviS commented Sep 20, 2023

@GomathiselviS GomathiselviS marked this pull request as draft September 20, 2023 02:30
@GomathiselviS GomathiselviS marked this pull request as ready for review October 6, 2023 18:57
@GomathiselviS GomathiselviS changed the title WIP: Create a playbook to deploy a simple flask web app into high availability architecture Create a playbook to deploy a simple flask web app into high availability architecture Oct 6, 2023
playbooks/webapp/README.md Outdated Show resolved Hide resolved
playbooks/webapp/tasks/create_aurora_db_cluster.yaml Outdated Show resolved Hide resolved
playbooks/webapp/tasks/create_aurora_db_cluster.yaml Outdated Show resolved Hide resolved
playbooks/webapp/tasks/create_aurora_setup.yaml Outdated Show resolved Hide resolved
changelogs/fragments/webapp_in_HA_playbook.yaml Outdated Show resolved Hide resolved
playbooks/webapp/README.md Outdated Show resolved Hide resolved
playbooks/webapp/README.md Outdated Show resolved Hide resolved
playbooks/webapp/README.md Outdated Show resolved Hide resolved
playbooks/webapp/vars/main.yaml Show resolved Hide resolved
playbooks/webapp/tasks/delete.yaml Show resolved Hide resolved
playbooks/webapp/README.md Outdated Show resolved Hide resolved
playbooks/webapp/vars/main.yaml Outdated Show resolved Hide resolved
playbooks/webapp/tasks/create_aurora_setup.yaml Outdated Show resolved Hide resolved
playbooks/webapp/vars/main.yaml Outdated Show resolved Hide resolved
@@ -85,7 +85,7 @@ To delete the webapp:
### Common

* **operation** (str): Operation for the webapp playbook to perform, either `create` or `delete`. Default: `create`
* **resource_prefix** (str): (Required) A prefix to prepend to the name of all AWS resources created for the webapp
* **resource_prefix** (str): A prefix to prepend to the name of all AWS resources created for the webapp. Default: `ansible-test`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a breaking_change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This modification should have no impact on current users of this playbook. I don't consider it a breaking change. I believed that setting a default value, rather than making it a required parameter, was a more practical approach.

playbooks/webapp/tasks/delete.yaml Outdated Show resolved Hide resolved
@@ -157,6 +157,25 @@ To delete the webapp:
```
* **deploy_flask_app_force_init** (bool): Whether to drop existing tables and create new ones when deploying the webapp database. Default: `false`

### webapp deployment in HA architecture
Copy link
Contributor

@alinabuzachis alinabuzachis Oct 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this deployment deploy_flask_app_workers_instance_type uses a t3.micro and cannot see where it is documented. It will be probably better to create a dedicated README for the high availability deployment especially if some default values from the webapp deployment are not retained. I personally find it clearer to to have separate READMEs, you can also reference the other rather than duplicating information.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have referenced the other variables used for this playbook here - https://github.com/redhat-cop/cloud.aws_ops/pull/97/files#diff-9ac3987075e323c6dbca1ada8d6a37a9768cbc9f22ae5168b3d84c49556422e1R164. I can add a link.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding the usage of t3.micro , based on this comment, I am retaining the default value - 't2.xlarge'. I will remove t3.micro from the playbooks and use it only for our testing.

playbooks/webapp/webapp_ha_aurora.yaml Show resolved Hide resolved
playbooks/webapp/vars/main.yaml Outdated Show resolved Hide resolved
playbooks/webapp/tasks/delete_route53_records.yaml Outdated Show resolved Hide resolved
playbooks/webapp/tasks/delete_route53_records.yaml Outdated Show resolved Hide resolved
playbooks/webapp/tasks/add_route53_records.yaml Outdated Show resolved Hide resolved
playbooks/webapp/tasks/add_route53_records.yaml Outdated Show resolved Hide resolved
playbooks/webapp/tasks/delete.yaml Show resolved Hide resolved
@GomathiselviS GomathiselviS merged commit f99f858 into redhat-cop:main Oct 25, 2023
18 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants