første xml update
[virt-orchestrator.git] / vFLOWER / content / Workflows / uio / lib / tools / post_linux.workflow.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <workflow xmlns="http://vmware.com/vco/workflow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://vmware.com/vco/workflow http://vmware.com/vco/workflow/Workflow-v4.xsd" root-name="item4" object-name="workflow:name=generic" id="2cc2c18b-d313-495e-9636-b960ee816507" version="1.0.3" api-version="3.1.0" allowed-operations="fve" restartMode="1" resumeFromFailedMode="0">
3     <display-name>post_linux</display-name>
4
5     <description>Create directories, and copy scripts to the new VM</description>
6
7     <position x="105.0" y="64.09090909090908"/>
8
9     <input>
10         <param name="vm" type="VC:VirtualMachine">
11             <description>Virtual machine</description>
12         </param>
13     </input>
14
15     <output>
16         <param name="result" type="number">
17             <description>The pid of the program started.</description>
18         </param>
19     </output>
20
21     <attrib name="vmUsername" type="string" read-only="false">
22         <value encoded="n">install</value>
23         <description>Username for the virtual machine</description>
24     </attrib>
25     <attrib name="errorCode" type="string" read-only="false">
26         <value encoded="n"/>
27         <description>Error code</description>
28     </attrib>
29     <attrib name="sbin_files" type="Array/string" read-only="false">
30         <value encoded="n">#{#string#get_lvs#;#string#prep-template.sh#;#string#virtprov_finish#}#</value>
31         <description>Files to transfer to the vm</description>
32     </attrib>
33     <attrib name="sbin_vco_path" type="string" read-only="false">
34         <value encoded="n">/site/lib/lin/sbin</value>
35         <description>Path to scripts on Vco server</description>
36     </attrib>
37     <attrib name="sbin" type="string" read-only="false">
38         <value encoded="n">/site/install/sbin</value>
39         <description>Install scripts in this path</description>
40     </attrib>
41     <attrib name="directories" type="Array/string" read-only="false">
42         <value encoded="n">#{#string#/site/install/sbin#;#string#/site/install/etc#}#</value>
43         <description>List of directories to add on the new vm</description>
44     </attrib>
45     <attrib name="config_files" type="Array/string" read-only="false">
46         <value encoded="n">#{#string#default.lvm#;#string#example.lvm#;#string#w3.lvm#;#string#w3utv.lvm#}#</value>
47     </attrib>
48     <attrib name="etc" type="string" read-only="false">
49         <value encoded="n">/site/install/etc</value>
50         <description>Volume create scripts</description>
51     </attrib>
52     <attrib name="etc_vco_path" type="string" read-only="false">
53         <value encoded="n">/site/lib/lin/etc</value>
54     </attrib>
55     <attrib name="interactiveSession" type="boolean" read-only="false">
56         <value encoded="n">false</value>
57         <description>This is set to true if the client wants an interactive session in the guest.</description>
58     </attrib>
59     <attrib name="arguments" type="string" read-only="false">
60         <value encoded="n"/>
61         <description>The arguments to the program. In Linux and Solaris guest operating systems, the program will be executed by a guest shell. This allows stdio redirection, but may also require that characters which must be escaped to the shell also be escaped on the command line provided. For Windows guest operating systems, prefixing the command with "cmd /c" can provide stdio redirection.</description>
62     </attrib>
63     <attrib name="environment" type="Array/string" read-only="false">
64         <value encoded="n">__NULL__</value>
65         <description>An array of environment variables, specified in the guest OS notation (eg PATH=c:\bin;c:\windows\system32 or LD_LIBRARY_PATH=/usr/lib:/lib), to be set for the program being run. Note that these are not additions to the default environment variables; they define the complete set available to the program. If none are specified the values are guest dependent.</description>
66     </attrib>
67     <attrib name="programPath" type="string" read-only="false">
68         <value encoded="n">/site/install/sbin/get_lvs</value>
69         <description>The absolute path to the program to start. For Linux guest operating systems, /bin/bash is used to start the program.  For Solaris guest operating systems, /bin/bash is used to start the program if it exists. Otherwise /bin/sh is used. If /bin/sh is used, then the process ID returned will be that of the shell used to start the program, rather than the program itself, due to the differences in how /bin/sh and /bin/bash work. This PID will still be usable for watching the process with this API to find its exit code and elapsed time.</description>
70     </attrib>
71     <attrib name="vmPassword" type="SecureString" read-only="false">
72         <value encoded="n">12AE4E26577787236F66FF74831B32E33234135F59DB6CD98664361CDD001EAB35605C5BC9FA8020B81617CB5A1D2FD86C9</value>
73         <description>admin password</description>
74     </attrib>
75
76     <workflow-item name="item0" type="end" end-mode="0">
77         <position x="1004.5" y="109.04545454545453"/>
78     </workflow-item>
79
80     <workflow-item name="item2" out-name="item1" throw-bind-name="errorCode" type="link" linked-workflow-id="0d2ce070-c285-4a7f-9ec0-71f769d07114">
81         <display-name>copy sbin files</display-name>
82
83         <in-binding>
84             <bind name="vm" type="VC:VirtualMachine" export-name="vm">
85                 <description>Virtual machine</description>
86             </bind>
87             <bind name="directories" type="Array/string" export-name="directories"/>
88             <bind name="dos_path" type="string" export-name="sbin"/>
89             <bind name="dos_files" type="Array/string" export-name="sbin_files"/>
90             <bind name="vco_path" type="string" export-name="sbin_vco_path"/>
91             <bind name="vmUsername" type="string" export-name="vmUsername">
92                 <description>Username for the virtual machine</description>
93             </bind>
94             <bind name="vmPassword" type="SecureString" export-name="vmPassword">
95                 <description>Password for the virtual machine</description>
96             </bind>
97         </in-binding>
98
99         <out-binding/>
100
101         <description>Create directories, and copy scripts to the new VM</description>
102
103         <position x="444.5" y="155.4090909090909"/>
104     </workflow-item>
105
106     <workflow-item name="item3" out-name="item0" type="link" linked-workflow-id="C98080808080808080808080808080805E80808001322751030482b80adf61e7c">
107         <display-name>Run program in guest</display-name>
108
109         <in-binding>
110             <bind name="vmUsername" type="string" export-name="vmUsername">
111                 <description>Username for the virtual machine</description>
112             </bind>
113             <bind name="vmPassword" type="SecureString" export-name="vmPassword">
114                 <description>Password for the virtual machine</description>
115             </bind>
116             <bind name="vm" type="VC:VirtualMachine" export-name="vm">
117                 <description>Virtual machine</description>
118             </bind>
119             <bind name="interactiveSession" type="boolean" export-name="interactiveSession">
120                 <description>This is set to true if the client wants an interactive session in the guest.</description>
121             </bind>
122             <bind name="programPath" type="string" export-name="programPath">
123                 <description>The absolute path to the program to start. For Linux guest operating systems, /bin/bash is used to start the program.  For Solaris guest operating systems, /bin/bash is used to start the program if it exists. Otherwise /bin/sh is used. If /bin/sh is used, then the process ID returned will be that of the shell used to start the program, rather than the program itself, due to the differences in how /bin/sh and /bin/bash work. This PID will still be usable for watching the process with this API to find its exit code and elapsed time.</description>
124             </bind>
125             <bind name="arguments" type="string" export-name="arguments">
126                 <description>The arguments to the program. In Linux and Solaris guest operating systems, the program will be executed by a guest shell. This allows stdio redirection, but may also require that characters which must be escaped to the shell also be escaped on the command line provided. For Windows guest operating systems, prefixing the command with "cmd /c" can provide stdio redirection.</description>
127             </bind>
128             <bind name="workingDirectory" type="string" export-name="sbin">
129                 <description>The absolute path of the working directory for the program to be run. VMware recommends explicitly setting the working directory for the program to be run. If this value is unset or is an empty string, the behavior depends on the guest operating system. For Linux guest operating systems, if this value is unset or is an empty string, the working directory will be the home directory of the user associated with the guest authentication. For other guest operating systems, if this value is unset, the behavior is unspecified.</description>
130             </bind>
131             <bind name="environment" type="Array/string" export-name="environment">
132                 <description>An array of environment variables, specified in the guest OS notation (eg PATH=c:\bin;c:\windows\system32 or LD_LIBRARY_PATH=/usr/lib:/lib), to be set for the program being run. Note that these are not additions to the default environment variables; they define the complete set available to the program. If none are specified the values are guest dependent.</description>
133             </bind>
134         </in-binding>
135
136         <out-binding>
137             <bind name="result" type="number" export-name="result">
138                 <description>The pid of the program started.</description>
139             </bind>
140         </out-binding>
141
142         <description>
143 Starts a program in the guest operating system.
144 A process started this way can have its status queried with this API. When the process completes, its exit code and end time will be available for 5 minutes after completion.
145         </description>
146
147         <position x="804.5" y="119.04545454545453"/>
148     </workflow-item>
149
150     <workflow-item name="item1" out-name="item3" throw-bind-name="errorCode" type="link" linked-workflow-id="0d2ce070-c285-4a7f-9ec0-71f769d07114">
151         <display-name>copy lvm files</display-name>
152
153         <in-binding>
154             <bind name="vm" type="VC:VirtualMachine" export-name="vm">
155                 <description>Virtual machine</description>
156             </bind>
157             <bind name="directories" type="Array/string" export-name="directories"/>
158             <bind name="dos_path" type="string" export-name="etc"/>
159             <bind name="dos_files" type="Array/string" export-name="config_files"/>
160             <bind name="vco_path" type="string" export-name="etc_vco_path"/>
161             <bind name="vmUsername" type="string" export-name="vmUsername">
162                 <description>Username for the virtual machine</description>
163             </bind>
164             <bind name="vmPassword" type="SecureString" export-name="vmPassword">
165                 <description>Password for the virtual machine</description>
166             </bind>
167         </in-binding>
168
169         <out-binding/>
170
171         <description>Create directories, and copy scripts to the new VM</description>
172
173         <position x="584.5" y="182.68181818181816"/>
174     </workflow-item>
175
176     <workflow-item name="item4" out-name="item2" type="link" linked-workflow-id="1f0fc470-006c-4c15-a3b9-95e2e7540f22">
177         <display-name>global_parameters</display-name>
178
179         <in-binding/>
180
181         <out-binding>
182             <bind name="mailto" type="string"/>
183             <bind name="smtp_server" type="string"/>
184             <bind name="smtp_port" type="string"/>
185             <bind name="database" type="SQL:Database"/>
186             <bind name="vmPassword" type="SecureString" export-name="vmPassword"/>
187         </out-binding>
188
189         <position x="184.5" y="100.86363636363636"/>
190     </workflow-item>
191
192     <presentation>
193         <p-param name="vm">
194             <desc>Virtual machine</desc>
195             <p-qual kind="static" name="mandatory" type="boolean">true</p-qual>
196         </p-param>
197     </presentation>
198 </workflow>