Skip to content

A playbook building high availability Load Balancer with HAProxy and keepalived.

Notifications You must be signed in to change notification settings

shufo/ansible-haproxy-keepalived

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-haproxy-keepalived

A playbook building high availability Load Balancer with HAProxy and keepalived.

Requirements

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).

$ vagrant up
  • Install to remote server.

Edit ansible_hosts.

default ansible_ssh_host=xxx.xxx.xxx.xxx ansible_ssh_port=22

Run playbook.

ansible-playbook site.yml -i ansible_hosts

vars

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

About

A playbook building high availability Load Balancer with HAProxy and keepalived.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages