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"
170 "config-upgrade-assign": {
173 "description": "Gather necessary input for profile upload",
174 "target": "config-setup-process",
177 "call_operation": "ResourceResolutionComponent.process"
185 "description": "Generate and upload K8s Profile before upgrade",
186 "target": "k8s-profile-upgrade-upload",
189 "call_operation": "ComponentScriptExecutor.process"
203 "config-upgrade-assign-properties": {
204 "description": "Dynamic PropertyDefinition for workflow(config-upgrade-assign).",
206 "type": "dt-config-upgrade-assign-properties"
213 "description": "Gather necessary input for config init and status verification",
214 "target": "config-setup-process",
217 "call_operation": "ResourceResolutionComponent.process"
221 "status-verification-script"
224 "status-verification-script": {
225 "description": "Simple status verification script",
226 "target": "simple-status-check",
229 "call_operation": "ComponentScriptExecutor.process"
237 "description": "Activate K8s config template",
238 "target": "k8s-config-apply",
241 "call_operation": "K8sConfigValueComponent.process"
245 "status-verification-script-after"
248 "status-verification-script-after": {
249 "description": "Simple status verification script",
250 "target": "simple-status-check",
253 "call_operation": "ComponentScriptExecutor.process"
261 "description": "Final collection of results",
262 "target": "collect-results"
270 "config-deploy-properties": {
271 "description": "Dynamic PropertyDefinition for workflow(config-deploy).",
273 "type": "dt-config-deploy-properties"
277 "config-upgrade-deploy": {
280 "description": "Gather necessary input for profile upload",
281 "target": "config-setup-process",
284 "call_operation": "ResourceResolutionComponent.process"
288 "status-verification-script"
291 "status-verification-script": {
292 "description": "Simple status verification script",
293 "target": "simple-status-check",
296 "call_operation": "ComponentScriptExecutor.process"
310 "config-upgrade-deploy-properties": {
311 "description": "Dynamic PropertyDefinition for workflow(config-upgrade-deploy).",
313 "type": "dt-config-upgrade-deploy-properties"
320 "description": "Gather necessary input for config init and status verification",
321 "target": "config-setup-process",
324 "call_operation": "ResourceResolutionComponent.process"
332 "description": "Generate and upload K8s config template",
333 "target": "k8s-config-template",
336 "call_operation": "K8sConfigTemplateComponent.process"
344 "description": "Activate K8s config apply",
345 "target": "k8s-config-apply",
348 "call_operation": "K8sConfigValueComponent.process"
352 "status-verification-script-after"
355 "status-verification-script-after": {
356 "description": "Simple status verification script",
357 "target": "simple-status-check",
360 "call_operation": "ComponentScriptExecutor.process"
368 "description": "Final collection of results",
369 "target": "collect-results"
377 "scale-out-properties": {
378 "description": "Dynamic PropertyDefinition for workflow(scale-out).",
380 "type": "dt-scale-out-properties"
387 "description": "Gather necessary input for config init and status verification",
388 "target": "config-setup-process",
391 "call_operation": "ResourceResolutionComponent.process"
399 "description": "Generate and upload K8s config template",
400 "target": "k8s-config-template",
403 "call_operation": "K8sConfigTemplateComponent.process"
411 "description": "Activate K8s config restore",
412 "target": "k8s-config-update",
415 "call_operation": "K8sConfigValueComponent.process"
419 "status-verification-script-after"
422 "status-verification-script-after": {
423 "description": "Simple status verification script",
424 "target": "simple-status-check",
427 "call_operation": "ComponentScriptExecutor.process"
435 "description": "Final collection of results",
436 "target": "collect-results"
444 "scale-properties": {
445 "description": "Dynamic PropertyDefinition for workflow(scale).",
447 "type": "dt-scale-properties"
454 "description": "Gather necessary input for config init and status verification",
455 "target": "config-setup-process",
458 "call_operation": "ResourceResolutionComponent.process"
466 "description": "Generate and upload K8s config template",
467 "target": "k8s-config-template",
470 "call_operation": "K8sConfigTemplateComponent.process"
478 "description": "Activate K8s config restore",
479 "target": "k8s-config-restore",
482 "call_operation": "K8sConfigValueComponent.process"
486 "status-verification-script-after"
489 "status-verification-script-after": {
490 "description": "Simple status verification script",
491 "target": "simple-status-check",
494 "call_operation": "ComponentScriptExecutor.process"
502 "description": "Final collection of results",
503 "target": "collect-results"
511 "scale-in-properties": {
512 "description": "Dynamic PropertyDefinition for workflow(scale-in).",
514 "type": "dt-scale-in-properties"
521 "description": "Gather necessary input for config init and status verification",
522 "target": "config-setup-process",
525 "call_operation": "ResourceResolutionComponent.process"
529 "status-verification-script"
535 "status-verification-script": {
536 "description": "Simple status verification script",
537 "target": "simple-status-check",
540 "call_operation": "ComponentScriptExecutor.process"
544 "health-check-process"
547 "health-check-process": {
548 "description": "Start health check script",
549 "target": "health-check-script",
552 "call_operation": "ComponentScriptExecutor.process"
560 "description": "Simple error verification script",
561 "target": "simple-script",
564 "call_operation": "ComponentScriptExecutor.process"
572 "description": "Final collection of results",
573 "target": "collect-results"
581 "health-check-properties": {
582 "description": "Dynamic PropertyDefinition for workflow(health-check).",
584 "type": "dt-health-check-properties"
590 "resource-assignment": {
591 "type": "component-resource-resolution",
593 "ResourceResolutionComponent": {
597 "artifact-prefix-names": {
598 "get_input": "template-prefix"
606 "helm_apache-template": {
607 "type": "artifact-template-velocity",
608 "file": "Templates/cnf-template.vtl"
610 "helm_apache-mapping": {
611 "type": "artifact-mapping-resource",
612 "file": "Templates/cnf-mapping.json"
615 "type": "artifact-template-velocity",
616 "file": "Templates/vnf-template.vtl"
619 "type": "artifact-mapping-resource",
620 "file": "Templates/vnf-mapping.json"
624 "k8s-profile-upload": {
625 "type": "component-k8s-profile-upload",
627 "K8sProfileUploadComponent": {
631 "artifact-prefix-names": {
632 "get_input": "template-prefix"
634 "resource-assignment-map": {
636 "resource-assignment",
646 "cnf-cds-base-profile": {
647 "type": "artifact-k8sprofile-content",
648 "file": "Templates/k8s-profiles/cnf-cds-base-profile.tar.gz"
650 "node-port-profile": {
651 "type": "artifact-k8sprofile-content",
652 "file": "Templates/k8s-profiles/node-port-profile.tar.gz"
656 "k8s-profile-upgrade-upload": {
657 "type": "component-k8s-profile-upload",
659 "K8sProfileUploadComponent": {
663 "artifact-prefix-names": [
666 "resource-assignment-map": {
668 "config-setup-process",
672 "config-deploy-setup"
681 "cnf-cds-base-profile": {
682 "type": "artifact-k8sprofile-content",
683 "file": "Templates/k8s-profiles/cnf-cds-base-profile.tar.gz"
685 "node-port-profile": {
686 "type": "artifact-k8sprofile-content",
687 "file": "Templates/k8s-profiles/node-port-profile.tar.gz"
691 "k8s-config-template": {
692 "type": "component-k8s-config-template",
694 "K8sConfigTemplateComponent": {
698 "artifact-prefix-names": [
701 "resource-assignment-map": {
703 "config-setup-process",
707 "config-deploy-setup"
716 "k8s-config-apply": {
717 "type": "component-k8s-config-value",
719 "K8sConfigValueComponent": {
723 "artifact-prefix-names": [
726 "k8s-config-operation-type": "create",
727 "resource-assignment-map": {
729 "config-setup-process",
733 "config-deploy-setup"
743 "type": "artifact-k8sconfig-content",
744 "file": "Templates/k8s-configs/deployment-values/default-values.yaml"
747 "type": "artifact-k8sconfig-content",
748 "file": "Templates/k8s-configs/deployment-values/restore-values.yaml"
751 "type": "artifact-k8sconfig-content",
752 "file": "Templates/k8s-configs/deployment-values/values.yaml.vtl"
754 "custom-values-mapping": {
755 "type": "artifact-mapping-resource",
756 "file": "Templates/k8s-configs/deployment-values/values-mapping.json"
760 "k8s-config-restore": {
761 "type": "component-k8s-config-value",
763 "K8sConfigValueComponent": {
767 "artifact-prefix-names": [
770 "k8s-config-operation-type": "update",
771 "k8s-rb-config-value-source": "restore-values",
772 "resource-assignment-map": {
774 "config-setup-process",
778 "config-deploy-setup"
788 "type": "artifact-k8sconfig-content",
789 "file": "Templates/k8s-configs/deployment-values/restore-values.yaml"
793 "k8s-config-update": {
794 "type": "component-k8s-config-value",
796 "K8sConfigValueComponent": {
800 "artifact-prefix-names": [
803 "k8s-config-operation-type": "update",
804 "k8s-rb-config-value-source": "custom-values",
805 "resource-assignment-map": {
807 "config-setup-process",
811 "config-deploy-setup"
821 "type": "artifact-k8sconfig-content",
822 "file": "Templates/k8s-configs/deployment-values/values.yaml.vtl"
824 "custom-values-mapping": {
825 "type": "artifact-mapping-resource",
826 "file": "Templates/k8s-configs/deployment-values/values-mapping.json"
830 "simple-status-check": {
831 "type": "component-script-executor",
833 "ComponentScriptExecutor": {
837 "script-type": "kotlin",
838 "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.SimpleStatusCheck",
839 "instance-dependencies": [
840 "bluePrintPropertiesService"
842 "dynamic-properties": "*simple-status-properties"
850 "type": "component-script-executor",
852 "ComponentScriptExecutor": {
856 "script-type": "kotlin",
857 "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.SimpleScript",
858 "dynamic-properties": "*simple-status-properties"
865 "health-check-script": {
866 "type": "component-script-executor",
868 "ComponentScriptExecutor": {
872 "script-type": "kotlin",
873 "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.K8sHealthCheck",
874 "instance-dependencies": [
875 "bluePrintPropertiesService"
877 "dynamic-properties": "*simple-status-properties"
884 "config-setup-process": {
885 "type": "component-resource-resolution",
887 "ResourceResolutionComponent": {
892 "get_input": "resolution-key"
894 "store-result": false,
895 "artifact-prefix-names": [
900 "resource-assignment-params": {
913 "config-deploy-template": {
914 "type": "artifact-template-velocity",
915 "file": "Templates/config-setup-template.vtl"
917 "config-deploy-mapping": {
918 "type": "artifact-mapping-resource",
919 "file": "Templates/config-setup-mapping.json"
923 "config-deploy-process": {
924 "type": "component-script-executor",
926 "ComponentScriptExecutor": {
930 "script-type": "kotlin",
931 "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.ConfigDeploy",
932 "dynamic-properties": "*config-deploy-properties"
940 "type": "component-script-executor",
942 "ComponentScriptExecutor": {
946 "primary": "component-script",
948 "operation_host": "SELF"
951 "script-type": "kotlin",
952 "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.CollectorScript"