Ansible roles by Evolix
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Jérémy Lecour 1f4079b1b3 haproxy: possible admin access with login/pass 1 month ago
..
defaults haproxy: possible admin access with login/pass 1 month ago
handlers haproxy: add Munin graphes 3 years ago
meta change repositories URL 2 years ago
tasks haproxy: add tags 4 months ago
templates haproxy: possible admin access with login/pass 1 month ago
tests Add some kitchen tests for many roles 4 years ago
vars haproxy: add vars for tls configuration 2 years ago
.kitchen.yml Kitchen: Change base image to evolix/ansible 4 years ago
README.md Haproxy role now handle haproxy installation from backports for Debian Stretch 3 years ago

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