ansible-roles/haproxy
Jérémy Lecour 9bdd5ad9e7
continuous-integration/drone/push Build is passing Details
haproxy: rotate logs with date extension and immediate compression
2020-06-22 19:02:29 +02:00
..
defaults haproxy: split stats variables 2020-06-15 22:45:22 +02:00
handlers haproxy: add Munin graphes 2018-02-13 16:37:40 +01:00
meta change repositories URL 2019-03-21 15:31:58 +01:00
tasks haproxy: rotate logs with date extension and immediate compression 2020-06-22 19:02:29 +02:00
templates haproxy: deport SSL tuning to Mozilla SSL generator 2020-06-15 22:47:08 +02:00
tests Add some kitchen tests for many roles 2017-05-18 15:16:30 +02:00
vars haproxy: add vars for tls configuration 2018-11-13 11:07:06 +01:00
.kitchen.yml Kitchen: Change base image to evolix/ansible 2017-06-02 08:38:08 -04:00
README.md Haproxy role now handle haproxy installation from backports for Debian Stretch 2018-07-24 12:29:42 +02:00

README.md

haproxy

Install HAProxy.

Tasks

Everything is in the tasks/main.yml file.

Available variables

  • haproxy_backports : We can either prefer v1.7 from backports for Debian Jessie or v1.8 for Debian Stretch (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