How dohuyanevezuch/netology-diplom-inf works
This repository provisions Yandex Cloud infrastructure for a web application. The documented workflow is to bootstrap remote Terraform state, apply the main infrastructure (including a VPC, VM, registry, and Ansible inventory), then use Ansible to install and configure Docker on the VM. The README also documents an application-repository GitHub Actions build-and-publish capability; deployment from the registry to the VM is not described in the available evidence, so that connection is omitted. Relationships below are based on the README; no source excerpts were available.
Main entry points: infrastructure/main.tf Infrastructure root · playbook.yml Ansible playbook · main.yml Docker setup · vm/main.tf Compute VM
Components 16
State bootstrap
- State bootstrap
terraform/bootstrap/main.tf - Object Storage
terraform/bootstrap/main.tf
Cloud infrastructure
- Infrastructure root
terraform/infrastructure/main.tf - VPC and subnet
terraform/infrastructure/modules/vpc/main.tf - Security group
terraform/infrastructure/modules/security_group/main.tf - Compute VM
terraform/infrastructure/modules/vm/main.tf - Container registry
terraform/infrastructure/modules/container_registry/main.tf - Ansible inventory
terraform/infrastructure/inventory.tf
VM configuration
- Ansible playbook
ansible/playbook.yml - Docker setup
ansible/roles/docker/tasks/main.yml - Docker install
ansible/roles/docker/tasks/install.yml - Docker check
ansible/roles/docker/tasks/check.yml
Application delivery
- Application repository
- GitHub Actions
- Web application
Other components
- Operator
Connections 18
- Operator → State bootstrap: runs Terraform
README.md - State bootstrap → Object Storage: creates bucket
README.md - Operator → Infrastructure root: applies infrastructure
README.md - Infrastructure root → Object Storage: stores state
README.md - Infrastructure root → VPC and subnet: creates network
README.md - Infrastructure root → Security group: configures access
README.md - Infrastructure root → Compute VM: creates VM
README.md - Infrastructure root → Container registry: creates registry
README.md - Infrastructure root → Ansible inventory: generates inventory
README.md - Operator → Ansible playbook: runs playbook
README.md - Ansible playbook → Ansible inventory: connects using
README.md - Ansible playbook → Compute VM: configures VM
README.md - Ansible playbook → Docker setup: sets up Docker
README.md - Docker setup → Docker install: runs install tasks
README.md - Docker setup → Docker check: runs check tasks
README.md - Application repository → GitHub Actions: triggers builds
README.md - GitHub Actions → Container registry: publishes image
README.md - Compute VM → Web application: hosts application