-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.yml
120 lines (106 loc) · 3.17 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
---
# global
haproxy_log:
- "/dev/log local0"
- "/dev/log local1 notice"
haproxy_socket: /var/lib/haproxy/stats
haproxy_socket_level: admin # use one of admin, operator or user
haproxy_socket_params: ''
haproxy_chroot: /var/lib/haproxy
haproxy_user: haproxy
haproxy_group: haproxy
# Extra global vars (see README for example usage).
haproxy_global_vars: []
# issue a warning if old vars are set
deprecate_old_haproxy_vars: false
# if deprecate_old_haproxy_vars is enabled
# just warn if old vars are set, otherwise fail
warn_on_old_haproxy_vars: true
# set this to true in order to completely ignore the old settings
ignore_old_haproxy_vars: false
# Frontend settings. - Deprecated! Use haproxy_frontend service list
haproxy_frontend_name: 'hafrontend'
haproxy_frontend_bind_address: '*'
haproxy_frontend_port: 80
haproxy_frontend_mode: 'http'
# extra frontend options
haproxy_frontend_options: []
# example:
# haproxy_frontend_options:
# - description front
# - option tcplog
# define defaults values for all haproxy_frontend services
haproxy_frontend_defaults:
bind_address: '*'
mode: 'http'
# list of frontend services
# each service must have name, bind_address and port defined,
# all other settings are optional and can contain strings or lists of strings
haproxy_frontends: []
# example:
# haproxy_frontend:
# - name: httplb
# port: 80
# mode: http
# bind_address: '*'
# - name: httpslb
# port: 443
# # bind_args: additional args to be appended to the bind line after {{ bind_address }}:{{ port }}
# # see: https://www.haproxy.com/blog/haproxy-ssl-termination/
# bind_args: "ssl crt {{ ansible_fqdn }}.pem"
# default_backend: habackend
# description: front of front
# option: # list of options
# - forwardfor
# - tcplog
# - ...
# ...
# Backend settings. Deprecated! Use haproxy_backend service list
haproxy_backend_name: 'habackend'
haproxy_backend_mode: 'http'
haproxy_backend_balance_method: 'roundrobin'
haproxy_backend_httpchk: 'HEAD / HTTP/1.1\r\nHost:localhost'
# extra backend options
haproxy_backend_options:
- cookie SERVERID insert indirect
- option forwardfor
# List of backend servers. Deprecated! Use servers section in haproxy_backend service list
haproxy_backend_servers: []
# - name: app1
# address: 192.168.0.1:80
# - name: app2
# address: 192.168.0.2:80
# params: maxconn 32 check
# define defaults values for all haproxy_backend services
haproxy_backend_defaults:
mode: http
balance: 'roundrobin'
# list of backend services
haproxy_backends: []
# example
# haproxy_backends:
# - name: http_backend
# mode: http
# balance: 'roundrobin'
# cookie: SERVERID insert indirect
# option:
# - forwardfor
# - httpchk 'HEAD / HTTP/1.1\r\nHost:localhost'
# servers:
# - name: app1
# address: 192.168.0.1:80
# - name: app2
# address: 192.168.0.2:80
# params: maxconn 32 check
# default
haproxy_defaults:
- log global
- mode http
- option httplog
- option dontlognull
# Default haproxy timeouts
haproxy_connect_timeout: 5000
haproxy_client_timeout: 50000
haproxy_server_timeout: 50000
# validate cfg in silent mode?
haproxy_validate_silent: true