9950377874449dfab142a82c4fb01123cc25fa5d
[ccsdk/sli.git] /
1 [\r
2     {\r
3       "id":"bd0f1105.ff214",\r
4       "type":"method",\r
5       "name":"saltstack-adaptor-1.0",\r
6       "xml":"<method rpc='saltstack-adaptor-1.0-exec-single-SLSComm' mode='sync'>\n",\r
7       "comments":"",\r
8       "outputs":1,\r
9       "x":526,\r
10       "y":238,\r
11       "z":"c053ae12.4067b",\r
12       "wires":[\r
13         [\r
14           "f4e59dd0.ee45f"\r
15         ]\r
16       ]\r
17     },\r
18     {\r
19       "id":"26f2a2b8.90f58e",\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":317,\r
28       "y":316,\r
29       "z":"c053ae12.4067b",\r
30       "wires":[\r
31         [\r
32           "bd0f1105.ff214"\r
33         ]\r
34       ]\r
35     },\r
36     {\r
37       "id":"55a7736.2789e8c",\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":1064,\r
43       "y":453,\r
44       "z":"c053ae12.4067b",\r
45       "wires":[\r
46 \r
47       ]\r
48     },\r
49     {\r
50       "id":"f4e59dd0.ee45f",\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":735,\r
57       "y":240,\r
58       "z":"c053ae12.4067b",\r
59       "wires":[\r
60         [\r
61           "93fca622.05ad58",\r
62           "7ce4a659.44c828"\r
63         ]\r
64       ]\r
65     },\r
66     {\r
67       "id":"2ceb37d9.a8ba18",\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":522,\r
74       "y":398,\r
75       "z":"c053ae12.4067b",\r
76       "wires":[\r
77         [\r
78           "cd89356c.279678",\r
79           "781026e2.01d498"\r
80         ]\r
81       ]\r
82     },\r
83     {\r
84       "id":"cd89356c.279678",\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":708,\r
91       "y":456,\r
92       "z":"c053ae12.4067b",\r
93       "wires":[\r
94         [\r
95           "55a7736.2789e8c"\r
96         ]\r
97       ]\r
98     },\r
99     {\r
100       "id":"93fca622.05ad58",\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":985,\r
107       "y":237,\r
108       "z":"c053ae12.4067b",\r
109       "wires":[\r
110         [\r
111           "55a7736.2789e8c"\r
112         ]\r
113       ]\r
114     },\r
115     {\r
116       "id":"7ce4a659.44c828",\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":332,\r
123       "y":405,\r
124       "z":"c053ae12.4067b",\r
125       "wires":[\r
126         [\r
127           "2ceb37d9.a8ba18"\r
128         ]\r
129       ]\r
130     },\r
131     {\r
132       "id":"781026e2.01d498",\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":711,\r
139       "y":398,\r
140       "z":"c053ae12.4067b",\r
141       "wires":[\r
142         [\r
143           "ce510062.8dcc7"\r
144         ]\r
145       ]\r
146     },\r
147     {\r
148       "id":"ce510062.8dcc7",\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":893,\r
154       "y":399,\r
155       "z":"c053ae12.4067b",\r
156       "wires":[\r
157 \r
158       ]\r
159     },\r
160     {\r
161       "id":"593bd7fb.675368",\r
162       "type":"dgstart",\r
163       "name":"DGSTART",\r
164       "outputs":1,\r
165       "x":295,\r
166       "y":216,\r
167       "z":"c053ae12.4067b",\r
168       "wires":[\r
169         [\r
170           "26f2a2b8.90f58e"\r
171         ]\r
172       ]\r
173     },\r
174     {\r
175       "id":"901c8408.5fecb8",\r
176       "type":"comment",\r
177       "name":"SaltStack Adaptor DG",\r
178       "info":"",\r
179       "comments":"",\r
180       "x":673,\r
181       "y":103,\r
182       "z":"c053ae12.4067b",\r
183       "wires":[\r
184 \r
185       ]\r
186     },\r
187     {\r
188       "id":"cc449713.a1be88",\r
189       "type":"comment",\r
190       "name":"request-method = reqExecCommand, req-action = \"execute a single SLS command\"",\r
191       "info":"Here we just ping to all the minions, and we dont even check if the minions are active. ",\r
192       "comments":"",\r
193       "x":684,\r
194       "y":188,\r
195       "z":"c053ae12.4067b",\r
196       "wires":[\r
197 \r
198       ]\r
199     },\r
200     {\r
201       "id":"c07fa80e.7f3ac8",\r
202       "type":"comment",\r
203       "name":"Assumptions for this DG (example-server)",\r
204       "info":"Here we assume, the saltstack server is the example-vagrant based server. Where, the master saltstact controlls minion1 and minion2. ",\r
205       "comments":"",\r
206       "x":676,\r
207       "y":144,\r
208       "z":"c053ae12.4067b",\r
209       "wires":[\r
210 \r
211       ]\r
212     }\r
213 ]