|
1 year ago | |
---|---|---|
.. | ||
defaults | 1 year ago | |
handlers | 2 years ago | |
meta | 1 year ago | |
tasks | 1 year ago | |
templates | 2 years ago | |
tests | 3 years ago | |
vars | 2 years ago | |
.kitchen.yml | 3 years ago | |
README.md | 2 years ago |
Install HAProxy.
Everything is in the tasks/main.yml
file.
haproxy_backports
: We can either prefer v1.7 from backports for Debian Jessie or v1.8 for Debian Stretch (default: False
)The roles compiles a haproxy.cfg
file based on templates that are looked up in that order :
{{ playbook_dir}}/templates/haproxy/haproxy.{{ inventory_hostname}}.cfg.j2
{{ 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.){{ 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