summaryrefslogtreecommitdiffstats
path: root/roles/haproxy/defaults/main.yml
blob: 937d94209cc5ec7aad4cdf7e9ea45a58b4275393 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
haproxy_frontend_port: 80

haproxy_frontends:
- name: main
  binds:
  - "*:80"
  default_backend: default

haproxy_backends:
- name: default
  balance: roundrobin
  servers:
  - name: web01
    address: 127.0.0.1:9000
    opts: check

os_firewall_use_firewalld: False
os_firewall_allow:
- service: haproxy stats
  port: "9000/tcp"
- service: haproxy balance
  port: "{{ haproxy_frontend_port }}/tcp"