3 "id":"65f5c0d6.9c4ce",
\r
5 "name":"saltstack-adaptor-1.0",
\r
6 "xml":"<method rpc='saltstack-adaptor-1.0-exec-multi-sls' mode='sync'>\n",
\r
11 "z":"6df02477.0463cc",
\r
19 "id":"bf71bd6e.1be5b",
\r
20 "type":"service-logic",
\r
21 "name":"APPC 2.0.1",
\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
29 "z":"6df02477.0463cc",
\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
44 "z":"6df02477.0463cc",
\r
50 "id":"c332cb01.51a3e8",
\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 '*' test.ping --out=json --static'/>\n <parameter name='SlsExec' value='false'/>\n <parameter name='Timeout' value='`$Timeout`'/>\n",
\r
58 "z":"6df02477.0463cc",
\r
67 "id":"16dfbd4f.b6da73",
\r
68 "type":"switchNode",
\r
70 "xml":"<switch test=\"`$org.onap.appc.adaptor.saltstack.result.code`\">\n",
\r
75 "z":"6df02477.0463cc",
\r
84 "id":"24d22f52.ef59a",
\r
87 "xml":"<outcome value='Other'>\n",
\r
92 "z":"6df02477.0463cc",
\r
100 "id":"5b387684.e51be8",
\r
103 "xml":"<outcome value='failure'>\n",
\r
108 "z":"6df02477.0463cc",
\r
116 "id":"4bb6b32e.adfc2c",
\r
119 "xml":"<outcome value='Other'>\n",
\r
124 "z":"6df02477.0463cc",
\r
132 "id":"ac765880.a6c548",
\r
135 "xml":"<outcome value='200'>\n",
\r
140 "z":"6df02477.0463cc",
\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
155 "z":"6df02477.0463cc",
\r
161 "id":"11a891ad.55bc1e",
\r
167 "z":"6df02477.0463cc",
\r
175 "id":"a56383b.496c48",
\r
177 "name":"SaltStack Adaptor DG",
\r
182 "z":"6df02477.0463cc",
\r
188 "id":"cfda30b5.5e166",
\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
195 "z":"6df02477.0463cc",
\r
201 "id":"a8efb922.f23ce8",
\r
204 "xml":"<outcome value='Other'>\n",
\r
209 "z":"6df02477.0463cc",
\r
217 "id":"df0c0907.d17838",
\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 'minion1' pkg.install vim --out=json --static'/>\n <parameter name='SlsExec' value='false'/>\n <parameter name='Timeout' value='`$Timeout`'/>\n",
\r
225 "z":"6df02477.0463cc",
\r
234 "id":"1e5bbe2e.9cbb82",
\r
237 "xml":"<outcome value='failure'>\n",
\r
242 "z":"6df02477.0463cc",
\r
250 "id":"3ff32215.20cd0e",
\r
251 "type":"switchNode",
\r
253 "xml":"<switch test=\"`$org.onap.appc.adaptor.saltstack.result.code`\">\n",
\r
258 "z":"6df02477.0463cc",
\r
267 "id":"8e2c712b.784b4",
\r
270 "xml":"<outcome value='Other'>\n",
\r
275 "z":"6df02477.0463cc",
\r
283 "id":"3d74cfe5.d41f5",
\r
286 "xml":"<outcome value='200'>\n",
\r
291 "z":"6df02477.0463cc",
\r
299 "id":"2dda30fc.8747",
\r
300 "type":"switchNode",
\r
302 "xml":"<switch test=\"`$test1.minion1`\">\n",
\r
307 "z":"6df02477.0463cc",
\r
316 "id":"7f28f521.cf47cc",
\r
319 "xml":"<outcome value='true'>\n",
\r
324 "z":"6df02477.0463cc",
\r
332 "id":"e0133af5.2ca028",
\r
335 "xml":"<outcome value='Other'>\n",
\r
340 "z":"6df02477.0463cc",
\r
348 "id":"8313564b.004798",
\r
349 "type":"switchNode",
\r
351 "xml":"<switch test=\"`$test2.minion1.retcode`\">\n",
\r
356 "z":"6df02477.0463cc",
\r
365 "id":"13d18d2d.71fbf3",
\r
368 "xml":"<outcome value='Other'>\n",
\r
373 "z":"6df02477.0463cc",
\r
381 "id":"2e940add.522a36",
\r
384 "xml":"<outcome value='0'>\n",
\r
389 "z":"6df02477.0463cc",
\r
397 "id":"6d6678d2.6a9bd8",
\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
404 "z":"6df02477.0463cc",
\r