How katar012/microproyecto2 works
This repository contains infrastructure-as-code for provisioning and configuring VMs, Docker, microservice containers, and HAProxy. The evidenced Chef workflow is role selection → cookbook recipes → host configuration; the microservices recipe launches paired HTTP-echo containers for users, products, and orders. The README adds no product detail. Terraform and Vagrant are present, but their contents were not sampled, so their relationships and responsibilities cannot be established here.
Main entry points: recipes/default.rb Microservice containers · microservices.rb Docker role · recipes/default.rb Docker installation · recipes/default.rb HAProxy installation
Components 11
Provisioning
- Terraform definitions
1-2. Infraestructura/terraform - Vagrant environment
Vagrantfile
Chef configuration
- Chef Solo settings
1-2. Infraestructura/chef/solo.rb - Docker role
1-2. Infraestructura/chef/roles/microservices.rb - HAProxy role
1-2. Infraestructura/chef/roles/haproxy.rb
Runtime services
- Docker installation
1-2. Infraestructura/chef/cookbooks/docker/recipes/default.rb - Microservice containers
1-2. Infraestructura/chef/cookbooks/microservices/recipes/default.rb - HAProxy installation
1-2. Infraestructura/chef/cookbooks/haproxy/recipes/default.rb - HAProxy configuration
1-2. Infraestructura/chef/cookbooks/haproxy/templates/default/haproxy.cfg.erb
Other components
- Docker Engine
- HTTP echo image
Connections 7
- Docker role → Docker installation: runs recipe
1-2. Infraestructura/chef/roles/microservices.rb - Docker role → Microservice containers: runs recipe
1-2. Infraestructura/chef/roles/microservices.rb - HAProxy role → HAProxy installation: runs recipe
1-2. Infraestructura/chef/roles/haproxy.rb - Docker installation → Docker Engine: installs and starts
1-2. Infraestructura/chef/cookbooks/docker/recipes/default.rb - Microservice containers → Docker Engine: runs containers
1-2. Infraestructura/chef/cookbooks/microservices/recipes/default.rb - Microservice containers → HTTP echo image: runs image
1-2. Infraestructura/chef/cookbooks/microservices/recipes/default.rb - HAProxy installation → HAProxy configuration: installs template
1-2. Infraestructura/chef/cookbooks/haproxy/recipes/default.rb