roles/dch-proxy: Switch default backend to web0.p.b

The public-facing websites are now hosted by *web0.pyrocufflink.blue*
and *myala.pyrocufflink.jazz* has been decommissioned.
jenkins-master
Dustin 2018-07-29 09:41:10 -05:00
parent 67fc5c8c05
commit 9bf2a911c6
3 changed files with 16 additions and 2 deletions

View File

@ -32,3 +32,10 @@
dest=/etc/haproxy/70-backend-openvpn.cfg dest=/etc/haproxy/70-backend-openvpn.cfg
mode=0644 mode=0644
notify: reload haproxy notify: reload haproxy
- name: ensure websites haproxy backend is configured
template:
src=backend-websites.haproxy.cfg.j2
dest=/etc/haproxy/70-backend-websites.cfg
mode=0644
notify: reload haproxy

View File

@ -0,0 +1,7 @@
backend web
server web0 web0.pyrocufflink.blue:80 check
backend web-tls
mode tcp
server web web0.pyrocufflink.blue:443 check

View File

@ -5,7 +5,7 @@ frontend main
use_backend gitea if { hdr(host) -i git.pyrocufflink.net } use_backend gitea if { hdr(host) -i git.pyrocufflink.net }
use_backend jenkins if { hdr(host) -i jenkins.pyrocufflink.blue } use_backend jenkins if { hdr(host) -i jenkins.pyrocufflink.blue }
use_backend jenkins if { hdr(host) -i jenkins.pyrocufflink.net } use_backend jenkins if { hdr(host) -i jenkins.pyrocufflink.net }
default_backend myala default_backend web
frontend main-tls frontend main-tls
@ -20,5 +20,5 @@ frontend main-tls
use_backend gitea-tls if { req_ssl_sni -i git.pyrocufflink.net } use_backend gitea-tls if { req_ssl_sni -i git.pyrocufflink.net }
use_backend jenkins-tls if { req_ssl_sni -i jenkins.pyrocufflink.blue } use_backend jenkins-tls if { req_ssl_sni -i jenkins.pyrocufflink.blue }
use_backend jenkins-tls if { req_ssl_sni -i jenkins.pyrocufflink.net } use_backend jenkins-tls if { req_ssl_sni -i jenkins.pyrocufflink.net }
use_backend myala-tls if { req_ssl_sni -i darkchestofwonders.us } use_backend web-tls if { req_ssl_sni -i darkchestofwonders.us }
default_backend openvpn default_backend openvpn