{"id":21676104,"url":"https://github.com/leoviana00/lab-haproxy-keepalived","last_synced_at":"2026-04-20T13:05:06.822Z","repository":{"id":128273987,"uuid":"607315302","full_name":"leoviana00/lab-haproxy-keepalived","owner":"leoviana00","description":"Lab para testar haproxy com keepalived","archived":false,"fork":false,"pushed_at":"2023-02-28T11:14:32.000Z","size":330,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T10:11:21.305Z","etag":null,"topics":["haproxy","keepalived","nginx","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leoviana00.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null}},"created_at":"2023-02-27T18:41:36.000Z","updated_at":"2023-02-27T18:53:19.000Z","dependencies_parsed_at":"2023-03-22T07:03:06.665Z","dependency_job_id":null,"html_url":"https://github.com/leoviana00/lab-haproxy-keepalived","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoviana00%2Flab-haproxy-keepalived","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoviana00%2Flab-haproxy-keepalived/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoviana00%2Flab-haproxy-keepalived/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoviana00%2Flab-haproxy-keepalived/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leoviana00","download_url":"https://codeload.github.com/leoviana00/lab-haproxy-keepalived/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244583558,"owners_count":20476357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["haproxy","keepalived","nginx","vagrant","virtualbox"],"created_at":"2024-11-25T14:12:12.473Z","updated_at":"2026-04-20T13:05:06.757Z","avatar_url":"https://github.com/leoviana00.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eHaproxy e Keepalived\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Haproxy\" src=\"https://img.shields.io/static/v1?label=Haproxy\u0026message=Keepalived\u0026color=8257E5\u0026labelColor=000000\"  /\u003e\n  \u003cimg alt=\"License\" src=\"https://img.shields.io/static/v1?label=license\u0026message=MIT\u0026color=49AA26\u0026labelColor=000000\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#-projeto\"\u003eProjeto\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#-tecnologias\"\u003eTecnologias\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#-ambiente\"\u003eAmbiente\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#-etapas\"\u003eEtapas\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#-licença\"\u003eLicença\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#-referências\"\u003eReferências\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"k8s\" src=\"images/haproxy-keepalived.png\"\u003e\n\u003c/p\u003e\n\n## 🌱 Projeto\n- Loadbalancer com Haproxy\n\n## ✨ Tecnologias\n\n- Virtualbox\n- Vagrant\n- Ansible\n- Haproxy\n- Keepalived\n- Nginx\n\n## 🗒 Ambiente\n\n- [x] [Criar chave ssh para o projeto](./keys/)\n- [x] [Criar um vagrantifile para subir dois servidores para o Haproxy e dois para o Webserver com Nginx](./vagrantfile)\n- [x] [Criar playbook para automatizar as seguintes tarefas](./site.yaml)\n    - [x] [Configuração dos Hosts](./roles/configure_hosts/)\n        - [x] Instalar docker\n        - [x] Instalar containerd\n        - [x] Criar usuários e grupos\n        - [x] Jogar a chave ssh pública do usuárion para dentro da vm\n    - [x] [Instalar e configurar 2 webserver Nginx](./roles/configure_webserver/)\n        - [x] Criar arquivo ngin.conf simples\n        - [x] Criar um index.html simples\n    - [x] Instalar e Configurar o Haproxy\n    - [x] Instalar e configurar o Keepalived\n\n## 🚀 Etapas\n\n1. Role para configuração dos Hosts\n\n```bash\nansible-playbook -i inventory/virtualbox.yaml site.yaml --tags setup\n```\n\n2. Role para instalação e configuração dos webservers\n\n```bash\nansible-playbook -i inventory/virtualbox.yaml site.yaml --tags web\n```\n\n3. Role para Instalação/configurar do Haproxy\n\n```bash\nansible-playbook -i inventory/virtualbox.yaml site.yaml --tags install\n```\n\n4. Role para configurar o haproxy e instalar/configura o Keepalived\n\n```bash\nansible-playbook -i inventory/virtualbox.yaml site.yaml --tags configure\n```\n\n## 📄 Licença\nEsse projeto está sob a licença MIT. Veja o arquivo [LICENSE](LICENSE) para mais detalhes.\n\n## 🙇 Referências","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoviana00%2Flab-haproxy-keepalived","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleoviana00%2Flab-haproxy-keepalived","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoviana00%2Flab-haproxy-keepalived/lists"}