Remove endpoint-selector from Data Dictionary
[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.45",
9         "template_tags": "Samuli Silvius, vFW_CNF_CDS",
10         "template_type": "DEFAULT"
11     },
12     "imports": [
13         {
14             "file": "Definitions/data_types.json"
15         },
16         {
17             "file": "Definitions/relationship_types.json"
18         },
19         {
20             "file": "Definitions/artifact_types.json"
21         },
22         {
23             "file": "Definitions/node_types.json"
24         },
25         {
26             "file": "Definitions/policy_types.json"
27         }
28     ],
29     "dsl_definitions": {
30         "vpkg-rest-api": {
31             "type": "basic-auth",
32             "url": "http://",
33             "username": "admin",
34             "password": "admin"
35         },
36         "multicloud-k8s-api": {
37             "type": "basic-auth",
38             "username": "admin",
39             "password": "admin",
40             "url": "http://multicloud-k8s:9015"
41         },
42         "profile-upload-properties": {
43             "assignment-params": {
44                 "get_attribute": [
45                     "resource-assignment",
46                     "assignment-params"
47                 ]
48             },
49             "profile-modification-decision-data": {
50                 "get_input": "vpg-management-port"
51             },
52             "profile-artifacts": {
53                 "get_attribute": [
54                     "profile-modification",
55                     "assignment-params"
56                 ]
57             },
58             "api-access": "*multicloud-k8s-api"
59         },
60         "config-deploy-properties": {
61             "resolution-key": {
62                 "get_input": "resolution-key"
63             }
64         }
65     },
66     "topology_template": {
67         "workflows": {
68             "resource-assignment": {
69                 "steps": {
70                     "resource-assignment": {
71                         "description": "Resource Assign Workflow",
72                         "target": "resource-assignment",
73                         "activities": [
74                             {
75                                 "call_operation": "ResourceResolutionComponent.process"
76                             }
77                         ],
78                         "on_success": [
79                             "profile-modification"
80                         ]
81                     },
82                     "profile-modification": {
83                         "description": "Profile Modification Resources",
84                         "target": "profile-modification",
85                         "activities": [
86                             {
87                                 "call_operation": "ResourceResolutionComponent.process"
88                             }
89                         ],
90                         "on_success": [
91                             "profile-upload"
92                         ]
93                     },
94                     "profile-upload": {
95                         "description": "Upload K8s Profile",
96                         "target": "profile-upload",
97                         "activities": [
98                             {
99                                 "call_operation": "ComponentScriptExecutor.process"
100                             }
101                         ]
102                     }
103                 },
104                 "inputs": {
105                     "template-prefix": {
106                         "required": true,
107                         "type": "list",
108                         "entry_schema": {
109                             "type": "string"
110                         }
111                     },
112                     "resolution-key": {
113                         "required": false,
114                         "type": "string",
115                         "entry_schema": {
116                             "type": ""
117                         }
118                     },
119                     "resource-assignment-properties": {
120                         "description": "Dynamic PropertyDefinition for workflow(resource-assignment).",
121                         "required": true,
122                         "type": "dt-resource-assignment-properties"
123                     }
124                 },
125                 "outputs": {
126                     "meshed-template": {
127                         "type": "json",
128                         "value": {
129                             "get_attribute": [
130                                 "resource-assignment",
131                                 "assignment-params"
132                             ]
133                         }
134                     }
135                 }
136             },
137             "config-deploy": {
138                 "steps": {
139                     "config-deploy": {
140                         "description": "Config Deploy Workflow",
141                         "target": "config-deploy-process"
142                     }
143                 },
144                 "inputs": {
145                     "config-deploy-properties": {
146                         "description": "Dynamic PropertyDefinition for workflow(config-deploy).",
147                         "required": true,
148                         "type": "dt-config-deploy-properties"
149                     }
150                 },
151                 "outputs": {
152                     "dry-run": {
153                         "type": "json",
154                         "value": {
155                             "get_attribute": [
156                                 "config-deploy-process",
157                                 "assignment-params"
158                             ]
159                         }
160                     }
161                 }
162             }
163         },
164         "node_templates": {
165             "resource-assignment": {
166                 "type": "component-resource-resolution",
167                 "interfaces": {
168                     "ResourceResolutionComponent": {
169                         "operations": {
170                             "process": {
171                                 "inputs": {
172                                     "artifact-prefix-names": {
173                                         "get_input": "template-prefix"
174                                     }
175                                 }
176                             }
177                         }
178                     }
179                 },
180                 "artifacts": {
181                     "base_template-template": {
182                         "type": "artifact-template-velocity",
183                         "file": "Templates/base_template-template.vtl"
184                     },
185                     "base_template-mapping": {
186                         "type": "artifact-mapping-resource",
187                         "file": "Templates/base_template-mapping.json"
188                     },
189                     "vpkg-template": {
190                         "type": "artifact-template-velocity",
191                         "file": "Templates/vpkg-template.vtl"
192                     },
193                     "vpkg-mapping": {
194                         "type": "artifact-mapping-resource",
195                         "file": "Templates/vpkg-mapping.json"
196                     },
197                     "vfw-template": {
198                         "type": "artifact-template-velocity",
199                         "file": "Templates/vfw-template.vtl"
200                     },
201                     "vfw-mapping": {
202                         "type": "artifact-mapping-resource",
203                         "file": "Templates/vfw-mapping.json"
204                     },
205                     "vnf-template": {
206                         "type": "artifact-template-velocity",
207                         "file": "Templates/vnf-template.vtl"
208                     },
209                     "vnf-mapping": {
210                         "type": "artifact-mapping-resource",
211                         "file": "Templates/vnf-mapping.json"
212                     },
213                     "vsn-template": {
214                         "type": "artifact-template-velocity",
215                         "file": "Templates/vsn-template.vtl"
216                     },
217                     "vsn-mapping": {
218                         "type": "artifact-mapping-resource",
219                         "file": "Templates/vsn-mapping.json"
220                     }
221                 }
222             },
223             "profile-modification": {
224                 "type": "component-resource-resolution",
225                 "interfaces": {
226                     "ResourceResolutionComponent": {
227                         "operations": {
228                             "process": {
229                                 "inputs": {
230                                     "artifact-prefix-names": [
231                                         "ssh-service"
232                                     ]
233                                 }
234                             }
235                         }
236                     }
237                 },
238                 "artifacts": {
239                     "ssh-service-template": {
240                         "type": "artifact-template-velocity",
241                         "file": "Templates/k8s-profiles/ssh-service-template.vtl"
242                     },
243                     "ssh-service-mapping": {
244                         "type": "artifact-mapping-resource",
245                         "file": "Templates/k8s-profiles/ssh-service-mapping.json"
246                     }
247                 }
248             },
249             "profile-upload": {
250                 "type": "component-script-executor",
251                 "interfaces": {
252                     "ComponentScriptExecutor": {
253                         "operations": {
254                             "process": {
255                                 "inputs": {
256                                     "script-type": "kotlin",
257                                     "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.K8sProfileUpload",
258                                     "dynamic-properties": "*profile-upload-properties"
259                                 }
260                             }
261                         }
262                     }
263                 }
264             },
265             "config-deploy-process": {
266                 "type": "component-resource-resolution",
267                 "interfaces": {
268                     "ResourceResolutionComponent": {
269                         "operations": {
270                             "process": {
271                                 "inputs": {
272                                     "artifact-prefix-names": [
273                                         "nf-params"
274                                     ]
275                                 }
276                             }
277                         }
278                     }
279                 },
280                 "artifacts": {
281                     "nf-params-template": {
282                         "type": "artifact-template-velocity",
283                         "file": "Templates/nf-params-template.vtl"
284                     },
285                     "nf-params-mapping": {
286                         "type": "artifact-mapping-resource",
287                         "file": "Templates/nf-params-mapping.json"
288                     }
289                 }
290             }
291         }
292     }
293 }