Simplify CBA by removing unnecessary variables
[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.44",
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       "profile-modification-decision-data" : {
41         "get_input" : "vpg-management-port"
42       },
43       "profile-artifacts" : {
44         "get_attribute" : [ "profile-modification", "assignment-params" ]
45       },
46       "api-access" : "*multicloud-k8s-api"
47     },
48     "config-deploy-properties" : {
49       "resolution-key" : {
50         "get_input" : "resolution-key"
51       }
52     },
53     "dynamic-db-source" : {
54       "type" : "maria-db",
55       "url" : "jdbc:mysql://mariadb-galera:3306/sdnctl",
56       "username" : "root",
57       "password" : "secretpassword"
58     }
59   },
60   "topology_template" : {
61     "workflows" : {
62       "resource-assignment" : {
63         "steps" : {
64           "resource-assignment" : {
65             "description" : "Resource Assign Workflow",
66             "target" : "resource-assignment",
67             "activities" : [ {
68               "call_operation" : "ResourceResolutionComponent.process"
69             } ],
70             "on_success" : [ "profile-modification" ]
71           },
72           "profile-modification" : {
73             "description" : "Profile Modification Resources",
74             "target" : "profile-modification",
75             "activities" : [ {
76               "call_operation" : "ResourceResolutionComponent.process"
77             } ],
78             "on_success" : [ "profile-upload" ]
79           },
80           "profile-upload" : {
81             "description" : "Upload K8s Profile",
82             "target" : "profile-upload",
83             "activities" : [ {
84               "call_operation" : "ComponentScriptExecutor.process"
85             } ]
86           }
87         },
88         "inputs" : {
89           "template-prefix" : {
90             "required" : true,
91             "type" : "list",
92             "entry_schema" : {
93               "type" : "string"
94             }
95           },
96           "resolution-key" : {
97             "required" : false,
98             "type" : "string",
99             "entry_schema" : {
100               "type" : ""
101             }
102           },
103           "resource-assignment-properties" : {
104             "description" : "Dynamic PropertyDefinition for workflow(resource-assignment).",
105             "required" : true,
106             "type" : "dt-resource-assignment-properties"
107           }
108         },
109         "outputs" : {
110           "meshed-template" : {
111             "type" : "json",
112             "value" : {
113               "get_attribute" : [ "resource-assignment", "assignment-params" ]
114             }
115           }
116         }
117       },
118       "config-deploy" : {
119         "steps" : {
120           "config-deploy" : {
121             "description" : "Config Deploy Workflow",
122             "target" : "config-deploy-process"
123           }
124         },
125         "inputs" : {
126           "config-deploy-properties" : {
127             "description" : "Dynamic PropertyDefinition for workflow(config-deploy).",
128             "required" : true,
129             "type" : "dt-config-deploy-properties"
130           }
131         },
132         "outputs" : {
133           "dry-run" : {
134             "type" : "json",
135             "value" : {
136               "get_attribute" : [ "config-deploy-process", "assignment-params" ]
137             }
138           }
139         }
140       }
141     },
142     "node_templates" : {
143       "resource-assignment" : {
144         "type" : "component-resource-resolution",
145         "interfaces" : {
146           "ResourceResolutionComponent" : {
147             "operations" : {
148               "process" : {
149                 "inputs" : {
150                   "artifact-prefix-names" : {
151                     "get_input" : "template-prefix"
152                   }
153                 }
154               }
155             }
156           }
157         },
158         "artifacts" : {
159           "base_template-template" : {
160             "type" : "artifact-template-velocity",
161             "file" : "Templates/base_template-template.vtl"
162           },
163           "base_template-mapping" : {
164             "type" : "artifact-mapping-resource",
165             "file" : "Templates/base_template-mapping.json"
166           },
167           "vpkg-template" : {
168             "type" : "artifact-template-velocity",
169             "file" : "Templates/vpkg-template.vtl"
170           },
171           "vpkg-mapping" : {
172             "type" : "artifact-mapping-resource",
173             "file" : "Templates/vpkg-mapping.json"
174           },
175           "vfw-template" : {
176             "type" : "artifact-template-velocity",
177             "file" : "Templates/vfw-template.vtl"
178           },
179           "vfw-mapping" : {
180             "type" : "artifact-mapping-resource",
181             "file" : "Templates/vfw-mapping.json"
182           },
183           "vnf-template" : {
184             "type" : "artifact-template-velocity",
185             "file" : "Templates/vnf-template.vtl"
186           },
187           "vnf-mapping" : {
188             "type" : "artifact-mapping-resource",
189             "file" : "Templates/vnf-mapping.json"
190           },
191           "vsn-template" : {
192             "type" : "artifact-template-velocity",
193             "file" : "Templates/vsn-template.vtl"
194           },
195           "vsn-mapping" : {
196             "type" : "artifact-mapping-resource",
197             "file" : "Templates/vsn-mapping.json"
198           }
199         }
200       },
201       "profile-modification" : {
202         "type" : "component-resource-resolution",
203         "interfaces" : {
204           "ResourceResolutionComponent" : {
205             "operations" : {
206               "process" : {
207                 "inputs" : {
208                   "artifact-prefix-names" : [ "ssh-service" ]
209                 }
210               }
211             }
212           }
213         },
214         "artifacts" : {
215           "ssh-service-template" : {
216             "type" : "artifact-template-velocity",
217             "file" : "Templates/k8s-profiles/ssh-service-template.vtl"
218           },
219           "ssh-service-mapping" : {
220             "type" : "artifact-mapping-resource",
221             "file" : "Templates/k8s-profiles/ssh-service-mapping.json"
222           }
223         }
224       },
225       "profile-upload" : {
226         "type" : "component-script-executor",
227         "interfaces" : {
228           "ComponentScriptExecutor" : {
229             "operations" : {
230               "process" : {
231                 "inputs" : {
232                   "script-type" : "kotlin",
233                   "script-class-reference" : "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.K8sProfileUpload",
234                   "dynamic-properties" : "*profile-upload-properties"
235                 }
236               }
237             }
238           }
239         }
240       },
241       "config-deploy-process" : {
242         "type" : "component-resource-resolution",
243         "interfaces" : {
244           "ResourceResolutionComponent" : {
245             "operations" : {
246               "process" : {
247                 "inputs" : {
248                   "artifact-prefix-names" : [ "nf-params" ]
249                 }
250               }
251             }
252           }
253         },
254         "artifacts" : {
255           "nf-params-template" : {
256             "type" : "artifact-template-velocity",
257             "file" : "Templates/nf-params-template.vtl"
258           },
259           "nf-params-mapping" : {
260             "type" : "artifact-mapping-resource",
261             "file" : "Templates/nf-params-mapping.json"
262           }
263         }
264       }
265     }
266   }
267 }