You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by dm...@apache.org on 2019/09/06 12:17:28 UTC

[incubator-dlab] 01/01: [DLAB-947] Added gitlab support to ssh proxy config

This is an automated email from the ASF dual-hosted git repository.

dmysakovets pushed a commit to branch DLAB-947
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit 9e4099a092b18aa7a06b4165a5f96729a9b9baec
Author: Dyoma33 <de...@gmail.com>
AuthorDate: Fri Sep 6 15:16:48 2019 +0300

    [DLAB-947] Added gitlab support to ssh proxy config
---
 infrastructure-provisioning/src/general/lib/os/fab.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py b/infrastructure-provisioning/src/general/lib/os/fab.py
index 8d6c4e2..a65cefa 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -434,6 +434,9 @@ def install_ungit(os_user, notebook_name, edge_ip):
             sudo(
                 'echo -e "Host github.com\n   HostName github.com\n   ProxyCommand nc -X connect -x {}:3128 %h %p" >> /home/{}/.ssh/config'.format(
                     edge_ip, os_user))
+            sudo(
+                'echo -e "Host gitlab.com\n   HostName gitlab.com\n   ProxyCommand nc -X connect -x {}:3128 %h %p" >> /home/{}/.ssh/config'.format(
+                    edge_ip, os_user))
             sudo('systemctl daemon-reload')
             sudo('systemctl enable ungit.service')
             sudo('systemctl start ungit.service')


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org