{"id":15090851,"url":"https://github.com/dcc6fvo/vagrant","last_synced_at":"2026-02-02T13:35:05.065Z","repository":{"id":229389546,"uuid":"776609477","full_name":"dcc6fvo/vagrant","owner":"dcc6fvo","description":"Vagrant scripts","archived":false,"fork":false,"pushed_at":"2024-03-24T01:30:53.000Z","size":349,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-28T10:43:31.312Z","etag":null,"topics":["load-balancer","loadbalancer","mysql","nginx","php","vagrant","virtualbox"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcc6fvo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-24T01:08:41.000Z","updated_at":"2024-03-24T01:30:10.000Z","dependencies_parsed_at":"2024-03-24T02:37:09.664Z","dependency_job_id":null,"html_url":"https://github.com/dcc6fvo/vagrant","commit_stats":null,"previous_names":["dcc6fvo/vagrant"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dcc6fvo/vagrant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcc6fvo%2Fvagrant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcc6fvo%2Fvagrant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcc6fvo%2Fvagrant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcc6fvo%2Fvagrant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcc6fvo","download_url":"https://codeload.github.com/dcc6fvo/vagrant/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcc6fvo%2Fvagrant/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29012699,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T12:48:30.580Z","status":"ssl_error","status_checked_at":"2026-02-02T12:46:38.384Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["load-balancer","loadbalancer","mysql","nginx","php","vagrant","virtualbox"],"created_at":"2024-09-25T10:34:22.168Z","updated_at":"2026-02-02T13:35:05.050Z","avatar_url":"https://github.com/dcc6fvo.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vagrant-virtualbox-advanced-with-loadbalancer\n\nThis is a more 'real world' example of vagrant configuration with virtualbox that provides 05 virtual machines: one nginx load balancer with https, two nginx http servers, a MySQL database and finally, the management machine with ansible software. Don't forget to create/use another SSH private key. The image below synthesizes the architecture:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"vagrant-advanced/images/ansible-advanced.drawio.png\" alt=\"Advanced real world example of vagrant and virtualbox configuration\"\u003e\n\u003c/p\u003e\n\nFirst things first!\n-----------------------\n1) Change the pub and private keys for ansible \u003c\u003e vms ssh access (/id_rsa, /id_rsa.pub, Vagrantfile);\n2) Change the virtual machines network configuration if needed. Currently configured IPs are 192.168.1.70, 192.168.1.71, 192.168.1.72, 192.168.1.73, and ansible with dhcp as your taste (take a look at Vagrantfile). \n3) Change default ansible variables located at configs/group_vars if needed.\n4) Change ansible host configuration at /hosts file if required.\n5) Configure your SSL certificate for the load balancer instead of auto generating one (/configs/roles/load-balance/tasks/main.yml)\n\nPrerequisites\n-----------------------\nVagrant and virtualbox are both essential and can be easily installed on ubuntu/debian like distro:\n\n\tsudo apt-get install virtualbox \u0026\u0026 sudo apt-get install vagrant\n   \nInstallation \u0026\u0026 Running\n-----------------------\n\nDo a git clone of the project\n\nAccess the newly created folder with the git clone command and type the following command:\n\n\tvagrant up\n\nTo forcible destroy all the configurations:\n\n\tvagrant detroy -f\n  \nFinally\n-----------------------\n\nIf everything goes normally you should be able to access nginx web server 1 (nginx-1) and nginx web server 2 (nginx-2) through nginx load balancer as as shown in the figures below:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"vagrant-advanced/images/nginx1.png\" alt=\"Acessing nginx webserver through load balancer\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"vagrant-advanced/images/nginx2.png\" alt=\"Acessing nginx webserver through load balancer\"\u003e\n\u003c/p\u003e\n\nVirtualbox should look like:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"vagrant-advanced/images/virtualbox.png\" alt=\"Virtualbox screenshot\"\u003e\n\u003c/p\u003e\n  \n# vagrant-basic-web-db-ansible\n\nThis is a simple vagrant configuration that provides 03 virtual machines: one with nginx and php, another with MySQL database and finally, the management machine with ansible software. Don't forget to create/use another SSH private key.\n\nThere is a puppet + vagrant configuration version with the \"puppet\" branch.\n\nPrerequisites\n-----------------------\nVagrant and virtualbox are both essential and can be easily installed on ubuntu/debian like distro:\n\n\tsudo apt-get install virtualbox \u0026\u0026 sudo apt-get install vagrant\n\n\nInstallation \u0026\u0026 Running\n-----------------------\n\nDo a git clone of the project\n\nAccess the newly created folder with the git clone command and type the following command:\n\n\tvagrant up\n\nTo forcible destroy all the configurations:\n\n\tvagrant detroy -f\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcc6fvo%2Fvagrant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcc6fvo%2Fvagrant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcc6fvo%2Fvagrant/lists"}