274adee519d6918c992c4a9c8b74be7bb6f281cd
[ccsdk/sli.git] /
1 [\r
2     {\r
3       "id":"65f5c0d6.9c4ce",\r
4       "type":"method",\r
5       "name":"saltstack-adaptor-1.0",\r
6       "xml":"<method rpc='saltstack-adaptor-1.0-exec-multi-sls' mode='sync'>\n",\r
7       "comments":"",\r
8       "outputs":1,\r
9       "x":615,\r
10       "y":273,\r
11       "z":"6df02477.0463cc",\r
12       "wires":[\r
13         [\r
14           "c332cb01.51a3e8"\r
15         ]\r
16       ]\r
17     },\r
18     {\r
19       "id":"bf71bd6e.1be5b",\r
20       "type":"service-logic",\r
21       "name":"APPC 2.0.1",\r
22       "module":"APPC",\r
23       "version":"2.0.1",\r
24       "comments":"",\r
25       "xml":"<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='2.0.1'>",\r
26       "outputs":1,\r
27       "x":406,\r
28       "y":351,\r
29       "z":"6df02477.0463cc",\r
30       "wires":[\r
31         [\r
32           "65f5c0d6.9c4ce"\r
33         ]\r
34       ]\r
35     },\r
36     {\r
37       "id":"40ce8a6.5f7d174",\r
38       "type":"returnFailure",\r
39       "name":"return failure",\r
40       "xml":"<return status='failure'>\n<parameter name='error-code' value='200' />\n<parameter name='error-message' value='`$org.openecomp.appc.adaptor.saltstack.message`' />\n<parameter name='output.status.results' value='`$org.openecomp.appc.adaptor.saltstack.results`' />\n",\r
41       "comments":"",\r
42       "x":1325,\r
43       "y":455,\r
44       "z":"6df02477.0463cc",\r
45       "wires":[\r
46 \r
47       ]\r
48     },\r
49     {\r
50       "id":"c332cb01.51a3e8",\r
51       "type":"execute",\r
52       "name":"execute",\r
53       "xml":"<execute plugin='org.openecomp.appc.adaptor.saltstack.SaltstackAdaptor' method='reqExecCommand' >\n                        <parameter name='HostName' value='`$AgentUrl`'/>\n                        <parameter name='Port' value='`$Port`'/>\n                        <parameter name='User' value='`$User`'/>\n                        <parameter name='Password' value='`$Password`'/>\n                        <parameter name='Id' value='test1'/>\n                        <parameter name='Cmd' value='salt &apos;*&apos; test.ping --out=json --static'/>\n                        <parameter name='SlsExec' value='false'/>\n                        <parameter name='Timeout' value='`$Timeout`'/>\n",\r
54       "comments":"",\r
55       "outputs":1,\r
56       "x":824,\r
57       "y":275,\r
58       "z":"6df02477.0463cc",\r
59       "wires":[\r
60         [\r
61           "5b387684.e51be8",\r
62           "4bb6b32e.adfc2c"\r
63         ]\r
64       ]\r
65     },\r
66     {\r
67       "id":"16dfbd4f.b6da73",\r
68       "type":"switchNode",\r
69       "name":"switch",\r
70       "xml":"<switch test=\"`$org.onap.appc.adaptor.saltstack.result.code`\">\n",\r
71       "comments":"",\r
72       "outputs":1,\r
73       "x":607,\r
74       "y":435,\r
75       "z":"6df02477.0463cc",\r
76       "wires":[\r
77         [\r
78           "24d22f52.ef59a",\r
79           "ac765880.a6c548"\r
80         ]\r
81       ]\r
82     },\r
83     {\r
84       "id":"24d22f52.ef59a",\r
85       "type":"other",\r
86       "name":"other",\r
87       "xml":"<outcome value='Other'>\n",\r
88       "comments":"",\r
89       "outputs":1,\r
90       "x":798,\r
91       "y":433,\r
92       "z":"6df02477.0463cc",\r
93       "wires":[\r
94         [\r
95           "40ce8a6.5f7d174"\r
96         ]\r
97       ]\r
98     },\r
99     {\r
100       "id":"5b387684.e51be8",\r
101       "type":"failure",\r
102       "name":"failure",\r
103       "xml":"<outcome value='failure'>\n",\r
104       "comments":"",\r
105       "outputs":1,\r
106       "x":1074,\r
107       "y":272,\r
108       "z":"6df02477.0463cc",\r
109       "wires":[\r
110         [\r
111           "40ce8a6.5f7d174"\r
112         ]\r
113       ]\r
114     },\r
115     {\r
116       "id":"4bb6b32e.adfc2c",\r
117       "type":"other",\r
118       "name":"other",\r
119       "xml":"<outcome value='Other'>\n",\r
120       "comments":"",\r
121       "outputs":1,\r
122       "x":429,\r
123       "y":433,\r
124       "z":"6df02477.0463cc",\r
125       "wires":[\r
126         [\r
127           "16dfbd4f.b6da73"\r
128         ]\r
129       ]\r
130     },\r
131     {\r
132       "id":"ac765880.a6c548",\r
133       "type":"success",\r
134       "name":"success",\r
135       "xml":"<outcome value='200'>\n",\r
136       "comments":"",\r
137       "outputs":1,\r
138       "x":414,\r
139       "y":549,\r
140       "z":"6df02477.0463cc",\r
141       "wires":[\r
142         [\r
143           "2dda30fc.8747"\r
144         ]\r
145       ]\r
146     },\r
147     {\r
148       "id":"e45accfe.91615",\r
149       "type":"returnSuccess",\r
150       "name":"return success",\r
151       "xml":"<return status='success'>\n<parameter name='output.status.code' value='`$org.openecomp.appc.adaptor.saltstack.result.code`' />\n<parameter name='output.status.message' value='`$org.openecomp.appc.adaptor.saltstack.message`'/>\n<parameter name='output.status.results' value = '`$org.openecomp.appc.adaptor.saltstack.results`'/>\n",\r
152       "comments":"",\r
153       "x":1345,\r
154       "y":757,\r
155       "z":"6df02477.0463cc",\r
156       "wires":[\r
157 \r
158       ]\r
159     },\r
160     {\r
161       "id":"11a891ad.55bc1e",\r
162       "type":"dgstart",\r
163       "name":"DGSTART",\r
164       "outputs":1,\r
165       "x":384,\r
166       "y":251,\r
167       "z":"6df02477.0463cc",\r
168       "wires":[\r
169         [\r
170           "bf71bd6e.1be5b"\r
171         ]\r
172       ]\r
173     },\r
174     {\r
175       "id":"a56383b.496c48",\r
176       "type":"comment",\r
177       "name":"SaltStack Adaptor DG",\r
178       "info":"",\r
179       "comments":"",\r
180       "x":756,\r
181       "y":134,\r
182       "z":"6df02477.0463cc",\r
183       "wires":[\r
184 \r
185       ]\r
186     },\r
187     {\r
188       "id":"cfda30b5.5e166",\r
189       "type":"comment",\r
190       "name":"request-method = reqExecCommand, req-action = \"execute multiple SLS commands\"",\r
191       "info":"Here we basically test if minion1 is active by pinging to it, then install vim package to it. \n",\r
192       "comments":"",\r
193       "x":773,\r
194       "y":217,\r
195       "z":"6df02477.0463cc",\r
196       "wires":[\r
197 \r
198       ]\r
199     },\r
200     {\r
201       "id":"a8efb922.f23ce8",\r
202       "type":"other",\r
203       "name":"other",\r
204       "xml":"<outcome value='Other'>\n",\r
205       "comments":"",\r
206       "outputs":1,\r
207       "x":459,\r
208       "y":751,\r
209       "z":"6df02477.0463cc",\r
210       "wires":[\r
211         [\r
212           "3ff32215.20cd0e"\r
213         ]\r
214       ]\r
215     },\r
216     {\r
217       "id":"df0c0907.d17838",\r
218       "type":"execute",\r
219       "name":"execute",\r
220       "xml":"<execute plugin='org.openecomp.appc.adaptor.saltstack.SaltstackAdaptor' method='reqExecCommand' >\n                        <parameter name='HostName' value='`$AgentUrl`'/>\n                        <parameter name='Port' value='`$Port`'/>\n                        <parameter name='User' value='`$User`'/>\n                        <parameter name='Password' value='`$Password`'/>\n                        <parameter name='Id' value='test2'/>\n                        <parameter name='Cmd' value='salt &apos;minion1&apos; pkg.install vim --out=json --static'/>\n                        <parameter name='SlsExec' value='false'/>\n                        <parameter name='Timeout' value='`$Timeout`'/>\n",\r
221       "comments":"",\r
222       "outputs":1,\r
223       "x":836,\r
224       "y":638,\r
225       "z":"6df02477.0463cc",\r
226       "wires":[\r
227         [\r
228           "1e5bbe2e.9cbb82",\r
229           "a8efb922.f23ce8"\r
230         ]\r
231       ]\r
232     },\r
233     {\r
234       "id":"1e5bbe2e.9cbb82",\r
235       "type":"failure",\r
236       "name":"failure",\r
237       "xml":"<outcome value='failure'>\n",\r
238       "comments":"",\r
239       "outputs":1,\r
240       "x":1054,\r
241       "y":644,\r
242       "z":"6df02477.0463cc",\r
243       "wires":[\r
244         [\r
245           "40ce8a6.5f7d174"\r
246         ]\r
247       ]\r
248     },\r
249     {\r
250       "id":"3ff32215.20cd0e",\r
251       "type":"switchNode",\r
252       "name":"switch",\r
253       "xml":"<switch test=\"`$org.onap.appc.adaptor.saltstack.result.code`\">\n",\r
254       "comments":"",\r
255       "outputs":1,\r
256       "x":647,\r
257       "y":745,\r
258       "z":"6df02477.0463cc",\r
259       "wires":[\r
260         [\r
261           "8e2c712b.784b4",\r
262           "3d74cfe5.d41f5"\r
263         ]\r
264       ]\r
265     },\r
266     {\r
267       "id":"8e2c712b.784b4",\r
268       "type":"other",\r
269       "name":"other",\r
270       "xml":"<outcome value='Other'>\n",\r
271       "comments":"",\r
272       "outputs":1,\r
273       "x":830,\r
274       "y":823,\r
275       "z":"6df02477.0463cc",\r
276       "wires":[\r
277         [\r
278           "40ce8a6.5f7d174"\r
279         ]\r
280       ]\r
281     },\r
282     {\r
283       "id":"3d74cfe5.d41f5",\r
284       "type":"success",\r
285       "name":"success",\r
286       "xml":"<outcome value='200'>\n",\r
287       "comments":"",\r
288       "outputs":1,\r
289       "x":829,\r
290       "y":758,\r
291       "z":"6df02477.0463cc",\r
292       "wires":[\r
293         [\r
294           "8313564b.004798"\r
295         ]\r
296       ]\r
297     },\r
298     {\r
299       "id":"2dda30fc.8747",\r
300       "type":"switchNode",\r
301       "name":"switch",\r
302       "xml":"<switch test=\"`$test1.minion1`\">\n",\r
303       "comments":"",\r
304       "outputs":1,\r
305       "x":586,\r
306       "y":549,\r
307       "z":"6df02477.0463cc",\r
308       "wires":[\r
309         [\r
310           "e0133af5.2ca028",\r
311           "7f28f521.cf47cc"\r
312         ]\r
313       ]\r
314     },\r
315     {\r
316       "id":"7f28f521.cf47cc",\r
317       "type":"other",\r
318       "name":"outcome",\r
319       "xml":"<outcome value='true'>\n",\r
320       "comments":"",\r
321       "outputs":1,\r
322       "x":656,\r
323       "y":640,\r
324       "z":"6df02477.0463cc",\r
325       "wires":[\r
326         [\r
327           "df0c0907.d17838"\r
328         ]\r
329       ]\r
330     },\r
331     {\r
332       "id":"e0133af5.2ca028",\r
333       "type":"other",\r
334       "name":"other",\r
335       "xml":"<outcome value='Other'>\n",\r
336       "comments":"",\r
337       "outputs":1,\r
338       "x":780,\r
339       "y":549,\r
340       "z":"6df02477.0463cc",\r
341       "wires":[\r
342         [\r
343           "40ce8a6.5f7d174"\r
344         ]\r
345       ]\r
346     },\r
347     {\r
348       "id":"8313564b.004798",\r
349       "type":"switchNode",\r
350       "name":"switch",\r
351       "xml":"<switch test=\"`$test2.minion1.retcode`\">\n",\r
352       "comments":"",\r
353       "outputs":1,\r
354       "x":986,\r
355       "y":752,\r
356       "z":"6df02477.0463cc",\r
357       "wires":[\r
358         [\r
359           "13d18d2d.71fbf3",\r
360           "2e940add.522a36"\r
361         ]\r
362       ]\r
363     },\r
364     {\r
365       "id":"13d18d2d.71fbf3",\r
366       "type":"other",\r
367       "name":"other",\r
368       "xml":"<outcome value='Other'>\n",\r
369       "comments":"",\r
370       "outputs":1,\r
371       "x":1165,\r
372       "y":825,\r
373       "z":"6df02477.0463cc",\r
374       "wires":[\r
375         [\r
376           "40ce8a6.5f7d174"\r
377         ]\r
378       ]\r
379     },\r
380     {\r
381       "id":"2e940add.522a36",\r
382       "type":"success",\r
383       "name":"success",\r
384       "xml":"<outcome value='0'>\n",\r
385       "comments":"",\r
386       "outputs":1,\r
387       "x":1156,\r
388       "y":754,\r
389       "z":"6df02477.0463cc",\r
390       "wires":[\r
391         [\r
392           "e45accfe.91615"\r
393         ]\r
394       ]\r
395     },\r
396     {\r
397       "id":"6d6678d2.6a9bd8",\r
398       "type":"comment",\r
399       "name":"Assumptions for this DG (example-server)",\r
400       "info":"Here we assume, the saltstack server is the example-vagrant based server. Where, the master saltstact controlls minion1 and minion2. ",\r
401       "comments":"",\r
402       "x":756,\r
403       "y":173,\r
404       "z":"6df02477.0463cc",\r
405       "wires":[\r
406 \r
407       ]\r
408     }\r
409 ]