https://github.com/leoviana00/lab-haproxy-keepalived
Lab para testar haproxy com keepalived
https://github.com/leoviana00/lab-haproxy-keepalived
haproxy keepalived nginx vagrant virtualbox
Last synced: about 2 months ago
JSON representation
Lab para testar haproxy com keepalived
- Host: GitHub
- URL: https://github.com/leoviana00/lab-haproxy-keepalived
- Owner: leoviana00
- License: mit
- Created: 2023-02-27T18:41:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-28T11:14:32.000Z (over 3 years ago)
- Last Synced: 2025-01-25T10:11:21.305Z (over 1 year ago)
- Topics: haproxy, keepalived, nginx, vagrant, virtualbox
- Language: Jinja
- Homepage:
- Size: 322 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
Haproxy e Keepalived
Projeto |
Tecnologias |
Ambiente |
Etapas |
Licença |
Referências
## 🌱 Projeto
- Loadbalancer com Haproxy
## ✨ Tecnologias
- Virtualbox
- Vagrant
- Ansible
- Haproxy
- Keepalived
- Nginx
## 🗒 Ambiente
- [x] [Criar chave ssh para o projeto](./keys/)
- [x] [Criar um vagrantifile para subir dois servidores para o Haproxy e dois para o Webserver com Nginx](./vagrantfile)
- [x] [Criar playbook para automatizar as seguintes tarefas](./site.yaml)
- [x] [Configuração dos Hosts](./roles/configure_hosts/)
- [x] Instalar docker
- [x] Instalar containerd
- [x] Criar usuários e grupos
- [x] Jogar a chave ssh pública do usuárion para dentro da vm
- [x] [Instalar e configurar 2 webserver Nginx](./roles/configure_webserver/)
- [x] Criar arquivo ngin.conf simples
- [x] Criar um index.html simples
- [x] Instalar e Configurar o Haproxy
- [x] Instalar e configurar o Keepalived
## 🚀 Etapas
1. Role para configuração dos Hosts
```bash
ansible-playbook -i inventory/virtualbox.yaml site.yaml --tags setup
```
2. Role para instalação e configuração dos webservers
```bash
ansible-playbook -i inventory/virtualbox.yaml site.yaml --tags web
```
3. Role para Instalação/configurar do Haproxy
```bash
ansible-playbook -i inventory/virtualbox.yaml site.yaml --tags install
```
4. Role para configurar o haproxy e instalar/configura o Keepalived
```bash
ansible-playbook -i inventory/virtualbox.yaml site.yaml --tags configure
```
## 📄 Licença
Esse projeto está sob a licença MIT. Veja o arquivo [LICENSE](LICENSE) para mais detalhes.
## 🙇 Referências