3 "id": "65f5c0d6.9c4ce",
5 "name": "saltstack-adapter-1.0",
6 "xml": "<method rpc='saltstack-adapter-1.0-exec-multi-sls' mode='sync'>\n",
11 "z": "6df02477.0463cc",
19 "id": "bf71bd6e.1be5b",
20 "type": "service-logic",
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'>",
29 "z": "6df02477.0463cc",
37 "id": "40ce8a6.5f7d174",
38 "type": "returnFailure",
39 "name": "return failure",
40 "xml": "<return status='failure'>\n<parameter name='error-code' value='200' />\n<parameter name='error-message' value='`$org.openecomp.appc.adapter.ansible.message`' />\n<parameter name='output.status.results' value='`$org.openecomp.appc.adapter.ansible.results`' />\n",
44 "z": "6df02477.0463cc",
48 "id": "c332cb01.51a3e8",
51 "xml": "<execute plugin='org.openecomp.appc.adapter.ansible.SaltstackAdapter' 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",
56 "z": "6df02477.0463cc",
65 "id": "16dfbd4f.b6da73",
68 "xml": "<switch test=\"`$org.onap.appc.adapter.saltstack.result.code`\">\n",
73 "z": "6df02477.0463cc",
82 "id": "24d22f52.ef59a",
85 "xml": "<outcome value='Other'>\n",
90 "z": "6df02477.0463cc",
98 "id": "5b387684.e51be8",
101 "xml": "<outcome value='failure'>\n",
106 "z": "6df02477.0463cc",
114 "id": "4bb6b32e.adfc2c",
117 "xml": "<outcome value='Other'>\n",
122 "z": "6df02477.0463cc",
130 "id": "ac765880.a6c548",
133 "xml": "<outcome value='200'>\n",
138 "z": "6df02477.0463cc",
146 "id": "e45accfe.91615",
147 "type": "returnSuccess",
148 "name": "return success",
149 "xml": "<return status='success'>\n<parameter name='output.status.code' value='`$org.openecomp.appc.adapter.ansible.result.code`' />\n<parameter name='output.status.message' value='`$org.openecomp.appc.adapter.ansible.message`'/>\n<parameter name='output.status.results' value = '`$org.openecomp.appc.adapter.ansible.results`'/>\n",
153 "z": "6df02477.0463cc",
157 "id": "11a891ad.55bc1e",
163 "z": "6df02477.0463cc",
171 "id": "a56383b.496c48",
173 "name": "SaltStack Adaptor DG",
178 "z": "6df02477.0463cc",
182 "id": "cfda30b5.5e166",
184 "name": "request-method = reqExecCommand, req-action = \"execute multiple SLS commands\"",
185 "info": "Here we basically test if minion1 is active by pinging to it, then install vim package to it. \n",
189 "z": "6df02477.0463cc",
193 "id": "a8efb922.f23ce8",
196 "xml": "<outcome value='Other'>\n",
201 "z": "6df02477.0463cc",
209 "id": "df0c0907.d17838",
212 "xml": "<execute plugin='org.openecomp.appc.adapter.ansible.SaltstackAdapter' 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",
217 "z": "6df02477.0463cc",
226 "id": "1e5bbe2e.9cbb82",
229 "xml": "<outcome value='failure'>\n",
234 "z": "6df02477.0463cc",
242 "id": "3ff32215.20cd0e",
243 "type": "switchNode",
245 "xml": "<switch test=\"`$org.onap.appc.adapter.saltstack.result.code`\">\n",
250 "z": "6df02477.0463cc",
259 "id": "8e2c712b.784b4",
262 "xml": "<outcome value='Other'>\n",
267 "z": "6df02477.0463cc",
275 "id": "3d74cfe5.d41f5",
278 "xml": "<outcome value='200'>\n",
283 "z": "6df02477.0463cc",
291 "id": "2dda30fc.8747",
292 "type": "switchNode",
294 "xml": "<switch test=\"`$test1.minion1`\">\n",
299 "z": "6df02477.0463cc",
308 "id": "7f28f521.cf47cc",
311 "xml": "<outcome value='true'>\n",
316 "z": "6df02477.0463cc",
324 "id": "e0133af5.2ca028",
327 "xml": "<outcome value='Other'>\n",
332 "z": "6df02477.0463cc",
340 "id": "8313564b.004798",
341 "type": "switchNode",
343 "xml": "<switch test=\"`$test2.minion1.retcode`\">\n",
348 "z": "6df02477.0463cc",
357 "id": "13d18d2d.71fbf3",
360 "xml": "<outcome value='Other'>\n",
365 "z": "6df02477.0463cc",
373 "id": "2e940add.522a36",
376 "xml": "<outcome value='0'>\n",
381 "z": "6df02477.0463cc",
389 "id": "6d6678d2.6a9bd8",
391 "name": "Assumptions for this DG (example-server)",
392 "info": "Here we assume, the saltstack server is the example-vagrant based server. Where, the master saltstact controlls minion1 and minion2. ",
396 "z": "6df02477.0463cc",