- move scripts to assets/scripts (and updated build) - put most logic into HaproxyConfigGenerator - created DockerLabelHandler for all label handling from previous code - added unit tests and fixtures to cover HaproxyConfigGenerator and DockerLabelHandler - added a Makefile with build (for docker build) and test targets
6 lines
179 B
Django/Jinja
6 lines
179 B
Django/Jinja
mode tcp
|
|
option tcplog
|
|
log global
|
|
{% set backend = (o["hosts"]|first) %}
|
|
default_backend srv_{{ backend.replace(".", "_") + "_{0}_{1}".format(o["port"], salt) }}
|
|
|