X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=heat%2FvFW_CNF_CDS%2Ftemplates%2Fcba%2FDefinitions%2FvFW_CNF_CDS.json;h=4a0ec2959052728065816f28443ebbc22702e245;hb=a1ffe0ce52a4efa1ed56474417aa525d60518a5b;hp=405df54ed85d8f7c278aa372783ccb9fe00e6bd0;hpb=bc6e714e001a8c61b06709c61b187d4e3dd22aac;p=demo.git diff --git a/heat/vFW_CNF_CDS/templates/cba/Definitions/vFW_CNF_CDS.json b/heat/vFW_CNF_CDS/templates/cba/Definitions/vFW_CNF_CDS.json index 405df54e..4a0ec295 100644 --- a/heat/vFW_CNF_CDS/templates/cba/Definitions/vFW_CNF_CDS.json +++ b/heat/vFW_CNF_CDS/templates/cba/Definitions/vFW_CNF_CDS.json @@ -5,7 +5,7 @@ "author-email" : "abdelmuhaimen.seaudi@orange.com", "user-groups" : "ADMIN, OPERATION", "template_name" : "vFW_CNF_CDS", - "template_version" : "1.0.0", + "template_version" : "1.0.44", "template_tags" : "Samuli Silvius, vFW_CNF_CDS", "template_type" : "DEFAULT" }, @@ -21,17 +21,30 @@ "file" : "Definitions/policy_types.json" } ], "dsl_definitions" : { - "ipam-1" : { - "type" : "token-auth", - "url" : "http://netbox-nginx:8080", - "token" : "Token 0123456789abcdef0123456789abcdef01234567" - }, "vpkg-rest-api" : { "type" : "basic-auth", "url" : "http://", "username" : "admin", "password" : "admin" }, + "multicloud-k8s-api" : { + "type" : "basic-auth", + "username" : "admin", + "password" : "admin", + "url" : "http://multicloud-k8s:9015" + }, + "profile-upload-properties" : { + "assignment-params" : { + "get_attribute" : [ "resource-assignment", "assignment-params" ] + }, + "profile-modification-decision-data" : { + "get_input" : "vpg-management-port" + }, + "profile-artifacts" : { + "get_attribute" : [ "profile-modification", "assignment-params" ] + }, + "api-access" : "*multicloud-k8s-api" + }, "config-deploy-properties" : { "resolution-key" : { "get_input" : "resolution-key" @@ -50,7 +63,26 @@ "steps" : { "resource-assignment" : { "description" : "Resource Assign Workflow", - "target" : "resource-assignment" + "target" : "resource-assignment", + "activities" : [ { + "call_operation" : "ResourceResolutionComponent.process" + } ], + "on_success" : [ "profile-modification" ] + }, + "profile-modification" : { + "description" : "Profile Modification Resources", + "target" : "profile-modification", + "activities" : [ { + "call_operation" : "ResourceResolutionComponent.process" + } ], + "on_success" : [ "profile-upload" ] + }, + "profile-upload" : { + "description" : "Upload K8s Profile", + "target" : "profile-upload", + "activities" : [ { + "call_operation" : "ComponentScriptExecutor.process" + } ] } }, "inputs" : { @@ -61,6 +93,13 @@ "type" : "string" } }, + "resolution-key" : { + "required" : false, + "type" : "string", + "entry_schema" : { + "type" : "" + } + }, "resource-assignment-properties" : { "description" : "Dynamic PropertyDefinition for workflow(resource-assignment).", "required" : true, @@ -159,6 +198,46 @@ } } }, + "profile-modification" : { + "type" : "component-resource-resolution", + "interfaces" : { + "ResourceResolutionComponent" : { + "operations" : { + "process" : { + "inputs" : { + "artifact-prefix-names" : [ "ssh-service" ] + } + } + } + } + }, + "artifacts" : { + "ssh-service-template" : { + "type" : "artifact-template-velocity", + "file" : "Templates/k8s-profiles/ssh-service-template.vtl" + }, + "ssh-service-mapping" : { + "type" : "artifact-mapping-resource", + "file" : "Templates/k8s-profiles/ssh-service-mapping.json" + } + } + }, + "profile-upload" : { + "type" : "component-script-executor", + "interfaces" : { + "ComponentScriptExecutor" : { + "operations" : { + "process" : { + "inputs" : { + "script-type" : "kotlin", + "script-class-reference" : "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.K8sProfileUpload", + "dynamic-properties" : "*profile-upload-properties" + } + } + } + } + } + }, "config-deploy-process" : { "type" : "component-resource-resolution", "interfaces" : { @@ -185,4 +264,4 @@ } } } -} \ No newline at end of file +}