diff --git a/defaults/main.yaml b/defaults/main.yaml index 258493f..0b9ea73 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -1,31 +1,31 @@ --- workflows: - - create-user-add-to-vre +# - create-user-add-to-vre # - group_deleted - - user-group_created - - user-group-role_created - - group_created - - invitation-accepted - - user-group_deleted - - user-group-role_deleted - - delete-user-account - - role_deleted +# - user-group_created +# - user-group-role_created +# - group_created +# - invitation-accepted +# - user-group_deleted +# - user-group-role_deleted +# - delete-user-account +# - role_deleted - role_created - - add_role_policy_permission - - add_all_member_roles - - create_system_service - - delete_system_service - - add_all_system_services_to_vre - - create_workspace_client - - add_workspace_client_to_context - - enable_workspace_clients_for_context - - add_workspace_client_to_contexts - - ghn_client_add_to_context - - ghn_client_add_to_contexts - - ghn_client_create - - ghn_client_delete - - ghn_client_remove_from_contexts - - ghn_client_remove_from_context +# - add_role_policy_permission +# - add_all_member_roles +# - create_system_service +# - delete_system_service +# - add_all_system_services_to_vre +# - create_workspace_client +# - add_workspace_client_to_context +# - enable_workspace_clients_for_context +# - add_workspace_client_to_contexts +# - ghn_client_add_to_context +# - ghn_client_add_to_contexts +# - ghn_client_create +# - ghn_client_delete +# - ghn_client_remove_from_contexts +# - ghn_client_remove_from_context keycloak_host: "https://accounts.dev.d4science.org/auth" keycloak: "{{ keycloak_host }}/realms" diff --git a/templates/role_created.json.j2 b/templates/role_created.json.j2 index 5c4980c..ccc283b 100644 --- a/templates/role_created.json.j2 +++ b/templates/role_created.json.j2 @@ -47,32 +47,6 @@ } } }, - { - "name": "LAMBDA_TASK", - "taskReferenceName": "build_delete_role_tasks", - "type": "LAMBDA", - "inputParameters": { - "role" : "${workflow.input.role}", - "vres" : "${get_all_vres.output.body}", - "scriptExpression": "inputs={};tasks=[];for(var i=0;i<$.vres.length;i++)vre=$.vres[i],tasks.push({name:'pyrest',type:'SIMPLE',taskReferenceName:'delete_role_'+i}),inputs['delete_role_'+i]={url:'${init.input.keycloak_admin}/clients/' + vre.id + '/roles/' + $.role,method:'DELETE', expect:Java.to([204,404],'int[]'),headers:{Authorization:'Bearer ${authorize.output.body.access_token}'}};return {tasks:Java.to(tasks,'java.util.Map[]'),inputs:inputs};" - } - }, - { - "name" : "fork_dynamic", - "type" : "FORK_JOIN_DYNAMIC", - "taskReferenceName" : "parallel_delete_role", - "inputParameters" : { - "tasks" : "${build_delete_role_tasks.output.result.tasks}", - "inputs" : "${build_delete_role_tasks.output.result.inputs}" - }, - "dynamicForkTasksParam": "tasks", - "dynamicForkTasksInputParamName": "inputs" - }, - { - "name" : "join", - "type" : "JOIN", - "taskReferenceName" : "join_parallel_role_deletion" - }, { "name" : "pyrest", "taskReferenceName" : "authorize2",