system-config/playbooks/zuul/templates/group_vars/gitea-lb.yaml.j2
James E. Blair 4b031f9f24 Run an haproxy load balancer for gitea
This runs an haproxy which is strikingly similar to the one we
currently run for git.openstack.org, but it is run in a docker
container.

Change-Id: I647ae8c02eb2cd4f3db2b203d61a181f7eb632d2
2019-02-22 12:54:04 -08:00

14 lines
465 B
Django/Jinja

haproxy_listeners:
- name: balance_git_http
bind:
- "*:80"
servers:
- name: "gitea01.opendev.org"
address: "{{ (hostvars['gitea01.opendev.org'] | default({})).get('nodepool', {}).get('public_ipv4', '') }}:3080"
- name: balance_git_https
bind:
- "*:443"
servers:
- name: "gitea01.opendev.org"
address: "{{ (hostvars['gitea01.opendev.org'] | default({})).get('nodepool', {}).get('public_ipv4', '') }}:3000"