Name: ansible-haproxy
Owner: EMBL-EBI Technology & Science Integration
Description: Ansible role to install and configure haproxy server
Created: 2017-07-10 11:02:41.0
Updated: 2017-07-10 15:08:48.0
Pushed: 2017-07-10 14:54:23.0
Size: 7
Language: null
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Install and configure HAProxy server.
See meta/main.yml
.
All configuration happens in /etc/haproxy/haproxy.cfg
based on the haproxy.cfg.j2
template. The template is divided in four sections:
global
and main-defaults
for all other sections.haproxy_tcp_listens
haproxy_http_frontends
and haproxy_http_backends
.See default/main.yml
for more details on the attributes available for tcp and http proxies, as well as the statistics frontend.
HAProxy can be configured with SSL by passing the appropiate configuration to the proxie, ie:
oxy_http_frontends:
name: https
bind: 0.0.0.0:443 ssl crt {{ssl_certs_combined_path}}
In the example above Galaxy role luisico.ansible-role-ssl-certs
is used to provide the path to the SSL certificate.
Depends on a role that provides SSL certs if HAProxy is the SSL endpoint, ie luisico.ansible-role-ssl-certs
.
Example:
sts: servers
les:
- luisico.ansible-role-ssl-certs
- haproxy
None.
Released under the MIT license.
Luis Gracia while at EMBL-EBI: