Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shufo/ansible-haproxy-keepalived
A playbook building high availability Load Balancer with HAProxy and keepalived.
https://github.com/shufo/ansible-haproxy-keepalived
ansible haproxy keepalived
Last synced: 16 days ago
JSON representation
A playbook building high availability Load Balancer with HAProxy and keepalived.
- Host: GitHub
- URL: https://github.com/shufo/ansible-haproxy-keepalived
- Owner: shufo
- Created: 2014-11-06T07:16:51.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T20:30:19.000Z (11 months ago)
- Last Synced: 2024-10-13T01:41:09.832Z (about 1 month ago)
- Topics: ansible, haproxy, keepalived
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 40
- Watchers: 3
- Forks: 22
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ansible-haproxy-keepalived
==========================A playbook building high availability Load Balancer with HAProxy and keepalived.
## Requirements
- [VirtualBox](https://www.virtualbox.org/wiki/Downloads). Tested on 4.3.x.
- [Vagrant](http://www.vagrantup.com/downloads.html). Tested on 1.6.3
- [Ansible](http://docs.ansible.com/intro_installation.html). Tested on 1.7.1## Overview
It will install high availability Load Balancer with HAProxy and keepalived.
You can customize it by edit vars file.
Tested on Ubuntu 14.04 Trusty and CentOS 6.5.## Usage
- Edit vars/main.yml
- Test on Vagrant virtual machine(Requires Ansible).
```bash
$ vagrant up
```- Install to remote server.
Edit `ansible_hosts`.
```
default ansible_ssh_host=xxx.xxx.xxx.xxx ansible_ssh_port=22
```Run playbook.
```bash
ansible-playbook site.yml -i ansible_hosts
```## vars
```vars/main.yml
haproxy_user: haproxy
haproxy_major_version: 1.5
haproxy_minor_version: 8
haproxy_download_url: "http://www.haproxy.org/download/{{ haproxy_major_version }}/src/haproxy-{{ haproxy_major_version }}.{{ haproxy_minor_version }}.tar.gz"
haproxy_src_dir: /tmp
haproxy_make_option: TARGET=linux2628 CPU=x86_64 USE_OPENSSL=1 USE_ZLIB=1 USE_PCRE=1
```## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request