[\r
- {\r
- "id":"d0ad0305.352fc",\r
- "type":"method",\r
- "name":"saltstack-adaptor-1.0",\r
- "xml":"<method rpc='saltstack-adaptor-1.0-exec-SLSFile' mode='sync'>\n",\r
- "comments":"",\r
- "outputs":1,\r
- "x":552,\r
- "y":183,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
- [\r
- "65cc87e2.a95188"\r
- ]\r
- ]\r
- },\r
- {\r
- "id":"22aefec.e8c7902",\r
- "type":"service-logic",\r
- "name":"APPC 2.0.1",\r
- "module":"APPC",\r
- "version":"2.0.1",\r
- "comments":"",\r
- "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
- "outputs":1,\r
- "x":343,\r
- "y":261,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
- [\r
- "d0ad0305.352fc"\r
- ]\r
- ]\r
- },\r
- {\r
- "id":"31587001.4259e",\r
- "type":"returnFailure",\r
- "name":"return failure",\r
- "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
- "comments":"",\r
- "x":1262,\r
- "y":365,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
-\r
- ]\r
- },\r
- {\r
- "id":"65cc87e2.a95188",\r
- "type":"execute",\r
- "name":"execute",\r
- "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
- "comments":"",\r
- "outputs":1,\r
- "x":761,\r
- "y":185,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
- [\r
- "f9bf6ee7.cf954",\r
- "7b51c357.a852cc"\r
- ]\r
- ]\r
- },\r
- {\r
- "id":"42fa1258.aa570c",\r
- "type":"switchNode",\r
- "name":"switch",\r
- "xml":"<switch test=\"`$org.onap.appc.adaptor.saltstack.result.code`\">\n",\r
- "comments":"",\r
- "outputs":1,\r
- "x":544,\r
- "y":345,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
- [\r
- "a7cf236a.84c03",\r
- "c45d597b.20b4c8"\r
- ]\r
- ]\r
- },\r
- {\r
- "id":"a7cf236a.84c03",\r
- "type":"other",\r
- "name":"other",\r
- "xml":"<outcome value='Other'>\n",\r
- "comments":"",\r
- "outputs":1,\r
- "x":735,\r
- "y":343,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
- [\r
- "31587001.4259e"\r
- ]\r
- ]\r
- },\r
- {\r
- "id":"f9bf6ee7.cf954",\r
- "type":"failure",\r
- "name":"failure",\r
- "xml":"<outcome value='failure'>\n",\r
- "comments":"",\r
- "outputs":1,\r
- "x":1011,\r
- "y":182,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
- [\r
- "31587001.4259e"\r
- ]\r
- ]\r
- },\r
- {\r
- "id":"7b51c357.a852cc",\r
- "type":"other",\r
- "name":"other",\r
- "xml":"<outcome value='Other'>\n",\r
- "comments":"",\r
- "outputs":1,\r
- "x":366,\r
- "y":343,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
- [\r
- "42fa1258.aa570c"\r
- ]\r
- ]\r
- },\r
- {\r
- "id":"c45d597b.20b4c8",\r
- "type":"success",\r
- "name":"success",\r
- "xml":"<outcome value='200'>\n",\r
- "comments":"",\r
- "outputs":1,\r
- "x":351,\r
- "y":459,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
- [\r
- "30d5f0f7.0e3c8"\r
- ]\r
- ]\r
- },\r
- {\r
- "id":"2856792.c401a86",\r
- "type":"returnSuccess",\r
- "name":"return success",\r
- "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
- "comments":"",\r
- "x":1042,\r
- "y":656,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
-\r
- ]\r
- },\r
- {\r
- "id":"6c359fdc.3b566",\r
- "type":"dgstart",\r
- "name":"DGSTART",\r
- "outputs":1,\r
- "x":321,\r
- "y":161,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
- [\r
- "22aefec.e8c7902"\r
- ]\r
- ]\r
- },\r
- {\r
- "id":"b5342c59.29f74",\r
- "type":"comment",\r
- "name":"SaltStack Adaptor DG",\r
- "info":"",\r
- "comments":"",\r
- "x":693,\r
- "y":44,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
-\r
- ]\r
- },\r
- {\r
- "id":"19202194.8ff55e",\r
- "type":"comment",\r
- "name":"request-method = reqExecCommand, req-action = \"execute multiple SLS commands\"",\r
- "info":"Here we basically test if minion1 is active by pinging to it, then install vim package to it. \n",\r
- "comments":"",\r
- "x":711,\r
- "y":127,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
-\r
- ]\r
- },\r
- {\r
- "id":"a2ebc17e.fa03a",\r
- "type":"other",\r
- "name":"other",\r
- "xml":"<outcome value='Other'>\n",\r
- "comments":"",\r
- "outputs":1,\r
- "x":396,\r
- "y":661,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
- [\r
- "c9345fbb.d6d19"\r
- ]\r
- ]\r
- },\r
- {\r
- "id":"770411a5.18825",\r
- "type":"execute",\r
- "name":"execute",\r
- "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='cd /srv/salt/; salt 'minion1' state.apply vim --out=json --static'/>\n <parameter name='SlsExec' value='true'/>\n <parameter name='Timeout' value='`$Timeout`'/>\n",\r
- "comments":"",\r
- "outputs":1,\r
- "x":773,\r
- "y":548,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
- [\r
- "e09a3e12.87428",\r
- "a2ebc17e.fa03a"\r
- ]\r
- ]\r
- },\r
- {\r
- "id":"e09a3e12.87428",\r
- "type":"failure",\r
- "name":"failure",\r
- "xml":"<outcome value='failure'>\n",\r
- "comments":"",\r
- "outputs":1,\r
- "x":991,\r
- "y":554,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
- [\r
- "31587001.4259e"\r
- ]\r
- ]\r
- },\r
- {\r
- "id":"c9345fbb.d6d19",\r
- "type":"switchNode",\r
- "name":"switch",\r
- "xml":"<switch test=\"`$org.onap.appc.adaptor.saltstack.result.code`\">\n",\r
- "comments":"",\r
- "outputs":1,\r
- "x":578,\r
- "y":658,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
- [\r
- "485e453d.36c75c",\r
- "f1adcf2a.2c456"\r
- ]\r
- ]\r
- },\r
- {\r
- "id":"485e453d.36c75c",\r
- "type":"other",\r
- "name":"other",\r
- "xml":"<outcome value='Other'>\n",\r
- "comments":"",\r
- "outputs":1,\r
- "x":783,\r
- "y":732,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
- [\r
- "31587001.4259e"\r
- ]\r
- ]\r
- },\r
- {\r
- "id":"f1adcf2a.2c456",\r
- "type":"success",\r
- "name":"success",\r
- "xml":"<outcome value='200'>\n",\r
- "comments":"",\r
- "outputs":1,\r
- "x":776,\r
- "y":658,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
- [\r
- "2856792.c401a86"\r
- ]\r
- ]\r
- },\r
- {\r
- "id":"30d5f0f7.0e3c8",\r
- "type":"switchNode",\r
- "name":"switch",\r
- "xml":"<switch test=\"`$test1.minion1`\">\n",\r
- "comments":"",\r
- "outputs":1,\r
- "x":523,\r
- "y":459,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
- [\r
- "15e9ff68.9812a1",\r
- "17d9d7e.4d9a928"\r
- ]\r
- ]\r
- },\r
- {\r
- "id":"17d9d7e.4d9a928",\r
- "type":"other",\r
- "name":"outcome",\r
- "xml":"<outcome value='true'>\n",\r
- "comments":"",\r
- "outputs":1,\r
- "x":593,\r
- "y":550,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
- [\r
- "770411a5.18825"\r
- ]\r
- ]\r
- },\r
- {\r
- "id":"15e9ff68.9812a1",\r
- "type":"other",\r
- "name":"other",\r
- "xml":"<outcome value='Other'>\n",\r
- "comments":"",\r
- "outputs":1,\r
- "x":717,\r
- "y":459,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
- [\r
- "31587001.4259e"\r
- ]\r
- ]\r
- },\r
- {\r
- "id":"b764890c.ed0018",\r
- "type":"comment",\r
- "name":"Assumptions for this DG (example-server)",\r
- "info":"1) Here we assume, the saltstack server is the example-vagrant based server. Where, the master saltstact controlls minion1 and minion2. \n2) We assume that sls file called vim.sls is already present in the path /srv/salt on the server.",\r
- "comments":"",\r
- "x":693,\r
- "y":86,\r
- "z":"b84dc629.83cd08",\r
- "wires":[\r
-\r
- ]\r
- }\r
+ {\r
+ "id": "9e493c5d.c18c7",\r
+ "type": "method",\r
+ "name": "saltstack-adaptor-1.0",\r
+ "xml": "<method rpc='saltstack-adaptor-1.0-exec-SLSFile' mode='sync'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 343,\r
+ "y": 177,\r
+ "z": "c817b245.e1acf",\r
+ "wires": [\r
+ [\r
+ "382f8817.0dda08"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5ab60e1a.76a",\r
+ "type": "service-logic",\r
+ "name": "APPC 2.0.1",\r
+ "module": "APPC",\r
+ "version": "2.0.1",\r
+ "comments": "",\r
+ "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
+ "outputs": 1,\r
+ "x": 134,\r
+ "y": 255,\r
+ "z": "c817b245.e1acf",\r
+ "wires": [\r
+ [\r
+ "9e493c5d.c18c7"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "69ba9b5b.21dc44",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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
+ "comments": "",\r
+ "x": 1053,\r
+ "y": 359,\r
+ "z": "c817b245.e1acf",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "382f8817.0dda08",\r
+ "type": "execute",\r
+ "name": "execute",\r
+ "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
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 552,\r
+ "y": 179,\r
+ "z": "c817b245.e1acf",\r
+ "wires": [\r
+ [\r
+ "11467754.fc8b19",\r
+ "7eb57428.8570cc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c0b1e722.890768",\r
+ "type": "switchNode",\r
+ "name": "switch",\r
+ "xml": "<switch test=\"`$org.onap.appc.adaptor.saltstack.result.code`\">\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 335,\r
+ "y": 339,\r
+ "z": "c817b245.e1acf",\r
+ "wires": [\r
+ [\r
+ "7bf12507.627b6c",\r
+ "d23ec77b.c9a8f8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7bf12507.627b6c",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 526,\r
+ "y": 337,\r
+ "z": "c817b245.e1acf",\r
+ "wires": [\r
+ [\r
+ "69ba9b5b.21dc44"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "11467754.fc8b19",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 802,\r
+ "y": 176,\r
+ "z": "c817b245.e1acf",\r
+ "wires": [\r
+ [\r
+ "69ba9b5b.21dc44"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7eb57428.8570cc",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 157,\r
+ "y": 337,\r
+ "z": "c817b245.e1acf",\r
+ "wires": [\r
+ [\r
+ "c0b1e722.890768"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d23ec77b.c9a8f8",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='200'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 142,\r
+ "y": 453,\r
+ "z": "c817b245.e1acf",\r
+ "wires": [\r
+ [\r
+ "cc2bc9e2.787ab8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "745755b2.4509cc",\r
+ "type": "returnSuccess",\r
+ "name": "return success",\r
+ "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
+ "comments": "",\r
+ "x": 833,\r
+ "y": 650,\r
+ "z": "c817b245.e1acf",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "cf1290d3.278fd",\r
+ "type": "dgstart",\r
+ "name": "DGSTART",\r
+ "outputs": 1,\r
+ "x": 112,\r
+ "y": 155,\r
+ "z": "c817b245.e1acf",\r
+ "wires": [\r
+ [\r
+ "5ab60e1a.76a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5697d7dc.4e0678",\r
+ "type": "comment",\r
+ "name": "SaltStack Adaptor DG",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 484,\r
+ "y": 38,\r
+ "z": "c817b245.e1acf",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "c923d8a1.848318",\r
+ "type": "comment",\r
+ "name": "request-method = reqExecCommand, req-action = \"execute multiple SLS commands\"",\r
+ "info": "Here we basically test if minion1 is active by pinging to it, then install vim package to it. \n",\r
+ "comments": "",\r
+ "x": 502,\r
+ "y": 121,\r
+ "z": "c817b245.e1acf",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "27be8370.edc93c",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 187,\r
+ "y": 655,\r
+ "z": "c817b245.e1acf",\r
+ "wires": [\r
+ [\r
+ "f4628658.b3b638"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "186009ee.e1eae6",\r
+ "type": "execute",\r
+ "name": "execute",\r
+ "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='cd /srv/salt/; salt 'minion1' state.apply vim --out=json --static'/>\n <parameter name='SlsExec' value='true'/>\n <parameter name='Timeout' value='`$Timeout`'/>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 564,\r
+ "y": 542,\r
+ "z": "c817b245.e1acf",\r
+ "wires": [\r
+ [\r
+ "c056efff.509e2",\r
+ "27be8370.edc93c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c056efff.509e2",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 782,\r
+ "y": 548,\r
+ "z": "c817b245.e1acf",\r
+ "wires": [\r
+ [\r
+ "69ba9b5b.21dc44"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f4628658.b3b638",\r
+ "type": "switchNode",\r
+ "name": "switch",\r
+ "xml": "<switch test=\"`$org.onap.appc.adaptor.saltstack.result.code`\">\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 369,\r
+ "y": 652,\r
+ "z": "c817b245.e1acf",\r
+ "wires": [\r
+ [\r
+ "f79c7587.586f88",\r
+ "ca95f193.0b712"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f79c7587.586f88",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 574,\r
+ "y": 726,\r
+ "z": "c817b245.e1acf",\r
+ "wires": [\r
+ [\r
+ "69ba9b5b.21dc44"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ca95f193.0b712",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='200'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 567,\r
+ "y": 652,\r
+ "z": "c817b245.e1acf",\r
+ "wires": [\r
+ [\r
+ "745755b2.4509cc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "cc2bc9e2.787ab8",\r
+ "type": "switchNode",\r
+ "name": "switch",\r
+ "xml": "<switch test=\"`$test1.minion1`\">\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 314,\r
+ "y": 453,\r
+ "z": "c817b245.e1acf",\r
+ "wires": [\r
+ [\r
+ "c139043.a0224f8",\r
+ "e16e55cf.bf6f48"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e16e55cf.bf6f48",\r
+ "type": "other",\r
+ "name": "outcome",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 384,\r
+ "y": 544,\r
+ "z": "c817b245.e1acf",\r
+ "wires": [\r
+ [\r
+ "186009ee.e1eae6"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c139043.a0224f8",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 508,\r
+ "y": 453,\r
+ "z": "c817b245.e1acf",\r
+ "wires": [\r
+ [\r
+ "69ba9b5b.21dc44"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7874f92a.9a1f38",\r
+ "type": "comment",\r
+ "name": "Assumptions for this DG (example-server)",\r
+ "info": "1) Here we assume, the saltstack server is the example-vagrant based server. Where, the master saltstact controlls minion1 and minion2. \n2) We assume that sls file called vim.sls is already present in the path /srv/salt on the server.",\r
+ "comments": "",\r
+ "x": 484,\r
+ "y": 80,\r
+ "z": "c817b245.e1acf",\r
+ "wires": []\r
+ }\r
]
\ No newline at end of file