vFW Upgrade Workflow
[demo.git] / heat / vFW_CNF_CDS / templates / cba / Definitions / vFW_CDS.json
1 {
2   "tosca_definitions_version" : "controller_blueprint_1_0_0",
3   "metadata" : {
4     "template_author" : "Abdelmuhaimen Seaudi",
5     "author-email" : "abdelmuhaimen.seaudi@orange.com",
6     "user-groups" : "ADMIN, OPERATION",
7     "template_name" : "vFW_CDS",
8     "template_version" : "1.0.0",
9     "template_tags" : "vFW-CDS, vfw-CDS, SCALE-OUT"
10   },
11   "imports" : [ {
12     "file" : "Definitions/data_types.json"
13   }, {
14     "file" : "Definitions/relationship_types.json"
15   }, {
16     "file" : "Definitions/artifact_types.json"
17   }, {
18     "file" : "Definitions/node_types.json"
19   }, {
20     "file" : "Definitions/policy_types.json"
21   } ],
22   "dsl_definitions" : {
23     "ipam-1" : {
24       "type" : "token-auth",
25       "url" : "http://netbox-nginx:8080",
26       "token" : "Token 0123456789abcdef0123456789abcdef01234567"
27     },
28     "config-deploy-properties" : {
29       "resolution-key" : {
30         "get_input" : "resolution-key"
31       }
32     },
33     "dynamic-db-source" : {
34       "type" : "maria-db",
35       "url" : "jdbc:mysql://mariadb-galera:3306/sdnctl",
36       "username" : "root",
37       "password" : "secretpassword"
38     }
39   },
40   "topology_template" : {
41     "workflows" : {
42       "resource-assignment" : {
43         "steps" : {
44           "resource-assignment" : {
45             "description" : "Resource Assign Workflow",
46             "target" : "resource-assignment"
47           }
48         },
49         "inputs" : {
50           "template-prefix" : {
51             "required" : true,
52             "type" : "list",
53             "entry_schema" : {
54               "type" : "string"
55             }
56           },
57           "resource-assignment-properties" : {
58             "description" : "Dynamic PropertyDefinition for workflow(resource-assignment).",
59             "required" : true,
60             "type" : "dt-resource-assignment-properties"
61           }
62         },
63         "outputs" : {
64           "meshed-template" : {
65             "type" : "json",
66             "value" : {
67               "get_attribute" : [ "resource-assignment", "assignment-params" ]
68             }
69           }
70         }
71       },
72       "config-deploy" : {
73         "steps" : {
74           "config-deploy" : {
75             "description" : "Config Deploy Workflow",
76             "target" : "config-deploy-process"
77           }
78         },
79         "inputs" : {
80           "config-deploy-properties" : {
81             "description" : "Dynamic PropertyDefinition for workflow(config-deploy).",
82             "required" : true,
83             "type" : "dt-config-deploy-properties"
84           }
85         },
86         "outputs" : {
87           "dry-run" : {
88             "type" : "json",
89             "value" : {
90               "get_attribute" : [ "config-deploy-process", "assignment-params" ]
91             }
92           }
93         }
94       }
95     },
96     "node_templates" : {
97       "resource-assignment" : {
98         "type" : "component-resource-resolution",
99         "interfaces" : {
100           "ResourceResolutionComponent" : {
101             "operations" : {
102               "process" : {
103                 "inputs" : {
104                   "artifact-prefix-names" : {
105                     "get_input" : "template-prefix"
106                   }
107                 }
108               }
109             }
110           }
111         },
112         "artifacts" : {
113           "base_template-template" : {
114             "type" : "artifact-template-velocity",
115             "file" : "Templates/base_template-template.vtl"
116           },
117           "base_template-mapping" : {
118             "type" : "artifact-mapping-resource",
119             "file" : "Templates/base_template-mapping.json"
120           },
121           "vpkg-template" : {
122             "type" : "artifact-template-velocity",
123             "file" : "Templates/vpkg-template.vtl"
124           },
125           "vpkg-mapping" : {
126             "type" : "artifact-mapping-resource",
127             "file" : "Templates/vpkg-mapping.json"
128           },
129           "vfw-template" : {
130             "type" : "artifact-template-velocity",
131             "file" : "Templates/vfw-template.vtl"
132           },
133           "vfw-mapping" : {
134             "type" : "artifact-mapping-resource",
135             "file" : "Templates/vfw-mapping.json"
136           },
137           "vnf-template" : {
138             "type" : "artifact-template-velocity",
139             "file" : "Templates/vnf-template.vtl"
140           },
141           "vnf-mapping" : {
142             "type" : "artifact-mapping-resource",
143             "file" : "Templates/vnf-mapping.json"
144           },
145           "vsn-template" : {
146             "type" : "artifact-template-velocity",
147             "file" : "Templates/vsn-template.vtl"
148           },
149           "vsn-mapping" : {
150             "type" : "artifact-mapping-resource",
151             "file" : "Templates/vsn-mapping.json"
152           }
153         }
154       },
155       "config-deploy-process" : {
156         "type" : "component-resource-resolution",
157         "interfaces" : {
158           "ResourceResolutionComponent" : {
159             "operations" : {
160               "process" : {
161                 "inputs" : {
162                   "artifact-prefix-names" : [ "nf-params" ]
163                 }
164               }
165             }
166           }
167         },
168         "artifacts" : {
169           "nf-params-template" : {
170             "type" : "artifact-template-velocity",
171             "file" : "Templates/nf-params-template.vtl"
172           },
173           "nf-params-mapping" : {
174             "type" : "artifact-mapping-resource",
175             "file" : "Templates/nf-params-mapping.json"
176           }
177         }
178       }
179     }
180   }
181 }