Correct CBA package for vFW_CNF_CDS usecase
[demo.git] / heat / vFW_CNF_CDS / templates / cba / Definitions / vFW_CNF_CDS.json
1 {
2   "tosca_definitions_version" : "controller_blueprint_1_0_0",
3   "metadata" : {
4     "template_author" : "Samuli Silvius <s.silvius@partner.samsung.com>",
5     "author-email" : "abdelmuhaimen.seaudi@orange.com",
6     "user-groups" : "ADMIN, OPERATION",
7     "template_name" : "vFW_CNF_CDS",
8     "template_version" : "1.0.13",
9     "template_tags" : "Samuli Silvius, vFW_CNF_CDS",
10     "template_type" : "DEFAULT"
11   },
12   "imports" : [ {
13     "file" : "Definitions/data_types.json"
14   }, {
15     "file" : "Definitions/relationship_types.json"
16   }, {
17     "file" : "Definitions/artifact_types.json"
18   }, {
19     "file" : "Definitions/node_types.json"
20   }, {
21     "file" : "Definitions/policy_types.json"
22   } ],
23   "dsl_definitions" : {
24     "vpkg-rest-api" : {
25       "type" : "basic-auth",
26       "url" : "http://",
27       "username" : "admin",
28       "password" : "admin"
29     },
30     "multicloud-k8s-api" : {
31       "type" : "basic-auth",
32       "username" : "admin",
33       "password" : "admin",
34       "url" : "http://multicloud-k8s:9015"
35     },
36     "profile-upload-properties" : {
37       "assignment-params" : {
38         "get_attribute" : [ "resource-assignment", "assignment-params" ]
39       },
40       "api-access" : "*multicloud-k8s-api"
41     },
42     "config-deploy-properties" : {
43       "resolution-key" : {
44         "get_input" : "resolution-key"
45       }
46     },
47     "dynamic-db-source" : {
48       "type" : "maria-db",
49       "url" : "jdbc:mysql://mariadb-galera:3306/sdnctl",
50       "username" : "root",
51       "password" : "secretpassword"
52     }
53   },
54   "topology_template" : {
55     "workflows" : {
56       "resource-assignment" : {
57         "steps" : {
58           "resource-assignment" : {
59             "description" : "Resource Assign Workflow",
60             "target" : "resource-assignment",
61             "activities" : [ {
62               "call_operation" : "ResourceResolutionComponent.process"
63             } ],
64             "on_success" : [ "profile-upload" ]
65           },
66           "profile-upload" : {
67             "description" : "Upload K8s Profile",
68             "target" : "profile-upload",
69             "activities" : [ {
70               "call_operation" : "ComponentScriptExecutor.process"
71             } ]
72           }
73         },
74         "inputs" : {
75           "template-prefix" : {
76             "required" : true,
77             "type" : "list",
78             "entry_schema" : {
79               "type" : "string"
80             }
81           },
82           "resolution-key" : {
83             "required" : false,
84             "type" : "string",
85             "entry_schema" : {
86               "type" : ""
87             }
88           },
89           "resource-assignment-properties" : {
90             "description" : "Dynamic PropertyDefinition for workflow(resource-assignment).",
91             "required" : true,
92             "type" : "dt-resource-assignment-properties"
93           }
94         },
95         "outputs" : {
96           "meshed-template" : {
97             "type" : "json",
98             "value" : {
99               "get_attribute" : [ "resource-assignment", "assignment-params" ]
100             }
101           }
102         }
103       },
104       "config-deploy" : {
105         "steps" : {
106           "config-deploy" : {
107             "description" : "Config Deploy Workflow",
108             "target" : "config-deploy-process"
109           }
110         },
111         "inputs" : {
112           "config-deploy-properties" : {
113             "description" : "Dynamic PropertyDefinition for workflow(config-deploy).",
114             "required" : true,
115             "type" : "dt-config-deploy-properties"
116           }
117         },
118         "outputs" : {
119           "dry-run" : {
120             "type" : "json",
121             "value" : {
122               "get_attribute" : [ "config-deploy-process", "assignment-params" ]
123             }
124           }
125         }
126       }
127     },
128     "node_templates" : {
129       "resource-assignment" : {
130         "type" : "component-resource-resolution",
131         "interfaces" : {
132           "ResourceResolutionComponent" : {
133             "operations" : {
134               "process" : {
135                 "inputs" : {
136                   "artifact-prefix-names" : {
137                     "get_input" : "template-prefix"
138                   }
139                 }
140               }
141             }
142           }
143         },
144         "artifacts" : {
145           "base_template-template" : {
146             "type" : "artifact-template-velocity",
147             "file" : "Templates/base_template-template.vtl"
148           },
149           "base_template-mapping" : {
150             "type" : "artifact-mapping-resource",
151             "file" : "Templates/base_template-mapping.json"
152           },
153           "vpkg-template" : {
154             "type" : "artifact-template-velocity",
155             "file" : "Templates/vpkg-template.vtl"
156           },
157           "vpkg-mapping" : {
158             "type" : "artifact-mapping-resource",
159             "file" : "Templates/vpkg-mapping.json"
160           },
161           "vfw-template" : {
162             "type" : "artifact-template-velocity",
163             "file" : "Templates/vfw-template.vtl"
164           },
165           "vfw-mapping" : {
166             "type" : "artifact-mapping-resource",
167             "file" : "Templates/vfw-mapping.json"
168           },
169           "vnf-template" : {
170             "type" : "artifact-template-velocity",
171             "file" : "Templates/vnf-template.vtl"
172           },
173           "vnf-mapping" : {
174             "type" : "artifact-mapping-resource",
175             "file" : "Templates/vnf-mapping.json"
176           },
177           "vsn-template" : {
178             "type" : "artifact-template-velocity",
179             "file" : "Templates/vsn-template.vtl"
180           },
181           "vsn-mapping" : {
182             "type" : "artifact-mapping-resource",
183             "file" : "Templates/vsn-mapping.json"
184           }
185         }
186       },
187       "profile-upload" : {
188         "type" : "component-script-executor",
189         "interfaces" : {
190           "ComponentScriptExecutor" : {
191             "operations" : {
192               "process" : {
193                 "inputs" : {
194                   "script-type" : "kotlin",
195                   "script-class-reference" : "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.K8sProfileUpload",
196                   "dynamic-properties" : "*profile-upload-properties"
197                 }
198               }
199             }
200           }
201         }
202       },
203       "config-deploy-process" : {
204         "type" : "component-resource-resolution",
205         "interfaces" : {
206           "ResourceResolutionComponent" : {
207             "operations" : {
208               "process" : {
209                 "inputs" : {
210                   "artifact-prefix-names" : [ "nf-params" ]
211                 }
212               }
213             }
214           }
215         },
216         "artifacts" : {
217           "nf-params-template" : {
218             "type" : "artifact-template-velocity",
219             "file" : "Templates/nf-params-template.vtl"
220           },
221           "nf-params-mapping" : {
222             "type" : "artifact-mapping-resource",
223             "file" : "Templates/nf-params-mapping.json"
224           }
225         }
226       }
227     }
228   }
229 }