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: I3506ebbed9dda17d910001e71b17a865eba4225dchanges/03/677903/10
parent
81155d6e8f
commit
f29aa2da16
@ -0,0 +1,9 @@
|
||||
Install the gitea-lb services
|
||||
|
||||
This configures haproxy
|
||||
|
||||
**Role Variables**
|
||||
|
||||
.. zuul:rolevar:: gitea_lb_listeners
|
||||
|
||||
The backends to configure
|
@ -0,0 +1,5 @@
|
||||
- name: Install haproxy with gitea config
|
||||
include_role:
|
||||
name: haproxy
|
||||
vars:
|
||||
haproxy_config_template: gitea-haproxy.cfg.j2
|
@ -1 +1,16 @@
|
||||
Install, configure, and run a haproxy server.
|
||||
|
||||
**Role Variables**
|
||||
|
||||
.. zuul:rolevar:: haproxy_config_template
|
||||
:type: string
|
||||
:default: Undefined
|
||||
|
||||
The config template to install for haproxy. Must be defined.
|
||||
|
||||
.. zuul:rolevar:: haproxy_run_statsd
|
||||
:type: string
|
||||
:default: True
|
||||
|
||||
Run the ``haproxy-statsd`` docker container to report back-end
|
||||
stats to graphite.opendev.org
|
||||
|
@ -0,0 +1 @@
|
||||
haproxy_run_statsd: True
|
Loading…
Reference in new issue