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",
60 "status-check-max-count": {
62 "config-setup-process",
66 "status-check-max-count"
71 "topology_template": {
73 "resource-assignment": {
75 "resource-assignment": {
76 "description": "Resource Assign Workflow",
77 "target": "resource-assignment",
80 "call_operation": "ResourceResolutionComponent.process"
88 "description": "Generate and upload K8s Profile",
89 "target": "k8s-profile-upload",
92 "call_operation": "ComponentScriptExecutor.process"
112 "resource-assignment-properties": {
113 "description": "Dynamic PropertyDefinition for workflow(resource-assignment).",
115 "type": "dt-resource-assignment-properties"
123 "resource-assignment",
133 "description": "Gather necessary input for config template upload",
134 "target": "config-setup-process",
137 "call_operation": "ResourceResolutionComponent.process"
145 "description": "Generate and upload K8s config template",
146 "target": "k8s-config-template",
149 "call_operation": "K8sConfigTemplateComponent.process"
163 "config-assign-properties": {
164 "description": "Dynamic PropertyDefinition for workflow(config-assign).",
166 "type": "dt-config-assign-properties"
173 "description": "Gather necessary input for config init and status verification",
174 "target": "config-setup-process",
177 "call_operation": "ResourceResolutionComponent.process"
181 "status-verification-script"
184 "status-verification-script": {
185 "description": "Simple status verification script",
186 "target": "simple-status-check",
189 "call_operation": "ComponentScriptExecutor.process"
197 "description": "Activate K8s config template",
198 "target": "k8s-config-apply",
201 "call_operation": "K8sConfigValueComponent.process"
205 "status-verification-script-after"
208 "status-verification-script-after": {
209 "description": "Simple status verification script",
210 "target": "simple-status-check",
213 "call_operation": "ComponentScriptExecutor.process"
221 "description": "Final collection of results",
222 "target": "collect-results"
230 "config-deploy-properties": {
231 "description": "Dynamic PropertyDefinition for workflow(config-deploy).",
233 "type": "dt-config-deploy-properties"
240 "description": "Gather necessary input for config init and status verification",
241 "target": "config-setup-process",
244 "call_operation": "ResourceResolutionComponent.process"
252 "description": "Generate and upload K8s config template",
253 "target": "k8s-config-template",
256 "call_operation": "K8sConfigTemplateComponent.process"
264 "description": "Activate K8s config apply",
265 "target": "k8s-config-apply",
268 "call_operation": "K8sConfigValueComponent.process"
272 "status-verification-script-after"
275 "status-verification-script-after": {
276 "description": "Simple status verification script",
277 "target": "simple-status-check",
280 "call_operation": "ComponentScriptExecutor.process"
288 "description": "Final collection of results",
289 "target": "collect-results"
297 "scale-out-properties": {
298 "description": "Dynamic PropertyDefinition for workflow(scale-out).",
300 "type": "dt-scale-out-properties"
307 "description": "Gather necessary input for config init and status verification",
308 "target": "config-setup-process",
311 "call_operation": "ResourceResolutionComponent.process"
319 "description": "Generate and upload K8s config template",
320 "target": "k8s-config-template",
323 "call_operation": "K8sConfigTemplateComponent.process"
331 "description": "Activate K8s config restore",
332 "target": "k8s-config-update",
335 "call_operation": "K8sConfigValueComponent.process"
339 "status-verification-script-after"
342 "status-verification-script-after": {
343 "description": "Simple status verification script",
344 "target": "simple-status-check",
347 "call_operation": "ComponentScriptExecutor.process"
355 "description": "Final collection of results",
356 "target": "collect-results"
364 "scale-properties": {
365 "description": "Dynamic PropertyDefinition for workflow(scale).",
367 "type": "dt-scale-properties"
374 "description": "Gather necessary input for config init and status verification",
375 "target": "config-setup-process",
378 "call_operation": "ResourceResolutionComponent.process"
386 "description": "Generate and upload K8s config template",
387 "target": "k8s-config-template",
390 "call_operation": "K8sConfigTemplateComponent.process"
398 "description": "Activate K8s config restore",
399 "target": "k8s-config-restore",
402 "call_operation": "K8sConfigValueComponent.process"
406 "status-verification-script-after"
409 "status-verification-script-after": {
410 "description": "Simple status verification script",
411 "target": "simple-status-check",
414 "call_operation": "ComponentScriptExecutor.process"
422 "description": "Final collection of results",
423 "target": "collect-results"
431 "scale-in-properties": {
432 "description": "Dynamic PropertyDefinition for workflow(scale-in).",
434 "type": "dt-scale-in-properties"
441 "description": "Gather necessary input for config init and status verification",
442 "target": "config-setup-process",
445 "call_operation": "ResourceResolutionComponent.process"
449 "status-verification-script"
455 "status-verification-script": {
456 "description": "Simple status verification script",
457 "target": "simple-status-check",
460 "call_operation": "ComponentScriptExecutor.process"
464 "health-check-process"
467 "health-check-process": {
468 "description": "Start health check script",
469 "target": "health-check-script",
472 "call_operation": "ComponentScriptExecutor.process"
480 "description": "Simple error verification script",
481 "target": "simple-error-check",
484 "call_operation": "ComponentScriptExecutor.process"
492 "description": "Final collection of results",
493 "target": "collect-results"
501 "health-check-properties": {
502 "description": "Dynamic PropertyDefinition for workflow(health-check).",
504 "type": "dt-health-check-properties"
510 "resource-assignment": {
511 "type": "component-resource-resolution",
513 "ResourceResolutionComponent": {
517 "artifact-prefix-names": {
518 "get_input": "template-prefix"
526 "helm_apache-template": {
527 "type": "artifact-template-velocity",
528 "file": "Templates/cnf-template.vtl"
530 "helm_apache-mapping": {
531 "type": "artifact-mapping-resource",
532 "file": "Templates/cnf-mapping.json"
535 "type": "artifact-template-velocity",
536 "file": "Templates/vnf-template.vtl"
539 "type": "artifact-mapping-resource",
540 "file": "Templates/vnf-mapping.json"
544 "k8s-profile-upload": {
545 "type": "component-k8s-profile-upload",
547 "K8sProfileUploadComponent": {
551 "artifact-prefix-names": {
552 "get_input": "template-prefix"
554 "resource-assignment-map": {
556 "resource-assignment",
566 "cnf-cds-base-profile": {
567 "type": "artifact-k8sprofile-content",
568 "file": "Templates/k8s-profiles/cnf-cds-base-profile.tar.gz"
570 "node-port-profile": {
571 "type": "artifact-k8sprofile-content",
572 "file": "Templates/k8s-profiles/node-port-profile.tar.gz"
576 "k8s-config-template": {
577 "type": "component-k8s-config-template",
579 "K8sConfigTemplateComponent": {
583 "artifact-prefix-names": [
586 "resource-assignment-map": {
588 "config-setup-process",
592 "config-deploy-setup"
601 "k8s-config-apply": {
602 "type": "component-k8s-config-value",
604 "K8sConfigValueComponent": {
608 "artifact-prefix-names": [
611 "k8s-config-operation-type": "create",
612 "resource-assignment-map": {
614 "config-setup-process",
618 "config-deploy-setup"
628 "type": "artifact-k8sconfig-content",
629 "file": "Templates/k8s-configs/deployment-values/default-values.yaml"
632 "type": "artifact-k8sconfig-content",
633 "file": "Templates/k8s-configs/deployment-values/restore-values.yaml"
636 "type": "artifact-k8sconfig-content",
637 "file": "Templates/k8s-configs/deployment-values/values.yaml.vtl"
639 "custom-values-mapping": {
640 "type": "artifact-mapping-resource",
641 "file": "Templates/k8s-configs/deployment-values/values-mapping.json"
645 "k8s-config-restore": {
646 "type": "component-k8s-config-value",
648 "K8sConfigValueComponent": {
652 "artifact-prefix-names": [
655 "k8s-config-operation-type": "update",
656 "k8s-rb-config-value-source": "restore-values",
657 "resource-assignment-map": {
659 "config-setup-process",
663 "config-deploy-setup"
673 "type": "artifact-k8sconfig-content",
674 "file": "Templates/k8s-configs/deployment-values/restore-values.yaml"
678 "k8s-config-update": {
679 "type": "component-k8s-config-value",
681 "K8sConfigValueComponent": {
685 "artifact-prefix-names": [
688 "k8s-config-operation-type": "update",
689 "k8s-rb-config-value-source": "custom-values",
690 "resource-assignment-map": {
692 "config-setup-process",
696 "config-deploy-setup"
706 "type": "artifact-k8sconfig-content",
707 "file": "Templates/k8s-configs/deployment-values/values.yaml.vtl"
709 "custom-values-mapping": {
710 "type": "artifact-mapping-resource",
711 "file": "Templates/k8s-configs/deployment-values/values-mapping.json"
715 "simple-status-check": {
716 "type": "component-script-executor",
718 "ComponentScriptExecutor": {
722 "script-type": "kotlin",
723 "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.SimpleStatusCheck",
724 "instance-dependencies": [
725 "bluePrintPropertiesService"
727 "dynamic-properties": "*simple-status-properties"
734 "simple-error-check": {
735 "type": "component-script-executor",
737 "ComponentScriptExecutor": {
741 "script-type": "kotlin",
742 "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.SimpleErrorCheck",
743 "instance-dependencies": [
744 "bluePrintPropertiesService"
746 "dynamic-properties": "*simple-status-properties"
753 "health-check-script": {
754 "type": "component-script-executor",
756 "ComponentScriptExecutor": {
760 "script-type": "kotlin",
761 "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.K8sHealthCheck",
762 "instance-dependencies": [
763 "bluePrintPropertiesService"
765 "dynamic-properties": "*simple-status-properties"
772 "config-setup-process": {
773 "type": "component-resource-resolution",
775 "ResourceResolutionComponent": {
780 "get_input": "resolution-key"
782 "store-result": false,
783 "artifact-prefix-names": [
788 "resource-assignment-params": {
801 "config-deploy-template": {
802 "type": "artifact-template-velocity",
803 "file": "Templates/config-setup-template.vtl"
805 "config-deploy-mapping": {
806 "type": "artifact-mapping-resource",
807 "file": "Templates/config-setup-mapping.json"
811 "config-deploy-process": {
812 "type": "component-script-executor",
814 "ComponentScriptExecutor": {
818 "script-type": "kotlin",
819 "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.ConfigDeploy",
820 "dynamic-properties": "*config-deploy-properties"
828 "type": "component-script-executor",
830 "ComponentScriptExecutor": {
834 "primary": "component-script",
836 "operation_host": "SELF"
839 "script-type": "kotlin",
840 "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.CollectorScript"