2024-01-29 17:53:50 +00:00
|
|
|
---
|
|
|
|
# defaults file for deploy_haproxy
|
2024-01-29 22:03:27 +00:00
|
|
|
deploy_haproxy_deploy_method: host # deployment method, either host or docker
|
2024-02-01 22:05:41 +00:00
|
|
|
deploy_haproxy_version: latest
|
2024-01-29 22:03:27 +00:00
|
|
|
|
2024-01-31 20:01:49 +00:00
|
|
|
deploy_haproxy_env_variables: {}
|
2024-02-01 22:05:41 +00:00
|
|
|
deploy_haproxy_start_service: true
|
2024-02-02 19:29:00 +00:00
|
|
|
deploy_haproxy_cert_dir: ""
|
2024-02-01 16:04:29 +00:00
|
|
|
deploy_haproxy_extra_container_volumes: []
|
2024-01-29 22:03:27 +00:00
|
|
|
deploy_haproxy_global:
|
2024-01-31 20:01:49 +00:00
|
|
|
- log /dev/log local0
|
|
|
|
- log /dev/log local1 notice
|
2024-01-29 22:03:27 +00:00
|
|
|
- stats socket {{ deploy_haproxy_socket }} level admin
|
|
|
|
- chroot {{ deploy_haproxy_chroot }}
|
|
|
|
- daemon
|
2024-01-31 20:01:49 +00:00
|
|
|
- description hashistack haproxy
|
2024-01-29 22:03:27 +00:00
|
|
|
|
|
|
|
deploy_haproxy_defaults:
|
|
|
|
- log global
|
|
|
|
- mode http
|
|
|
|
- option httplog
|
|
|
|
- option dontlognull
|
|
|
|
- timeout connect 5000
|
|
|
|
- timeout client 5000
|
|
|
|
- timeout server 5000
|
|
|
|
|
2024-01-31 20:01:49 +00:00
|
|
|
deploy_haproxy_frontends:
|
2024-02-01 22:05:41 +00:00
|
|
|
[]
|
|
|
|
# - name: default
|
|
|
|
# options:
|
|
|
|
# - description default frontend
|
|
|
|
# - mode http
|
|
|
|
# - bind :80
|
|
|
|
# - default_backend default
|
2024-01-29 22:03:27 +00:00
|
|
|
|
2024-01-31 20:01:49 +00:00
|
|
|
deploy_haproxy_backends:
|
2024-02-01 22:05:41 +00:00
|
|
|
[]
|
|
|
|
# - name: default
|
|
|
|
# options:
|
|
|
|
# - description default backend
|
|
|
|
# - option forwardfor
|
|
|
|
# - option httpchk
|
|
|
|
# - http-check send meth GET uri /
|
|
|
|
# - server srv_nginx1 172.17.0.4:80 check inter 5s
|
|
|
|
# - server srv_nginx2 172.17.0.3:80 check inter 5s
|
|
|
|
|
2024-01-31 20:01:49 +00:00
|
|
|
deploy_haproxy_listen:
|
2024-02-01 22:05:41 +00:00
|
|
|
- name: monitoring
|
2024-01-31 20:01:49 +00:00
|
|
|
options:
|
|
|
|
- bind :9000
|
|
|
|
- mode http
|
2024-02-01 22:05:41 +00:00
|
|
|
- option httpchk
|
2024-01-31 20:01:49 +00:00
|
|
|
- stats enable
|
|
|
|
- stats uri /stats
|
|
|
|
- stats refresh 30s
|
|
|
|
- stats show-desc
|
|
|
|
- stats show-legends
|
|
|
|
- stats auth admin:password
|
2024-02-01 16:04:29 +00:00
|
|
|
- http-check send meth GET uri /health ver HTTP/1.1 hdr Host localhost
|
2024-01-31 20:01:49 +00:00
|
|
|
- http-check expect status 200
|
|
|
|
- acl health_check_ok nbsrv() ge 1
|
|
|
|
- monitor-uri /health
|
2024-02-01 22:05:41 +00:00
|
|
|
- http-request use-service prometheus-exporter if { path /metrics }
|