ansible-roles/haproxy
2017-11-23 08:39:58 +01:00
..
defaults [WIP] configure munin graphs for HAProxy 2017-11-23 08:39:58 +01:00
files haproxy: add a Nagios check 2017-09-19 09:37:38 +02:00
handlers HAProxy: packages only 2016-12-29 17:25:01 +01:00
meta Ansible >= 2.2 supported 2017-03-24 14:15:09 +01:00
tasks [WIP] configure munin graphs for HAProxy 2017-11-23 08:39:58 +01:00
templates [WIP] configure munin graphs for HAProxy 2017-11-23 08:39:58 +01:00
tests Add some kitchen tests for many roles 2017-05-18 15:16:30 +02:00
.kitchen.yml Kitchen: Change base image to evolix/ansible 2017-06-02 08:38:08 -04:00
README.md [WIP] configure munin graphs for HAProxy 2017-11-23 08:39:58 +01:00

haproxy

Install HAProxy.

Tasks

Everything is in the tasks/main.yml file.

Available variables

  • haproxy_jessie_backports : on Debian Jessie, we can prefer v1.7 from backports (default: False) ;
  • haproxy_munin : install and configure Munin for HAProxy stats (default: False).

Configuration templates

The roles compiles a haproxy.cfg file based on templates that are looked up in that order :

  1. {{ playbook_dir}}/templates/haproxy/haproxy.{{ inventory_hostname}}.cfg.j2
  2. {{ playbook_dir}}/templates/haproxy/haproxy.{{ host_group}}.cfg.j2 (NB : host_group is not a core variable, it must be defined in group_vars files.)
  3. {{ playbook_dir}}/templates/haproxy/haproxy.default.cfg.j2

If nothing is found, the role falls back to the template embedded in the role : templates/haproxy.default.cfg.j2