From b1e651bf794ccfbd6c1bdb0d74f8dca48e4fefdb Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 27 Oct 2016 18:04:33 +0200 Subject: [PATCH] library/roles/smartgears/smartgears/templates/get-scopes.j2: Fix the get-scopes script: the correct arguments order is host token port destfile scope1 [scopen] d4science-ghn-cluster/group_vars/rstudio/rstudio.yml: Set the correct scopes. --- smartgears/smartgears/templates/get-scopes.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smartgears/smartgears/templates/get-scopes.j2 b/smartgears/smartgears/templates/get-scopes.j2 index be2b45d0..d76eb3fa 100644 --- a/smartgears/smartgears/templates/get-scopes.j2 +++ b/smartgears/smartgears/templates/get-scopes.j2 @@ -25,6 +25,6 @@ done cd /usr/local/lib -java TokenGenerator {{ gcube_admin_token }} {{ smartgears_hostname }} $HTTP_PORT $DESTFILE {% for scope in smartgears_scopes %}{{ scope }} {% endfor %} +java TokenGenerator {{ smartgears_hostname }} {{ gcube_admin_token }} $HTTP_PORT $DESTFILE {% for scope in smartgears_scopes %}{{ scope }} {% endfor %} exit 0