
This makes the haproxy role more generic so we can run another (or potentially even more) haproxy instance(s) to manage other services. The config file is moved to a variable for the haproxy role. The gitea specific config is then installed for the gitea-lb service by a new gitea-lb role. statsd reporting is made optional with an argument. This enables/disables the service in the docker compose. Role documenation is updated. Needed-By: https://review.opendev.org/678159 Change-Id: I3506ebbed9dda17d910001e71b17a865eba4225d
14 lines
468 B
Django/Jinja
14 lines
468 B
Django/Jinja
gitea_lb_listeners:
|
|
- name: balance_git_http
|
|
bind:
|
|
- ":::80"
|
|
servers:
|
|
- name: "gitea99.opendev.org"
|
|
address: "{{ (hostvars['gitea99.opendev.org'] | default({})).get('nodepool', {}).get('public_ipv4', '') }}:3080"
|
|
- name: balance_git_https
|
|
bind:
|
|
- ":::443"
|
|
servers:
|
|
- name: "gitea99.opendev.org"
|
|
address: "{{ (hostvars['gitea99.opendev.org'] | default({})).get('nodepool', {}).get('public_ipv4', '') }}:3000"
|