Commit ec825737 authored by Eric Pellegrini's avatar Eric Pellegrini

updated haproxy role and added new certificate

parent 97effbe4
......@@ -13,5 +13,5 @@
vars:
temp: "{{ groups['jhub_servers'] | map('extract',hostvars,['ansible_default_ipv4','address']) | list }}"
balanced_servers: "{{ temp | map('string_postfix',':'+(jupyterhub['keycloak']['port'] | string)) | list }}"
proxy_server: "{{ hostvars[load_balancer['proxy_server']]['ansible_default_ipv4']['address'] }}"
proxy_server: "{{ load_balancer['proxy_server'] }}"
pem_file: "{{ load_balancer['pem_file'] }}"
-----BEGIN CERTIFICATE-----
MIIHJzCCBg+gAwIBAgIQAdECtGLL1Nud4x0W81+YTTANBgkqhkiG9w0BAQsFADBk
MQswCQYDVQQGEwJOTDEWMBQGA1UECBMNTm9vcmQtSG9sbGFuZDESMBAGA1UEBxMJ
QW1zdGVyZGFtMQ8wDQYDVQQKEwZURVJFTkExGDAWBgNVBAMTD1RFUkVOQSBTU0wg
Q0EgMzAeFw0xODA5MTkwMDAwMDBaFw0yMDEyMjIwMDAwMDBaMGMxCzAJBgNVBAYT
AkZSMREwDwYDVQQHEwhHcmVub2JsZTEuMCwGA1UEChMlSW5zdGl0dXQgTWF4IFZv
biBMYXVlIC0gUGF1bCBMYW5nZXZpbjERMA8GA1UEAwwIKi5pbGwuZnIwggEiMA0G
CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDecfqFkUxT84BKgqsqUpcWbSusGh9G
GwJ9hm5Oygp/tuGGPWZw7VR9rKTzNDgc/mTGevcLAwcPn1CDlAx/35btwIcyi3Ft
4SAkFX1Q0epVkvwd7GD+Z7MszTekDD+vJU/1oG4ifNI9Wx+1C4jO7P27lhQoypvN
MzGYo+ISey9+fR3rwf9PnO4JZpwUuLyYLHdhAYBd7d/Ikt9mOo7NfigcTKvk3VdP
Z1DEHgQD65dVElFrRIP8T2nwHL92XsiIHLZjI8XffvZY6u7+RzwuyZ7HSYZc9QhK
4d0U7bKGqgaook8bGfNZlAkEMDuebScBQO6i9c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Nx6znUNeZWNl6bYDPbVkow5x4MYx1vHjrdC
sIYeuGoHfBxyFf0LSOk81u59xNvu3tQIGVrEZG+1AbSjqTBgzJuP2jU48ILJyFln
taCbKtHVw+SMduqiMsJh+1MEf/feH4+N6wIAqLfvwnt8hbM9gOEL+A==
-----END RSA PRIVATE KEY-----
......@@ -33,12 +33,15 @@ defaults
errorfile 504 /etc/haproxy/errors/504.http
frontend ft_http
bind {{ proxy_server }}:80
bind {{ proxy_server }}:443 ssl crt {{ pem_file }}
bind *:80
redirect location https://{{ proxy_server }}
frontend ft_https
bind *:443 ssl crt {{ pem_file }}
mode http
default_backend bk_http
default_backend bk_https
backend bk_http
backend bk_https
mode http
balance source
hash-type consistent
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment