vFW Upgrade Workflow
[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.0",
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     "ipam-1" : {
25       "type" : "token-auth",
26       "url" : "http://netbox-nginx:8080",
27       "token" : "Token 0123456789abcdef0123456789abcdef01234567"
28     },
29     "vpkg-rest-api" : {
30       "type" : "basic-auth",
31       "url" : "http://",
32       "username" : "admin",
33       "password" : "admin"
34     },
35     "config-deploy-properties" : {
36       "resolution-key" : {
37         "get_input" : "resolution-key"
38       }
39     },
40     "dynamic-db-source" : {
41       "type" : "maria-db",
42       "url" : "jdbc:mysql://mariadb-galera:3306/sdnctl",
43       "username" : "root",
44       "password" : "secretpassword"
45     }
46   },
47   "topology_template" : {
48     "workflows" : {
49       "resource-assignment" : {
50         "steps" : {
51           "resource-assignment" : {
52             "description" : "Resource Assign Workflow",
53             "target" : "resource-assignment"
54           }
55         },
56         "inputs" : {
57           "template-prefix" : {
58             "required" : true,
59             "type" : "list",
60             "entry_schema" : {
61               "type" : "string"
62             }
63           },
64           "resource-assignment-properties" : {
65             "description" : "Dynamic PropertyDefinition for workflow(resource-assignment).",
66             "required" : true,
67             "type" : "dt-resource-assignment-properties"
68           }
69         },
70         "outputs" : {
71           "meshed-template" : {
72             "type" : "json",
73             "value" : {
74               "get_attribute" : [ "resource-assignment", "assignment-params" ]
75             }
76           }
77         }
78       },
79       "config-deploy" : {
80         "steps" : {
81           "config-deploy" : {
82             "description" : "Config Deploy Workflow",
83             "target" : "config-deploy-process"
84           }
85         },
86         "inputs" : {
87           "config-deploy-properties" : {
88             "description" : "Dynamic PropertyDefinition for workflow(config-deploy).",
89             "required" : true,
90             "type" : "dt-config-deploy-properties"
91           }
92         },
93         "outputs" : {
94           "dry-run" : {
95             "type" : "json",
96             "value" : {
97               "get_attribute" : [ "config-deploy-process", "assignment-params" ]
98             }
99           }
100         }
101       }
102     },
103     "node_templates" : {
104       "resource-assignment" : {
105         "type" : "component-resource-resolution",
106         "interfaces" : {
107           "ResourceResolutionComponent" : {
108             "operations" : {
109               "process" : {
110                 "inputs" : {
111                   "artifact-prefix-names" : {
112                     "get_input" : "template-prefix"
113                   }
114                 }
115               }
116             }
117           }
118         },
119         "artifacts" : {
120           "base_template-template" : {
121             "type" : "artifact-template-velocity",
122             "file" : "Templates/base_template-template.vtl"
123           },
124           "base_template-mapping" : {
125             "type" : "artifact-mapping-resource",
126             "file" : "Templates/base_template-mapping.json"
127           },
128           "vpkg-template" : {
129             "type" : "artifact-template-velocity",
130             "file" : "Templates/vpkg-template.vtl"
131           },
132           "vpkg-mapping" : {
133             "type" : "artifact-mapping-resource",
134             "file" : "Templates/vpkg-mapping.json"
135           },
136           "vfw-template" : {
137             "type" : "artifact-template-velocity",
138             "file" : "Templates/vfw-template.vtl"
139           },
140           "vfw-mapping" : {
141             "type" : "artifact-mapping-resource",
142             "file" : "Templates/vfw-mapping.json"
143           },
144           "vnf-template" : {
145             "type" : "artifact-template-velocity",
146             "file" : "Templates/vnf-template.vtl"
147           },
148           "vnf-mapping" : {
149             "type" : "artifact-mapping-resource",
150             "file" : "Templates/vnf-mapping.json"
151           },
152           "vsn-template" : {
153             "type" : "artifact-template-velocity",
154             "file" : "Templates/vsn-template.vtl"
155           },
156           "vsn-mapping" : {
157             "type" : "artifact-mapping-resource",
158             "file" : "Templates/vsn-mapping.json"
159           }
160         }
161       },
162       "config-deploy-process" : {
163         "type" : "component-resource-resolution",
164         "interfaces" : {
165           "ResourceResolutionComponent" : {
166             "operations" : {
167               "process" : {
168                 "inputs" : {
169                   "artifact-prefix-names" : [ "nf-params" ]
170                 }
171               }
172             }
173           }
174         },
175         "artifacts" : {
176           "nf-params-template" : {
177             "type" : "artifact-template-velocity",
178             "file" : "Templates/nf-params-template.vtl"
179           },
180           "nf-params-mapping" : {
181             "type" : "artifact-mapping-resource",
182             "file" : "Templates/nf-params-mapping.json"
183           }
184         }
185       }
186     }
187   }
188 }