2 "tosca_definitions_version": "controller_blueprint_1_0_0",
4 "template_author": "Lukasz Rajewski <lukasz.rajewski@orange.com>",
5 "author-email": "lukasz.rajewski@orange.com",
6 "user-groups": "ADMIN, OPERATION",
7 "template_name": "APACHE",
8 "template_version": "1.0.0",
9 "template_tags": "Lukasz Rajewski, CNF",
10 "template_type": "DEFAULT"
14 "file": "Definitions/data_types.json"
17 "file": "Definitions/relationship_types.json"
20 "file": "Definitions/artifact_types.json"
23 "file": "Definitions/node_types.json"
26 "file": "Definitions/policy_types.json"
30 "naming-resolution": {
32 "url": "http://neng-serv:8080/web/service",
33 "username": "ccsdkapps",
34 "password": "ccsdkapps"
42 "config-deploy-properties": {
44 "get_input": "resolution-key"
47 "simple-status-properties": {
49 "get_input": "resolution-key"
51 "config-deploy-setup": {
53 "config-setup-process",
62 "topology_template": {
64 "resource-assignment": {
66 "resource-assignment": {
67 "description": "Resource Assign Workflow",
68 "target": "resource-assignment",
71 "call_operation": "ResourceResolutionComponent.process"
79 "description": "Generate and upload K8s Profile",
80 "target": "k8s-profile-upload",
83 "call_operation": "ComponentScriptExecutor.process"
103 "resource-assignment-properties": {
104 "description": "Dynamic PropertyDefinition for workflow(resource-assignment).",
106 "type": "dt-resource-assignment-properties"
114 "resource-assignment",
124 "description": "Gather necessary input for config template upload",
125 "target": "config-setup-process",
128 "call_operation": "ResourceResolutionComponent.process"
136 "description": "Generate and upload K8s config template",
137 "target": "k8s-config-template",
140 "call_operation": "K8sConfigTemplateComponent.process"
154 "config-assign-properties": {
155 "description": "Dynamic PropertyDefinition for workflow(config-assign).",
157 "type": "dt-config-assign-properties"
164 "description": "Gather necessary input for config init and status verification",
165 "target": "config-setup-process",
168 "call_operation": "ResourceResolutionComponent.process"
172 "status-verification-script"
175 "status-verification-script": {
176 "description": "Simple status verification script",
177 "target": "simple-status-check",
180 "call_operation": "ComponentScriptExecutor.process"
188 "description": "Activate K8s config template",
189 "target": "k8s-config-apply",
192 "call_operation": "K8sConfigValueComponent.process"
196 "status-verification-script-after"
199 "status-verification-script-after": {
200 "description": "Simple status verification script",
201 "target": "simple-status-check",
204 "call_operation": "ComponentScriptExecutor.process"
212 "description": "Final collection of results",
213 "target": "collect-results"
221 "config-deploy-properties": {
222 "description": "Dynamic PropertyDefinition for workflow(config-deploy).",
224 "type": "dt-config-deploy-properties"
231 "description": "Gather necessary input for config init and status verification",
232 "target": "config-setup-process",
235 "call_operation": "ResourceResolutionComponent.process"
243 "description": "Generate and upload K8s config template",
244 "target": "k8s-config-template",
247 "call_operation": "K8sConfigTemplateComponent.process"
255 "description": "Activate K8s config apply",
256 "target": "k8s-config-apply",
259 "call_operation": "K8sConfigValueComponent.process"
263 "status-verification-script-after"
266 "status-verification-script-after": {
267 "description": "Simple status verification script",
268 "target": "simple-status-check",
271 "call_operation": "ComponentScriptExecutor.process"
279 "description": "Final collection of results",
280 "target": "collect-results"
288 "scale-out-properties": {
289 "description": "Dynamic PropertyDefinition for workflow(scale-out).",
291 "type": "dt-scale-out-properties"
298 "description": "Gather necessary input for config init and status verification",
299 "target": "config-setup-process",
302 "call_operation": "ResourceResolutionComponent.process"
310 "description": "Generate and upload K8s config template",
311 "target": "k8s-config-template",
314 "call_operation": "K8sConfigTemplateComponent.process"
322 "description": "Activate K8s config restore",
323 "target": "k8s-config-update",
326 "call_operation": "K8sConfigValueComponent.process"
330 "status-verification-script-after"
333 "status-verification-script-after": {
334 "description": "Simple status verification script",
335 "target": "simple-status-check",
338 "call_operation": "ComponentScriptExecutor.process"
346 "description": "Final collection of results",
347 "target": "collect-results"
355 "scale-properties": {
356 "description": "Dynamic PropertyDefinition for workflow(scale).",
358 "type": "dt-scale-properties"
365 "description": "Gather necessary input for config init and status verification",
366 "target": "config-setup-process",
369 "call_operation": "ResourceResolutionComponent.process"
377 "description": "Generate and upload K8s config template",
378 "target": "k8s-config-template",
381 "call_operation": "K8sConfigTemplateComponent.process"
389 "description": "Activate K8s config restore",
390 "target": "k8s-config-restore",
393 "call_operation": "K8sConfigValueComponent.process"
397 "status-verification-script-after"
400 "status-verification-script-after": {
401 "description": "Simple status verification script",
402 "target": "simple-status-check",
405 "call_operation": "ComponentScriptExecutor.process"
413 "description": "Final collection of results",
414 "target": "collect-results"
422 "scale-in-properties": {
423 "description": "Dynamic PropertyDefinition for workflow(scale-in).",
425 "type": "dt-scale-in-properties"
432 "description": "Gather necessary input for config init and status verification",
433 "target": "config-setup-process",
436 "call_operation": "ResourceResolutionComponent.process"
440 "status-verification-script"
446 "status-verification-script": {
447 "description": "Simple status verification script",
448 "target": "simple-status-check",
451 "call_operation": "ComponentScriptExecutor.process"
455 "health-check-process"
461 "health-check-process": {
462 "description": "Start health check script",
463 "target": "health-check-script",
466 "call_operation": "ComponentScriptExecutor.process"
477 "description": "Simple error verification script",
478 "target": "simple-error-check",
481 "call_operation": "ComponentScriptExecutor.process"
489 "description": "Final collection of results",
490 "target": "collect-results"
498 "health-check-properties": {
499 "description": "Dynamic PropertyDefinition for workflow(health-check).",
501 "type": "dt-health-check-properties"
507 "resource-assignment": {
508 "type": "component-resource-resolution",
510 "ResourceResolutionComponent": {
514 "artifact-prefix-names": {
515 "get_input": "template-prefix"
523 "helm_apache-template": {
524 "type": "artifact-template-velocity",
525 "file": "Templates/cnf-template.vtl"
527 "helm_apache-mapping": {
528 "type": "artifact-mapping-resource",
529 "file": "Templates/cnf-mapping.json"
532 "type": "artifact-template-velocity",
533 "file": "Templates/vnf-template.vtl"
536 "type": "artifact-mapping-resource",
537 "file": "Templates/vnf-mapping.json"
541 "k8s-profile-upload": {
542 "type": "component-k8s-profile-upload",
544 "K8sProfileUploadComponent": {
548 "artifact-prefix-names": {
549 "get_input": "template-prefix"
551 "resource-assignment-map": {
553 "resource-assignment",
563 "cnf-cds-base-profile": {
564 "type": "artifact-k8sprofile-content",
565 "file": "Templates/k8s-profiles/cnf-cds-base-profile.tar.gz"
567 "node-port-profile": {
568 "type": "artifact-k8sprofile-content",
569 "file": "Templates/k8s-profiles/node-port-profile.tar.gz"
573 "k8s-config-template": {
574 "type": "component-k8s-config-template",
576 "K8sConfigTemplateComponent": {
580 "artifact-prefix-names": [
583 "resource-assignment-map": {
585 "config-setup-process",
589 "config-deploy-setup"
598 "deployment-config": {
599 "type": "artifact-k8sconfig-content",
600 "file": "Templates/k8s-configs/deployment-config.tar.gz"
604 "k8s-config-apply": {
605 "type": "component-k8s-config-value",
607 "K8sConfigValueComponent": {
611 "artifact-prefix-names": [
614 "k8s-config-operation-type": "create",
615 "resource-assignment-map": {
617 "config-setup-process",
621 "config-deploy-setup"
631 "type": "artifact-k8sconfig-content",
632 "file": "Templates/k8s-configs/deployment-values/default-values.yaml"
635 "type": "artifact-k8sconfig-content",
636 "file": "Templates/k8s-configs/deployment-values/restore-values.yaml"
639 "type": "artifact-k8sconfig-content",
640 "file": "Templates/k8s-configs/deployment-values/values.yaml.vtl"
642 "custom-values-mapping": {
643 "type": "artifact-mapping-resource",
644 "file": "Templates/k8s-configs/deployment-values/values-mapping.json"
648 "k8s-config-restore": {
649 "type": "component-k8s-config-value",
651 "K8sConfigValueComponent": {
655 "artifact-prefix-names": [
658 "k8s-config-operation-type": "update",
659 "k8s-rb-config-value-source": "restore-values",
660 "resource-assignment-map": {
662 "config-setup-process",
666 "config-deploy-setup"
676 "type": "artifact-k8sconfig-content",
677 "file": "Templates/k8s-configs/deployment-values/restore-values.yaml"
681 "k8s-config-update": {
682 "type": "component-k8s-config-value",
684 "K8sConfigValueComponent": {
688 "artifact-prefix-names": [
691 "k8s-config-operation-type": "update",
692 "k8s-rb-config-value-source": "custom-values",
693 "resource-assignment-map": {
695 "config-setup-process",
699 "config-deploy-setup"
709 "type": "artifact-k8sconfig-content",
710 "file": "Templates/k8s-configs/deployment-values/values.yaml.vtl"
712 "custom-values-mapping": {
713 "type": "artifact-mapping-resource",
714 "file": "Templates/k8s-configs/deployment-values/values-mapping.json"
718 "simple-status-check": {
719 "type": "component-script-executor",
721 "ComponentScriptExecutor": {
725 "script-type": "kotlin",
726 "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.SimpleStatusCheck",
727 "instance-dependencies": [
728 "bluePrintPropertiesService"
730 "dynamic-properties": "*simple-status-properties"
737 "simple-error-check": {
738 "type": "component-script-executor",
740 "ComponentScriptExecutor": {
744 "script-type": "kotlin",
745 "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.SimpleErrorCheck",
746 "instance-dependencies": [
747 "bluePrintPropertiesService"
749 "dynamic-properties": "*simple-status-properties"
756 "health-check-script": {
757 "type": "component-script-executor",
759 "ComponentScriptExecutor": {
763 "script-type": "kotlin",
764 "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.K8sHealthCheck",
765 "instance-dependencies": [
766 "bluePrintPropertiesService"
768 "dynamic-properties": "*simple-status-properties"
775 "config-setup-process": {
776 "type": "component-resource-resolution",
778 "ResourceResolutionComponent": {
783 "get_input": "resolution-key"
785 "store-result": false,
786 "artifact-prefix-names": [
791 "resource-assignment-params": {
804 "config-deploy-template": {
805 "type": "artifact-template-velocity",
806 "file": "Templates/config-setup-template.vtl"
808 "config-deploy-mapping": {
809 "type": "artifact-mapping-resource",
810 "file": "Templates/config-setup-mapping.json"
814 "config-deploy-process": {
815 "type": "component-script-executor",
817 "ComponentScriptExecutor": {
821 "script-type": "kotlin",
822 "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.ConfigDeploy",
823 "dynamic-properties": "*config-deploy-properties"
831 "type": "component-script-executor",
833 "ComponentScriptExecutor": {
837 "primary": "component-script",
839 "operation_host": "SELF"
842 "script-type": "kotlin",
843 "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.CollectorScript"