How praveenmogili/devops-2023 works
Main Components
• Terraform Module(s) & Scripts: Representing the infrastructure provisioning elements. This includes cloud networking (VCN, subnets – one public and one private), gateways (internet and service), routing (route tables), security components (security lists and network security groups), and compute instances.
• OCI Cloud Infrastructure: Show it as the environment where resources are created. Display components like VCN, subnets, and compute instances with labels like “ic_pub_vm-A”, “ic_pvt_vm-B”, etc.
• Ansible Roles & Playbooks: Representing configuration management tasks. There should be roles for deploying the programming challenge, performing instance configuration, and executing validations such as ping tests.
• Python Programming Challenge Component: Represent this as a separate module or artifact that runs on the provisioned instance. Note that it uses an external JSON file (problem.json) to drive its logic.
Architectural Patterns & Design Principles
• Separation of Concerns: Clearly distinguish between the provisioning layer (Terraform) and the configuration/deployment layer (Ansible), ensuring each has a clearly defined responsibility.
• Infrastructure as Code (IaC) and Configuration as Code: This is the underlying principle of the design; all infrastructure and configuration tasks are codified.