From 096f082a47aec016ba0ab3aebd92bfa5e96be6c5 Mon Sep 17 00:00:00 2001 From: "m.lettere" Date: Wed, 30 Jun 2021 16:05:48 +0200 Subject: [PATCH] added workflow to add all system services to vre --- .../add_all_system_services_to_vre.json.j2 | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 templates/add_all_system_services_to_vre.json.j2 diff --git a/templates/add_all_system_services_to_vre.json.j2 b/templates/add_all_system_services_to_vre.json.j2 new file mode 100644 index 0000000..69950d6 --- /dev/null +++ b/templates/add_all_system_services_to_vre.json.j2 @@ -0,0 +1,51 @@ +{ + "ownerApp" : "Orchestrator", + "name" : "add_all_system_services_to_vre", + "createBy" : "Marco Lettere", + "description": "All system services retrieved from the IS through IC Proxy are added as Member to a VRE", + "version" : 1, + "ownerEmail" : "marco.lettere@nubisware.com", + "inputParameters" : ["client_id"], + "tasks" : [ + { + "name": "LAMBDA_TASK", + "taskReferenceName": "init", + "type": "LAMBDA", + "inputParameters": { + "keycloak": "{{ keycloak }}/{{ keycloak_realm }}", + "keycloak_admin" : "{{ keycloak_admin }}/{{ keycloak_realm }}", + "iC_proxy" : "{{ ic_proxy }}", + "scriptExpression": "1 == 1" + } + }, + { + "name" : "pyrest", + "taskReferenceName" : "authorize", + "type" : "SIMPLE", + "inputParameters" : { + "url" : "{{ keycloak }}/master/protocol/openid-connect/token", + "method" : "POST", + "headers" : { + "Accept" : "application/json" + }, + "body" : { + "client_id" : "orchestrator", + "client_secret" : "{{ keycloak_auth_master }}", + "grant_type" : "client_credentials" + } + } + }, + { + "name" : "pyrest", + "taskReferenceName" : "retrieve_system_services", + "type" : "SIMPLE", + "inputParameters" : { + "url" : "{{ ic_proxy }}/icproxy/gcube/service/ServiceEndpoint/SystemService", + "method" : "GET", + "headers" : { + "Accept" : "application/xml" + } + } + } + ] +}