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

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


The following commit(s) were added to refs/heads/DLAB-1835 by this push:
     new 717d017  [DLAB-1835]: added missed variables
717d017 is described below

commit 717d0175add97b7abb8cda13f0a0ab6839ab8df8
Author: leonidfrolov <frolovl...@gmail.com>
AuthorDate: Mon Jun 1 10:55:32 2020 +0300

    [DLAB-1835]: added missed variables
---
 .../scripts/deploy_keycloak/deploy_keycloak.py                    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/infrastructure-provisioning/scripts/deploy_keycloak/deploy_keycloak.py 
b/infrastructure-provisioning/scripts/deploy_keycloak/deploy_keycloak.py
index 073cfc8..57cd320 100644
--- a/infrastructure-provisioning/scripts/deploy_keycloak/deploy_keycloak.py
+++ b/infrastructure-provisioning/scripts/deploy_keycloak/deploy_keycloak.py
@@ -64,7 +64,7 @@ def ensure_jre_jdk(os_user):
         except:
             sys.exit(1)
 
-def configure_keycloak():
+def configure_keycloak(os_user):
     if not exists('/home/' + os_user + '/.ensure_dir/keycloak_ensured'):
         try:
             sudo('wget https://downloads.jboss.org/keycloak/' + 
keycloak_version + '/keycloak-' + keycloak_version + '.tar.gz -O 
/tmp/keycloak-' + keycloak_version + '.tar.gz')
@@ -86,7 +86,7 @@ def configure_keycloak():
         except:
             sys.exit(1)
 
-def configure_nginx():
+def configure_nginx(os_user):
     if not exists('/home/' + os_user + '/.ensure_dir/nginx_ensured'):
         try:
             sudo('apt install -y nginx')
@@ -146,14 +146,14 @@ if __name__ == "__main__":
 
     try:
         print("installing nginx")
-        configure_nginx()
+        configure_nginx(args.os_user)
     except Exception as err:
         print("Failed nginx install: " + str(err))
         sys.exit(1)
 
     try:
         print("installing Keycloak")
-        configure_keycloak()
+        configure_keycloak(args.os_user)
     except Exception as err:
         print("Failed keycloak install: " + str(err))
         sys.exit(1)


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

Reply via email to