summaryrefslogtreecommitdiffstats
path: root/roles/haproxy/defaults/main.yml
blob: a1524cfe118829ad3e6aa377e62542565e2154f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
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_allow:
- service: haproxy stats
  port: "9000/tcp"
- service: haproxy balance
  port: "{{ haproxy_frontend_port }}/tcp"