a8535d00e7b5d6c8c52e6f3b59b064422ea8aca8
[ccsdk/sli/adaptors.git] / saltstack-adapter / saltstack-directed-graphs-sample / reqExecCommand / APPC_saltstack-adapter-1.0-exec-single-SLSComm.json
1 [
2   {
3     "id": "bd0f1105.ff214",
4     "type": "method",
5     "name": "saltstack-adapter-1.0",
6     "xml": "<method rpc='saltstack-adapter-1.0-exec-single-SLSComm' mode='sync'>\n",
7     "comments": "",
8     "outputs": 1,
9     "x": 526,
10     "y": 238,
11     "z": "c053ae12.4067b",
12     "wires": [
13       [
14         "f4e59dd0.ee45f"
15       ]
16     ]
17   },
18   {
19     "id": "26f2a2b8.90f58e",
20     "type": "service-logic",
21     "name": "APPC 2.0.1",
22     "module": "APPC",
23     "version": "2.0.1",
24     "comments": "",
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'>",
26     "outputs": 1,
27     "x": 317,
28     "y": 316,
29     "z": "c053ae12.4067b",
30     "wires": [
31       [
32         "bd0f1105.ff214"
33       ]
34     ]
35   },
36   {
37     "id": "55a7736.2789e8c",
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",
41     "comments": "",
42     "x": 1064,
43     "y": 453,
44     "z": "c053ae12.4067b",
45     "wires": []
46   },
47   {
48     "id": "f4e59dd0.ee45f",
49     "type": "execute",
50     "name": "execute",
51     "xml": "<execute plugin='org.openecomp.appc.adapter.ansible.AnsibleAdapter' 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='execTimeout' value='`$Timeout`'/>\n",
52     "comments": "",
53     "outputs": 1,
54     "x": 735,
55     "y": 240,
56     "z": "c053ae12.4067b",
57     "wires": [
58       [
59         "93fca622.05ad58",
60         "7ce4a659.44c828"
61       ]
62     ]
63   },
64   {
65     "id": "2ceb37d9.a8ba18",
66     "type": "switchNode",
67     "name": "switch",
68     "xml": "<switch test=\"`$org.onap.appc.adapter.saltstack.result.code`\">\n",
69     "comments": "",
70     "outputs": 1,
71     "x": 522,
72     "y": 398,
73     "z": "c053ae12.4067b",
74     "wires": [
75       [
76         "cd89356c.279678",
77         "781026e2.01d498"
78       ]
79     ]
80   },
81   {
82     "id": "cd89356c.279678",
83     "type": "other",
84     "name": "other",
85     "xml": "<outcome value='Other'>\n",
86     "comments": "",
87     "outputs": 1,
88     "x": 708,
89     "y": 456,
90     "z": "c053ae12.4067b",
91     "wires": [
92       [
93         "55a7736.2789e8c"
94       ]
95     ]
96   },
97   {
98     "id": "93fca622.05ad58",
99     "type": "failure",
100     "name": "failure",
101     "xml": "<outcome value='failure'>\n",
102     "comments": "",
103     "outputs": 1,
104     "x": 985,
105     "y": 237,
106     "z": "c053ae12.4067b",
107     "wires": [
108       [
109         "55a7736.2789e8c"
110       ]
111     ]
112   },
113   {
114     "id": "7ce4a659.44c828",
115     "type": "other",
116     "name": "other",
117     "xml": "<outcome value='Other'>\n",
118     "comments": "",
119     "outputs": 1,
120     "x": 332,
121     "y": 405,
122     "z": "c053ae12.4067b",
123     "wires": [
124       [
125         "2ceb37d9.a8ba18"
126       ]
127     ]
128   },
129   {
130     "id": "781026e2.01d498",
131     "type": "success",
132     "name": "success",
133     "xml": "<outcome value='200'>\n",
134     "comments": "",
135     "outputs": 1,
136     "x": 711,
137     "y": 398,
138     "z": "c053ae12.4067b",
139     "wires": [
140       [
141         "ce510062.8dcc7"
142       ]
143     ]
144   },
145   {
146     "id": "ce510062.8dcc7",
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",
150     "comments": "",
151     "x": 893,
152     "y": 399,
153     "z": "c053ae12.4067b",
154     "wires": []
155   },
156   {
157     "id": "593bd7fb.675368",
158     "type": "dgstart",
159     "name": "DGSTART",
160     "outputs": 1,
161     "x": 295,
162     "y": 216,
163     "z": "c053ae12.4067b",
164     "wires": [
165       [
166         "26f2a2b8.90f58e"
167       ]
168     ]
169   },
170   {
171     "id": "901c8408.5fecb8",
172     "type": "comment",
173     "name": "SaltStack Adaptor DG",
174     "info": "",
175     "comments": "",
176     "x": 673,
177     "y": 103,
178     "z": "c053ae12.4067b",
179     "wires": []
180   },
181   {
182     "id": "cc449713.a1be88",
183     "type": "comment",
184     "name": "request-method = reqExecCommand, req-action = \"execute a single SLS command\"",
185     "info": "Here we just ping to all the minions, and we dont even check if the minions are active. ",
186     "comments": "",
187     "x": 684,
188     "y": 188,
189     "z": "c053ae12.4067b",
190     "wires": []
191   },
192   {
193     "id": "c07fa80e.7f3ac8",
194     "type": "comment",
195     "name": "Assumptions for this DG (example-server)",
196     "info": "Here we assume, the saltstack server is the example-vagrant based server. Where, the master saltstact controlls minion1 and minion2. ",
197     "comments": "",
198     "x": 676,
199     "y": 144,
200     "z": "c053ae12.4067b",
201     "wires": []
202   }
203 ]