2013-03-12 08:35:13 +01:00
|
|
|
---
|
2013-03-20 06:07:11 +01:00
|
|
|
# Variables for the HAproxy configuration
|
2013-03-12 08:35:13 +01:00
|
|
|
|
2013-03-20 06:07:11 +01:00
|
|
|
# HAProxy supports "http" and "tcp". For SSL, SMTP, etc, use "tcp".
|
2013-03-12 08:35:13 +01:00
|
|
|
mode: http
|
|
|
|
|
2013-03-20 06:07:11 +01:00
|
|
|
# Port on which HAProxy should listen
|
2013-03-12 08:35:13 +01:00
|
|
|
listenport: 8888
|
|
|
|
|
2013-03-20 06:07:11 +01:00
|
|
|
# A name for the proxy daemon, this wil be the suffix in the logs.
|
2013-03-12 08:35:13 +01:00
|
|
|
daemonname: myapplb
|
|
|
|
|
2013-03-20 06:07:11 +01:00
|
|
|
# Balancing Algorithm. Available options:
|
|
|
|
# roundrobin, source, leastconn, source, uri
|
|
|
|
# (if persistance is required use, "source")
|
2013-03-12 08:35:13 +01:00
|
|
|
balance: roundrobin
|
|
|
|
|
2013-03-20 06:07:11 +01:00
|
|
|
# Ethernet interface on which the load balancer should listen
|
2013-04-19 22:35:24 +02:00
|
|
|
# Defaults to the first interface. Change this to:
|
|
|
|
#
|
|
|
|
# iface: eth1
|
|
|
|
#
|
|
|
|
# ...to override.
|
|
|
|
#
|
|
|
|
iface: '{{ ansible_default_ipv4.interface }}'
|