Skip to content

justindh/ansible-haproxy

 
 

Repository files navigation

haproxy

Installs and configures HAProxy 1.5.

Versions

WARNING: This is the README for the master branch, which tracks the development of version 2 and targets Ansible 2.x. This branch is under active development and will include breaking changes.

The most recent release in the 1.x series is 1.1.0.

Features

  • Supports Alpine, CentOS, Debian, and Ubuntu.
  • Installs HAProxy 1.5 from official repositories on Debian and Ubuntu.
  • Installs EPEL repository on CentOS.

Role Variables

  • haproxy_global

    Global HAProxy settings.

  • haproxy_defaults

    Default settings for frontends, backends, and listen proxies.

  • haproxy_backends

    A list of HAProxy backends.

  • haproxy_frontends

    A list of HAProxy frontends.

  • haproxy_listen

    A list of listen proxies.

See vars/main.yml for a complete list of configurable .

Example

- hosts: loadbalancers
  roles:
     - role: haproxy
       haproxy_frontends:
       - name: 'fe-mysupersite'
         ip: '123.123.123.120'
         port: '80'
         maxconn: '1000'
         default_backend: 'be-mysupersite'
       haproxy_backends:
       - name: 'be-mysupersite'
         description: 'mysupersite is really cool'
         servers:
           - name: 'be-mysupersite-01'
             ip: '192.168.1.100'

License

Apache v2

About

Installs and configure HAProxy

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 63.5%
  • Python 33.0%
  • Makefile 3.5%