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>
5 <description>Create directories, and copy scripts to the new VM</description>
7 <position x="105.0" y="64.09090909090908"/>
10 <param name="vm" type="VC:VirtualMachine">
11 <description>Virtual machine</description>
16 <param name="result" type="number">
17 <description>The pid of the program started.</description>
21 <attrib name="vmUsername" type="string" read-only="false">
22 <value encoded="n">install</value>
23 <description>Username for the virtual machine</description>
25 <attrib name="errorCode" type="string" read-only="false">
27 <description>Error code</description>
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>
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>
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>
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>
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>
48 <attrib name="etc" type="string" read-only="false">
49 <value encoded="n">/site/install/etc</value>
50 <description>Volume create scripts</description>
52 <attrib name="etc_vco_path" type="string" read-only="false">
53 <value encoded="n">/site/lib/lin/etc</value>
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>
59 <attrib name="arguments" type="string" read-only="false">
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>
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>
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>
71 <attrib name="vmPassword" type="SecureString" read-only="false">
72 <value encoded="n">12AE4E26577787236F66FF74831B32E33234135F59DB6CD98664361CDD001EAB35605C5BC9FA8020B81617CB5A1D2FD86C9</value>
73 <description>admin password</description>
76 <workflow-item name="item0" type="end" end-mode="0">
77 <position x="1004.5" y="109.04545454545453"/>
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>
84 <bind name="vm" type="VC:VirtualMachine" export-name="vm">
85 <description>Virtual machine</description>
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>
94 <bind name="vmPassword" type="SecureString" export-name="vmPassword">
95 <description>Password for the virtual machine</description>
101 <description>Create directories, and copy scripts to the new VM</description>
103 <position x="444.5" y="155.4090909090909"/>
106 <workflow-item name="item3" out-name="item0" type="link" linked-workflow-id="C98080808080808080808080808080805E80808001322751030482b80adf61e7c">
107 <display-name>Run program in guest</display-name>
110 <bind name="vmUsername" type="string" export-name="vmUsername">
111 <description>Username for the virtual machine</description>
113 <bind name="vmPassword" type="SecureString" export-name="vmPassword">
114 <description>Password for the virtual machine</description>
116 <bind name="vm" type="VC:VirtualMachine" export-name="vm">
117 <description>Virtual machine</description>
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>
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>
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>
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>
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>
137 <bind name="result" type="number" export-name="result">
138 <description>The pid of the program started.</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.
147 <position x="804.5" y="119.04545454545453"/>
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>
154 <bind name="vm" type="VC:VirtualMachine" export-name="vm">
155 <description>Virtual machine</description>
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>
164 <bind name="vmPassword" type="SecureString" export-name="vmPassword">
165 <description>Password for the virtual machine</description>
171 <description>Create directories, and copy scripts to the new VM</description>
173 <position x="584.5" y="182.68181818181816"/>
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>
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"/>
189 <position x="184.5" y="100.86363636363636"/>
194 <desc>Virtual machine</desc>
195 <p-qual kind="static" name="mandatory" type="boolean">true</p-qual>