set rpi servers as backup
This commit is contained in:
parent
34cb53035c
commit
90b904595a
|
@ -7,15 +7,19 @@ haproxy:
|
|||
- drone.badjware.dev
|
||||
- grafana.badjware.dev
|
||||
dst:
|
||||
- 192.168.20.20
|
||||
- 192.168.20.21
|
||||
- 192.168.20.22
|
||||
- 192.168.20.23
|
||||
- 192.168.20.24
|
||||
- server: 192.168.20.20
|
||||
- server: 192.168.20.21
|
||||
extra_param: backup
|
||||
- server: 192.168.20.22
|
||||
extra_param: backup
|
||||
- server: 192.168.20.23
|
||||
extra_param: backup
|
||||
- server: 192.168.20.24
|
||||
extra_param: backup
|
||||
- src:
|
||||
- s3.badjware.dev
|
||||
dst:
|
||||
- 192.168.20.30:9000
|
||||
- server: 192.168.20.30:9000
|
||||
ssl: false
|
||||
# - src:
|
||||
# - kubernetes-dashboard.badjnet.home
|
||||
|
@ -31,11 +35,15 @@ haproxy:
|
|||
tcp:
|
||||
- src: "30022"
|
||||
dst:
|
||||
- 192.168.20.20:30022
|
||||
- 192.168.20.21:30022
|
||||
- 192.168.20.22:30022
|
||||
- 192.168.20.23:30022
|
||||
- 192.168.20.24:30022
|
||||
- server: 192.168.20.20:30022
|
||||
- server: 192.168.20.21:30022
|
||||
extra_param: backup
|
||||
- server: 192.168.20.22:30022
|
||||
extra_param: backup
|
||||
- server: 192.168.20.23:30022
|
||||
extra_param: backup
|
||||
- server: 192.168.20.24:30022
|
||||
extra_param: backup
|
||||
|
||||
letsencrypt:
|
||||
domains:
|
||||
|
|
2
hosts
2
hosts
|
@ -65,7 +65,7 @@ all:
|
|||
debian:
|
||||
hosts:
|
||||
ubiquiti:
|
||||
ansible_host: 192.168.10.3
|
||||
ansible_host: 192.168.10.2
|
||||
pihole:
|
||||
ansible_host: 192.168.20.2
|
||||
children:
|
||||
|
|
|
@ -84,7 +84,7 @@ backend https_{{ http_route.src[0]|replace('.','_') }}
|
|||
mode http
|
||||
balance roundrobin
|
||||
{% for dst in http_route.dst %}
|
||||
server {{ dst }} {{ dst }}{% if ':' not in dst %}:443{% endif %} check {% if http_route.ssl|default(true) %}ssl verify none alpn h2{% endif %}
|
||||
server {{ dst.server }} {{ dst.server }}{% if ':' not in dst.server %}:443{% endif %} check {% if http_route.ssl|default(true) %}ssl verify none alpn h2{% endif %} {{ dst.extra_param|default('') }}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
|
@ -100,6 +100,6 @@ frontend tcp_{{ tcp_route.src }}
|
|||
backend tcp_{{ tcp_route.src }}
|
||||
mode tcp
|
||||
{% for dst in tcp_route.dst %}
|
||||
server {{ dst }} {{ dst }} check
|
||||
server {{ dst.server }} {{ dst.server }} check {{ dst.extra_param|default('') }}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue