If you are using GitLab outside of the ILL, then you will need to use HTTPS and not SSH for clone/push/pull operations. If you are using the VPN, then SSH will work normally.

...
 
Commits (5)
......@@ -12,6 +12,7 @@
name: roles/haproxy
vars:
temp: "{{ groups['jhub_servers'] | map('extract',hostvars,['ansible_default_ipv4','address']) | list }}"
balanced_servers: "{{ temp | map('string_postfix',':'+(jupyterhub['keycloak']['port'] | string)) | list }}"
balanced_servers: "{{ ((temp|length) == 1) | ternary(['127.0.0.1'],temp) }}"
port: jupyterhub['keycloak']['port']
proxy_server: "{{ load_balancer['proxy_server'] }}"
pem_file: "{{ load_balancer['pem_file'] }}"
......@@ -24,4 +24,5 @@
mysql_bind_server: "{{ hostvars[jupyterhub['mysql']['bind_server']]['ansible_default_ipv4']['address'] if 'bind_server' in jupyterhub['mysql'] else '127.0.0.1' }}"
proxy_server: "{{ jupyterhub['proxy_server'] }}"
proxy_authentication_token: "{{ jupyterhub['proxy_authentication_token'] }}"
server_ip: 127.0.0.1
......@@ -9,7 +9,7 @@
- name: copy the private key for passwordless connexion between nodes
copy:
src: "{{ item.identity_file }}"
dest: "~/.ssh"
dest: "~/.ssh/openstack"
mode: "600"
when: (item.identity_file is defined) and (item.add_private | default(False) == True)
loop: "{{ user.identity_files | default([])}}"
......
......@@ -47,6 +47,7 @@ backend bk_https
hash-type consistent
cookie PHPSESSID prefix nocache
{% for server in balanced_servers %}
server s{{ loop.index }} {{ server }} check cookie s{{ loop.index }}
server s{{ loop.index }} {{ server }}:{{ port }} check cookie s{{ loop.index }}
{% endfor %}
......@@ -121,7 +121,7 @@ for var in ("PYTHONHOME", "PYTHONPATH"):
# Use the sudo spawner for launching the server under a user name different than root
c.JupyterHub.spawner_class = 'sudospawner.SudoSpawner'
c.JupyterHub.ip = "{{ ansible_host }}"
c.JupyterHub.ip = "{{ server_ip }}"
c.JupyterHub.port = {{ keycloak_port }}
{% if mysql_user is defined %}
......