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