Deployment onap rename
[appc/deployment.git] / platform-logic / appc / src / main / xml / APPC_method_ansible_adapter_1.0_2.0.1.xml
1 <!--
2   ============LICENSE_START=======================================================
3   APPC
4   ================================================================================
5   Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ============LICENSE_END=========================================================
19   -->
20
21 <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'><method rpc='ansible-adapter-1.0' mode='sync'>
22 <execute plugin='org.onap.appc.adapter.ansible.AnsibleAdapter' method='reqExec' >
23 <parameter name='AgentUrl' value='`$AgentUrl`'/>
24   <parameter name='User' value='`$User`'/>
25                         <parameter name='Password' value='`$Password`'/>
26                         <parameter name='LocalParameters' value='`$LocalParameters`'/>
27                         <parameter name='EnvParameters' value='`$EnvParameters`'/>
28                         <parameter name='FileParameters' value='`$FileParameters`'/>
29                         <parameter name='NodeList' value='`$NodeList`'/>
30                         <parameter name='Timeout' value='`$Timeout`'/>
31                         <parameter name='Version' value='`$Version`'/>
32                         <parameter name='PlaybookName' value='`$PlaybookName`'/>
33                         <parameter name='Action' value='`$Action`'/>
34 <outcome value='failure'>
35 <return status='failure'>
36 <parameter name='output.status.code' value='200' />
37 <parameter name='output.status.message' value='`$org.onap.appc.adapter.ansible.message`' />
38 </return></outcome>
39 <outcome value='Other'>
40 <switch test="`$org.onap.appc.adapter.ansible.result.code`">
41 <outcome value='500'>
42 <return status='failure'>
43 <parameter name='output.status.code' value='200' />
44 <parameter name='output.status.message' value='`$org.onap.appc.adapter.ansible.message`' />
45 <parameter name='output.status.results' value='`$org.onap.appc.adapter.ansible.results`' />
46 </return></outcome>
47 <outcome value='100'>
48 <execute plugin='org.onap.appc.adapter.ansible.AnsibleAdapter' method='reqExecResult' >
49    <parameter name='message' value='`$org.onap.appc.adapter.ansible.message`'/>
50    <parameter name='code' value='`$org.onap.appc.adapter.ansible.result.code`'/>
51    <parameter name='AgentUrl' value='`$AgentUrl`'/>
52    <parameter name='User' value='`$User`'/>
53    <parameter name='Password' value='`$Password`'/>
54    <parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>
55 <outcome value='failure'>
56 <return status='failure'>
57 <parameter name='output.status.code' value='200' />
58 <parameter name='output.status.message' value='`$org.onap.appc.adapter.ansible.message`' />
59 <parameter name='output.status.results' value='`$org.onap.appc.adapter.ansible.results`' />
60 </return>
61 </outcome>
62 <outcome value='success'>
63 <set>
64 <parameter name='output.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
65 <parameter name='output.status.message' value='`$org.onap.appc.adapter.ansible.message`' />
66 <parameter name='output.status.results' value='`$org.onap.appc.adapter.ansible.results`' />
67 </set>
68 </outcome>
69 </execute>
70 </outcome>
71 </switch>
72 </outcome>
73 </execute>
74 </method>
75 </service-logic>