summaryrefslogtreecommitdiffstats
path: root/adaptors/saltstack-adaptor/saltstack-directed-graphs-sample/reqExecCommand/APPC_saltstack-adaptor-1.0-exec-single-SLSComm.json
blob: 31ae33fe5205f281cc26fd9946c6aa166af1e290 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
[
	{
		"id": "aeef7d24.424a2",
		"type": "method",
		"name": "saltstack-adaptor-1.0",
		"xml": "<method rpc='saltstack-adaptor-1.0-exec-single-SLSComm' mode='sync'>\n",
		"comments": "",
		"outputs": 1,
		"x": 360,
		"y": 7086.2001953125,
		"z": "c817b245.e1acf",
		"wires": [
			[
				"df4d8cf4.f519a"
			]
		]
	},
	{
		"id": "8b651be6.3f86b8",
		"type": "service-logic",
		"name": "APPC 2.0.1",
		"module": "APPC",
		"version": "2.0.1",
		"comments": "",
		"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'>",
		"outputs": 1,
		"x": 151,
		"y": 7164.2001953125,
		"z": "c817b245.e1acf",
		"wires": [
			[
				"aeef7d24.424a2"
			]
		]
	},
	{
		"id": "2e42f618.62c16a",
		"type": "returnFailure",
		"name": "return failure",
		"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",
		"comments": "",
		"x": 898,
		"y": 7301.2001953125,
		"z": "c817b245.e1acf",
		"wires": []
	},
	{
		"id": "df4d8cf4.f519a",
		"type": "execute",
		"name": "execute",
		"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",
		"comments": "",
		"outputs": 1,
		"x": 569,
		"y": 7088.2001953125,
		"z": "c817b245.e1acf",
		"wires": [
			[
				"93ba15e3.3308a8",
				"f8c4d551.a732f8"
			]
		]
	},
	{
		"id": "a16856a1.2d4188",
		"type": "switchNode",
		"name": "switch",
		"xml": "<switch test=\"`$org.onap.appc.adaptor.saltstack.result.code`\">\n",
		"comments": "",
		"outputs": 1,
		"x": 356,
		"y": 7246.2001953125,
		"z": "c817b245.e1acf",
		"wires": [
			[
				"c3b1137b.663b1",
				"a3023991.569708"
			]
		]
	},
	{
		"id": "c3b1137b.663b1",
		"type": "other",
		"name": "other",
		"xml": "<outcome value='Other'>\n",
		"comments": "",
		"outputs": 1,
		"x": 542,
		"y": 7304.2001953125,
		"z": "c817b245.e1acf",
		"wires": [
			[
				"2e42f618.62c16a"
			]
		]
	},
	{
		"id": "93ba15e3.3308a8",
		"type": "failure",
		"name": "failure",
		"xml": "<outcome value='failure'>\n",
		"comments": "",
		"outputs": 1,
		"x": 819,
		"y": 7085.2001953125,
		"z": "c817b245.e1acf",
		"wires": [
			[
				"2e42f618.62c16a"
			]
		]
	},
	{
		"id": "f8c4d551.a732f8",
		"type": "other",
		"name": "other",
		"xml": "<outcome value='Other'>\n",
		"comments": "",
		"outputs": 1,
		"x": 166,
		"y": 7253.2001953125,
		"z": "c817b245.e1acf",
		"wires": [
			[
				"a16856a1.2d4188"
			]
		]
	},
	{
		"id": "a3023991.569708",
		"type": "success",
		"name": "success",
		"xml": "<outcome value='200'>\n",
		"comments": "",
		"outputs": 1,
		"x": 545,
		"y": 7246.2001953125,
		"z": "c817b245.e1acf",
		"wires": [
			[
				"ba97f3c2.e7cda"
			]
		]
	},
	{
		"id": "ba97f3c2.e7cda",
		"type": "returnSuccess",
		"name": "return success",
		"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",
		"comments": "",
		"x": 727,
		"y": 7247.2001953125,
		"z": "c817b245.e1acf",
		"wires": []
	},
	{
		"id": "885dab24.087d78",
		"type": "dgstart",
		"name": "DGSTART",
		"outputs": 1,
		"x": 129,
		"y": 7064.2001953125,
		"z": "c817b245.e1acf",
		"wires": [
			[
				"8b651be6.3f86b8"
			]
		]
	},
	{
		"id": "3da5c21f.a161ae",
		"type": "comment",
		"name": "SaltStack Adaptor DG",
		"info": "",
		"comments": "",
		"x": 507,
		"y": 6951.2001953125,
		"z": "c817b245.e1acf",
		"wires": []
	},
	{
		"id": "a248d62f.bf82e8",
		"type": "comment",
		"name": "request-method = reqExecCommand, req-action = \"execute a single SLS command\"",
		"info": "Here we just ping to all the minions, and we dont even check if the minions are active. ",
		"comments": "",
		"x": 518,
		"y": 7036.2001953125,
		"z": "c817b245.e1acf",
		"wires": []
	},
	{
		"id": "8b672f0c.3688d",
		"type": "comment",
		"name": "Assumptions for this DG (example-server)",
		"info": "Here we assume, the saltstack server is the example-vagrant based server. Where, the master saltstact controlls minion1 and minion2. ",
		"comments": "",
		"x": 510,
		"y": 6992.2001953125,
		"z": "c817b245.e1acf",
		"wires": []
	}
]