Skip to content

luthfiset/ansible_flask_app_loader_all_in_one

Repository files navigation

Overview

New monolithic Ansible playbook, main.yml and supporting files which is designed for teaching and training in refacoring and the use of roles, collections etc. Designed to replace the function of the old bad-ansible with a different approach, i.e. start with a fully functional playbook and teardown and iteratively refactor.

Quick Start

Assumes a configuration matching an AgnosticD three-tier-app with a devops service account.

  1. Deploy

    ansible-playbook main.yml

Overall Architecture

ntier app topology

Concept change from bad-ansible

n-tier app is designed to be well written but monolithic in its construction to all useful exercises in refactoring, introducing modularity, and a backdrop to create roles and or collections from sound a sound ansible code base.

Outline of main flow

  • common

    • setup yum repos (via satellite)

    • setup firewalld

  • setup postgres

    • firewalld rule opening 5432

    • install postgres 10

    • no data load phase - come back to that?

  • setup app tier

    • firewalld rule opening 443

Development Environment

While intended to be deployed on a real cloud or virtualization platform it comes with a Vagrantfile and associated playbooks

Deploying the Database Tier

Notes:

Does firewalld need to be configured?

Resources

  • Jeff Geerling’s Ansible Galaxy Role

  • Useful articles on Postgres

    • Setting it up from scratch

Credits

  • Aditya Patawari and Vikas Aggarwal

    • I used their phone app during debugging

    • Shout out for their Ansible Automation Cookbook

  • Jeff Geerlinguy for his Ansible Galaxy Postgres Role

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published