897337cdd6
The only files in the docker image directories that differ majorly between distros are the Dockerfiles (e.g. different package manager mechanisms, different repo sources, etc). The supporting files such as the start.sh/check.sh and config files should largely stay the same between base images. This change moves these files up into a "common" directory, and symlinks them in the same way that the build script is managed. This means when adding a new base distro only new Dockerfiles need to be created. Also, if a distro does happen to require a vastly different start.sh script for example, one can choose to simply not symlink to the common and instead drop in a custom one. Implements: blueprint refactor-base-image-layout Change-Id: Ic4db69d31ff54a1fb95af4853a2e5ae490064284
27 lines
601 B
Cheetah
27 lines
601 B
Cheetah
global
|
|
daemon
|
|
maxconn 4096
|
|
pidfile /var/run/haproxy.pid
|
|
|
|
defaults
|
|
mode tcp
|
|
timeout connect 5s
|
|
timeout client 1m
|
|
timeout server 1m
|
|
option redispatch
|
|
balance roundrobin
|
|
|
|
listen stats :1936
|
|
mode http
|
|
stats enable
|
|
stats hide-version
|
|
#stats realm Haproxy\ Statistics
|
|
stats uri /
|
|
#stats auth Username:Password
|
|
|
|
{% for service in services %}
|
|
listen {{ service.service_name }}
|
|
bind 127.0.0.1:{{service.local_port}}
|
|
server {{ service.remote_name }} {{ service.remote_addr }}:{{ service.remote_port}} check inter 2s rise 3 fall 2
|
|
{% endfor %}
|