Initial role setup with basic configuration
This commit is contained in:
25
templates/haproxy.cfg.jinja
Normal file
25
templates/haproxy.cfg.jinja
Normal file
@@ -0,0 +1,25 @@
|
||||
global
|
||||
log /dev/log local0
|
||||
chroot /var/lib/haproxy
|
||||
stats socket /run/haproxy/admin.sock mode 660 level admin
|
||||
user haproxy
|
||||
group haproxy
|
||||
daemon
|
||||
|
||||
defaults
|
||||
log global
|
||||
mode http
|
||||
option httplog
|
||||
timeout connect 5000
|
||||
timeout client 50000
|
||||
timeout server 50000
|
||||
|
||||
frontend http_front
|
||||
bind *:80
|
||||
default_backend http_back
|
||||
|
||||
backend http_back
|
||||
balance {{ haproxy_backend_balance }}
|
||||
{% for server in haproxy_backend_servers %}
|
||||
server {{ server.name }} {{ server.address }}:{{ server.port | default(80) }} check
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user