]>
Commit | Line | Data |
---|---|---|
d8fdd35b SA |
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="item14" object-name="workflow:name=generic" id="eb00c75d-3403-4fb9-a3ae-a07e45c20bf0" version="2.0.22" api-version="3.1.0" allowed-operations="fve" restartMode="1" resumeFromFailedMode="0"> | |
3 | <display-name>clone_lin_win</display-name> | |
4 | ||
5 | <description> | |
6 | Clone windows or linux vm, and choose the correct template. | |
7 | ||
8 | There are support for muliple templates for both windows and linux. | |
9 | </description> | |
10 | ||
11 | <position x="100.0" y="50.0"/> | |
12 | ||
13 | <input> | |
14 | <param name="folder" type="VC:VmFolder"> | |
15 | <description>Virtual machine folder</description> | |
16 | </param> | |
17 | <param name="name" type="string"> | |
18 | <description>New virtual machine name</description> | |
19 | </param> | |
20 | <param name="vm" type="VC:VirtualMachine"> | |
21 | <description>Virtual machine to clone</description> | |
22 | </param> | |
23 | <param name="powerOn" type="boolean"> | |
24 | <description>Specifies whether or not the new virtual machine should be powered on after creation</description> | |
25 | </param> | |
26 | <param name="datastore" type="VC:Datastore"> | |
27 | <description>Datastore in which to store the virtual machine. If not specified, the current datastore is used</description> | |
28 | </param> | |
29 | <param name="host" type="VC:HostSystem"> | |
30 | <description>(Optional) Host on which to create the virtual machine</description> | |
31 | </param> | |
32 | <param name="pool" type="VC:ResourcePool"> | |
33 | <description>(Optional) Resource pool in which to create the virtual machine</description> | |
34 | </param> | |
35 | <param name="doSysprep" type="boolean"> | |
36 | <description>Run the Sysprep operations and wait for the task to complete. Not used if the virtual machine is marked as template</description> | |
37 | </param> | |
38 | <param name="clientName" type="string"> | |
39 | <description>Name or prefix name of the Linux client</description> | |
40 | </param> | |
41 | <param name="network" type="VC:DistributedVirtualPortgroup"> | |
42 | <description>Network on which to attach the virtual network interface</description> | |
43 | </param> | |
44 | <param name="dnsServerList" type="Array/string"> | |
45 | <description>(Optional) List of DNS servers for a virtual network adapter with a static IP address</description> | |
46 | </param> | |
47 | <param name="dnsDomain" type="string"> | |
48 | <description>(Optional) DNS domain suffix such as vmware.com</description> | |
49 | </param> | |
50 | <param name="dhcp" type="boolean"> | |
51 | <description>Use a DHCP server to configure the virtual network adapter</description> | |
52 | </param> | |
53 | <param name="gateway" type="Array/string"> | |
54 | <description>(Optional) List of gateways, in order of preference</description> | |
55 | </param> | |
56 | <param name="ipAddress" type="string"> | |
57 | <description>Fixed, valid IP address</description> | |
58 | </param> | |
59 | <param name="macAddress" type="string"> | |
60 | <description>(Optional) The MAC address of a network adapter being customized. If it is not included, the customization process maps the settings from the virtual machine's network adapters, in PCI slot order</description> | |
61 | </param> | |
62 | <param name="subnetMask" type="string"> | |
63 | <description>[Optional] Subnet mask for this virtual network adapter</description> | |
64 | </param> | |
65 | <param name="diskIndex" type="number"> | |
66 | <description>Disk index</description> | |
67 | </param> | |
68 | <param name="diskSize" type="number"> | |
69 | <description>Disk size (in GB)</description> | |
70 | </param> | |
71 | <param name="diskMode" type="VC:VirtualDiskMode"> | |
72 | <description>Disk persistence mode</description> | |
73 | </param> | |
74 | <param name="scsiBusNumber" type="number"> | |
75 | <description>SCSI controller bus number</description> | |
76 | </param> | |
77 | <param name="thinProvisioned" type="boolean"> | |
78 | <description>Use thin provisioning?</description> | |
79 | </param> | |
80 | <param name="fullName" type="string"> | |
81 | <description>User's full name</description> | |
82 | </param> | |
83 | <param name="orgName" type="string"> | |
84 | <description>Organization name</description> | |
85 | </param> | |
86 | <param name="windows_roles" type="Array/string"> | |
87 | <description>Windows roles. Other workflow fetches roles from database</description> | |
88 | </param> | |
89 | <param name="vlan_name" type="string"> | |
90 | <description>Vlan descriptive name</description> | |
91 | </param> | |
92 | <param name="ad_domain_id" type="number"/> | |
93 | <param name="ad_domain_name" type="string"/> | |
94 | <param name="vmPassword" type="SecureString"/> | |
95 | <param name="osname" type="string"/> | |
96 | <param name="ipv6gateway" type="string"/> | |
97 | <param name="ipv6dnsServerList" type="Array/string"/> | |
98 | <param name="ipv6address" type="string"/> | |
99 | <param name="ipv6Prefixlen" type="number"/> | |
100 | <param name="vcpu" type="number"> | |
101 | <description>New vCPU number</description> | |
102 | </param> | |
103 | <param name="memory" type="number"> | |
104 | <description>New memory value</description> | |
105 | </param> | |
106 | <param name="pxe" type="boolean"> | |
107 | <description>If yes, PXE boot linux</description> | |
108 | </param> | |
109 | <param name="kort_beskrivelse" type="string"> | |
110 | <description>Kort beskrivelse av ny VM</description> | |
111 | </param> | |
112 | <param name="epostliste" type="string"> | |
113 | <description>Mail alias for ny VM</description> | |
114 | </param> | |
115 | </input> | |
116 | ||
117 | <output> | |
118 | <param name="newVM1" type="VC:VirtualMachine"> | |
119 | <description>The newly created virtual machine</description> | |
120 | </param> | |
121 | </output> | |
122 | ||
123 | <attrib name="newVM" type="VC:VirtualMachine" read-only="false"> | |
124 | <value encoded="n">__NULL__</value> | |
125 | <description>The newly created virtual machine</description> | |
126 | </attrib> | |
127 | <attrib name="errorCode" type="string" read-only="false"> | |
128 | <value encoded="n"/> | |
129 | </attrib> | |
130 | <attrib name="reboot" type="boolean" read-only="false"> | |
131 | <value encoded="n">true</value> | |
132 | </attrib> | |
133 | <attrib name="change_params" type="boolean" read-only="false"> | |
134 | <value encoded="n">false</value> | |
135 | </attrib> | |
136 | <attrib name="template" type="boolean" read-only="false"> | |
137 | <value encoded="n">false</value> | |
138 | <description>Specifies whether or not to mark the new virtual machine as a template</description> | |
139 | </attrib> | |
140 | <attrib name="root_disk" type="number" read-only="false"> | |
141 | <value encoded="n">60.0</value> | |
142 | <description>Kickstart root disk</description> | |
143 | </attrib> | |
144 | ||
145 | <workflow-item name="item1" out-name="item3" catch-name="item7" throw-bind-name="errorCode" type="link" linked-workflow-id="569edb26-b0dc-4ae0-802e-f90394e2084b"> | |
146 | <display-name>Clone, Linux with single NIC</display-name> | |
147 | ||
148 | <in-binding> | |
149 | <bind name="folder" type="VC:VmFolder" export-name="folder"> | |
150 | <description>Virtual machine folder</description> | |
151 | </bind> | |
152 | <bind name="name" type="string" export-name="name"> | |
153 | <description>New virtual machine name</description> | |
154 | </bind> | |
155 | <bind name="vm" type="VC:VirtualMachine" export-name="vm"> | |
156 | <description>Virtual machine to clone</description> | |
157 | </bind> | |
158 | <bind name="powerOn" type="boolean" export-name="powerOn"> | |
159 | <description>Specifies whether or not the new virtual machine should be powered on after creation</description> | |
160 | </bind> | |
161 | <bind name="template" type="boolean" export-name="template"> | |
162 | <description>Specifies whether or not to mark the new virtual machine as a template</description> | |
163 | </bind> | |
164 | <bind name="datastore" type="VC:Datastore" export-name="datastore"> | |
165 | <description>Datastore in which to store the virtual machine. If not specified, the current datastore is used</description> | |
166 | </bind> | |
167 | <bind name="host" type="VC:HostSystem" export-name="host"> | |
168 | <description>(Optional) Host on which to create the virtual machine</description> | |
169 | </bind> | |
170 | <bind name="pool" type="VC:ResourcePool" export-name="pool"> | |
171 | <description>(Optional) Resource pool in which to create the virtual machine</description> | |
172 | </bind> | |
173 | <bind name="doSysprep" type="boolean" export-name="doSysprep"> | |
174 | <description>Run the Sysprep operations and wait for the task to complete. Not used if the virtual machine is marked as template</description> | |
175 | </bind> | |
176 | <bind name="clientName" type="string" export-name="clientName"> | |
177 | <description>Name or prefix name of the Linux client</description> | |
178 | </bind> | |
179 | <bind name="network" type="VC:DistributedVirtualPortgroup" export-name="network"> | |
180 | <description>Network on which to attach the virtual network interface</description> | |
181 | </bind> | |
182 | <bind name="dnsServerList" type="Array/string" export-name="dnsServerList"> | |
183 | <description>(Optional) List of DNS servers for a virtual network adapter with a static IP address</description> | |
184 | </bind> | |
185 | <bind name="dnsDomain" type="string" export-name="dnsDomain"> | |
186 | <description>(Optional) DNS domain suffix such as vmware.com</description> | |
187 | </bind> | |
188 | <bind name="dhcp" type="boolean" export-name="dhcp"> | |
189 | <description>Use a DHCP server to configure the virtual network adapter</description> | |
190 | </bind> | |
191 | <bind name="gateway" type="Array/string" export-name="gateway"> | |
192 | <description>(Optional) List of gateways, in order of preference</description> | |
193 | </bind> | |
194 | <bind name="ipAddress" type="string" export-name="ipAddress"> | |
195 | <description>Fixed, valid IP address</description> | |
196 | </bind> | |
197 | <bind name="macAddress" type="string" export-name="macAddress"> | |
198 | <description>(Optional) The MAC address of a network adapter being customized. If it is not included, the customization process maps the settings from the virtual machine's network adapters, in PCI slot order</description> | |
199 | </bind> | |
200 | <bind name="subnetMask" type="string" export-name="subnetMask"> | |
201 | <description>[Optional] Subnet mask for this virtual network adapter</description> | |
202 | </bind> | |
203 | </in-binding> | |
204 | ||
205 | <out-binding> | |
206 | <bind name="newVM" type="VC:VirtualMachine" export-name="newVM"> | |
207 | <description>The newly created virtual machine</description> | |
208 | </bind> | |
209 | </out-binding> | |
210 | ||
211 | <description>Clones a Linux virtual machine, performs the guest operating system customization, and configures one virtual network card.</description> | |
212 | ||
213 | <position x="344.5" y="164.5"/> | |
214 | </workflow-item> | |
215 | ||
216 | <workflow-item name="item2" out-name="item10" catch-name="item7" throw-bind-name="errorCode" type="link" linked-workflow-id="BD8080808080808080808080808080801BC280800122528313869552e41805bb1"> | |
217 | <display-name>Add disk</display-name> | |
218 | ||
219 | <in-binding> | |
220 | <bind name="vm" type="VC:VirtualMachine" export-name="newVM"> | |
221 | <description>Virtual machine to which to add the disk</description> | |
222 | </bind> | |
223 | <bind name="datastore" type="VC:Datastore" export-name="datastore"> | |
224 | <description>Datastore in which to put the virtual disk file</description> | |
225 | </bind> | |
226 | <bind name="diskIndex" type="number" export-name="diskIndex"> | |
227 | <description>Disk index</description> | |
228 | </bind> | |
229 | <bind name="diskSize" type="number" export-name="diskSize"> | |
230 | <description>Disk size (in GB)</description> | |
231 | </bind> | |
232 | <bind name="diskMode" type="VC:VirtualDiskMode" export-name="diskMode"> | |
233 | <description>Disk persistence mode</description> | |
234 | </bind> | |
235 | <bind name="scsiBusNumber" type="number" export-name="scsiBusNumber"> | |
236 | <description>SCSI controller bus number</description> | |
237 | </bind> | |
238 | <bind name="thinProvisioned" type="boolean" export-name="thinProvisioned"> | |
239 | <description>Use thin provisioning?</description> | |
240 | </bind> | |
241 | </in-binding> | |
242 | ||
243 | <out-binding/> | |
244 | ||
245 | <description>Adds a virtual disk to a virtual machine.</description> | |
246 | ||
247 | <position x="644.5" y="209.95454545454544"/> | |
248 | </workflow-item> | |
249 | ||
250 | <workflow-item name="item3" out-name="item2" type="custom-condition" alt-out-name="item16"> | |
251 | <display-name>Add disk ?</display-name> | |
252 | ||
253 | <script encoded="false"> | |
254 | if(vmDiskSize > 0){ | |
255 | return true; | |
256 | }else{ | |
257 | return false; | |
258 | } | |
259 | </script> | |
260 | ||
261 | <in-binding> | |
262 | <bind name="vmDiskSize" type="number" export-name="diskSize"/> | |
263 | </in-binding> | |
264 | ||
265 | <position x="484.5" y="236.3181818181818"/> | |
266 | </workflow-item> | |
267 | ||
268 | <workflow-item name="item4" out-name="item11" throw-bind-name="errorCode" type="link" linked-workflow-id="e15f70a1-d461-45ab-ad7c-5218bf750fbd"> | |
269 | <display-name>clone windows VM</display-name> | |
270 | ||
271 | <in-binding> | |
272 | <bind name="folder" type="VC:VmFolder" export-name="folder"> | |
273 | <description>Virtual machine folder</description> | |
274 | </bind> | |
275 | <bind name="name" type="string" export-name="name"> | |
276 | <description>New virtual machine name</description> | |
277 | </bind> | |
278 | <bind name="vm" type="VC:VirtualMachine" export-name="vm"/> | |
279 | <bind name="datastore" type="VC:Datastore" export-name="datastore"> | |
280 | <description>Datastore in which to store the virtual machine. If not specified, the current datastore is used</description> | |
281 | </bind> | |
282 | <bind name="host" type="VC:HostSystem" explicitly-not-bound="true"> | |
283 | <description>(Optional) Host on which to create the virtual machine</description> | |
284 | </bind> | |
285 | <bind name="pool" type="VC:ResourcePool" export-name="pool"> | |
286 | <description>(Optional) Resource pool in which to create the virtual machine</description> | |
287 | </bind> | |
288 | <bind name="clientName" type="string" export-name="clientName"> | |
289 | <description>Name or prefix name of the Windows client</description> | |
290 | </bind> | |
291 | <bind name="network" type="VC:DistributedVirtualPortgroup" export-name="network"> | |
292 | <description>Network on which to attach the virtual network interface</description> | |
293 | </bind> | |
294 | <bind name="dnsServerList" type="Array/string" export-name="dnsServerList"> | |
295 | <description>(Optional) List of DNS servers for a virtual network adapter with a static IP address</description> | |
296 | </bind> | |
297 | <bind name="dnsDomain" type="string" export-name="dnsDomain"> | |
298 | <description>(Optional) DNS domain suffix such as vmware.com</description> | |
299 | </bind> | |
300 | <bind name="gateway" type="Array/string" export-name="gateway"> | |
301 | <description>(Optional) List of gateways, in order of preference</description> | |
302 | </bind> | |
303 | <bind name="ipAddress" type="string" export-name="ipAddress"> | |
304 | <description>Fixed valid IP address</description> | |
305 | </bind> | |
306 | <bind name="subnetMask" type="string" export-name="subnetMask"> | |
307 | <description>(Optional) Subnet mask for this virtual network adapter</description> | |
308 | </bind> | |
309 | <bind name="fullName" type="string" export-name="fullName"> | |
310 | <description>User's full name</description> | |
311 | </bind> | |
312 | <bind name="orgName" type="string" export-name="orgName"> | |
313 | <description>Organization name</description> | |
314 | </bind> | |
315 | <bind name="vmpasswd" type="SecureString" export-name="vmPassword"/> | |
316 | </in-binding> | |
317 | ||
318 | <out-binding> | |
319 | <bind name="newVM" type="VC:VirtualMachine" export-name="newVM"> | |
320 | <description>The newly created virtual machine</description> | |
321 | </bind> | |
322 | </out-binding> | |
323 | ||
324 | <description> | |
325 | Clones a Windows virtual machine, performing guest operating system customization. Configures one network card and a local administrator user account. | |
326 | ||
327 | Sysprep tools must be available on vCenter Server system. | |
328 | </description> | |
329 | ||
330 | <position x="484.5" y="37.22727272727273"/> | |
331 | </workflow-item> | |
332 | ||
333 | <workflow-item name="item5" out-name="item13" catch-name="item7" throw-bind-name="errorCode" type="link" linked-workflow-id="fdc80ec4-b7c5-4a34-8b46-4ef411021844"> | |
334 | <display-name>post_windows</display-name> | |
335 | ||
336 | <in-binding> | |
337 | <bind name="vm" type="VC:VirtualMachine" export-name="newVM"> | |
338 | <description>Virtual machine</description> | |
339 | </bind> | |
340 | <bind name="windows_roles" type="Array/string" export-name="windows_roles"> | |
341 | <description>Windows roles. Other workflow fetches roles from database</description> | |
342 | </bind> | |
343 | <bind name="vlan_name" type="string" export-name="vlan_name"> | |
344 | <description>Vlan descriptive name</description> | |
345 | </bind> | |
346 | <bind name="ad_domain_id" type="number" export-name="ad_domain_id"/> | |
347 | <bind name="ad_domain_name" type="string" export-name="ad_domain_name"/> | |
348 | <bind name="vmPassword" type="SecureString" export-name="vmPassword"/> | |
349 | <bind name="ipv6gateway" type="string" export-name="ipv6gateway"/> | |
350 | <bind name="ipv6dnsServerList" type="Array/string" export-name="ipv6dnsServerList"/> | |
351 | <bind name="ipv6address" type="string" export-name="ipv6address"/> | |
352 | <bind name="ipv6Prefixlen" type="number" export-name="ipv6Prefixlen"/> | |
353 | </in-binding> | |
354 | ||
355 | <out-binding/> | |
356 | ||
357 | <description>Create directories, and copy scripts to the new VM</description> | |
358 | ||
359 | <position x="904.5" y="37.22727272727273"/> | |
360 | </workflow-item> | |
361 | ||
362 | <workflow-item name="item6" out-name="item4" type="custom-condition" alt-out-name="item15"> | |
363 | <display-name>Windows or Linux</display-name> | |
364 | ||
365 | <script encoded="false"> | |
366 | if (osname.match(/windows/)) { | |
367 | System.log("WINDOWS = "+osname); | |
368 | return true; | |
369 | } else { | |
370 | System.log("Linux = "+osname); | |
371 | return false; | |
372 | } | |
373 | </script> | |
374 | ||
375 | <in-binding> | |
376 | <bind name="osname" type="string" export-name="osname"/> | |
377 | </in-binding> | |
378 | ||
379 | <position x="344.5" y="27.227272727272727"/> | |
380 | </workflow-item> | |
381 | ||
382 | <workflow-item name="item0" type="end" end-mode="0"> | |
383 | <position x="1444.5" y="281.77272727272725"/> | |
384 | </workflow-item> | |
385 | ||
386 | <workflow-item name="item7" out-name="item8" type="link" linked-workflow-id="2cdac1c6-1c4b-4fd4-aa62-a2736a71f7e7"> | |
387 | <display-name>error</display-name> | |
388 | ||
389 | <in-binding> | |
390 | <bind name="message" type="string" export-name="errorCode"/> | |
391 | </in-binding> | |
392 | ||
393 | <out-binding/> | |
394 | ||
395 | <description>Looger error melding til email og database</description> | |
396 | ||
397 | <position x="844.5" y="173.59090909090907"/> | |
398 | </workflow-item> | |
399 | ||
400 | <workflow-item name="item8" throw-bind-name="errorCode" type="end" end-mode="1"> | |
401 | <position x="1024.5" y="154.5"/> | |
402 | </workflow-item> | |
403 | ||
404 | <workflow-item name="item9" out-name="item0" type="task"> | |
405 | <display-name>Scriptable task</display-name> | |
406 | ||
407 | <script encoded="false"> | |
408 | System.log(newVM.name+' : completed successfully'); | |
409 | </script> | |
410 | ||
411 | <in-binding> | |
412 | <bind name="newVM" type="VC:VirtualMachine" export-name="newVM"> | |
413 | <description>The newly created virtual machine</description> | |
414 | </bind> | |
415 | </in-binding> | |
416 | ||
417 | <out-binding> | |
418 | <bind name="newVM" type="VC:VirtualMachine" export-name="newVM1"> | |
419 | <description>The newly created virtual machine</description> | |
420 | </bind> | |
421 | </out-binding> | |
422 | ||
423 | <position x="1204.5" y="200.86363636363635"/> | |
424 | </workflow-item> | |
425 | ||
426 | <workflow-item name="item10" out-name="item13" catch-name="item7" throw-bind-name="errorCode" type="link" linked-workflow-id="2cc2c18b-d313-495e-9636-b960ee816507"> | |
427 | <display-name>post_linux</display-name> | |
428 | ||
429 | <in-binding> | |
430 | <bind name="vm" type="VC:VirtualMachine" export-name="vm"> | |
431 | <description>Virtual machine</description> | |
432 | </bind> | |
433 | </in-binding> | |
434 | ||
435 | <out-binding> | |
436 | <bind name="result" type="number" explicitly-not-bound="true"> | |
437 | <description>The pid of the program started.</description> | |
438 | </bind> | |
439 | </out-binding> | |
440 | ||
441 | <description>Create directories, and copy scripts to the new VM</description> | |
442 | ||
443 | <position x="764.5" y="273.59090909090907"/> | |
444 | </workflow-item> | |
445 | ||
446 | <workflow-item name="item12" out-name="item5" throw-bind-name="errorCode" type="link" linked-workflow-id="BD8080808080808080808080808080801BC280800122528313869552e41805bb1"> | |
447 | <display-name>Add disk</display-name> | |
448 | ||
449 | <in-binding> | |
450 | <bind name="vm" type="VC:VirtualMachine" export-name="newVM"> | |
451 | <description>Virtual machine to which to add the disk</description> | |
452 | </bind> | |
453 | <bind name="datastore" type="VC:Datastore" export-name="datastore"> | |
454 | <description>Datastore in which to put the virtual disk file</description> | |
455 | </bind> | |
456 | <bind name="diskIndex" type="number" export-name="diskIndex"> | |
457 | <description>Disk index</description> | |
458 | </bind> | |
459 | <bind name="diskSize" type="number" export-name="diskSize"> | |
460 | <description>Disk size (in GB)</description> | |
461 | </bind> | |
462 | <bind name="diskMode" type="VC:VirtualDiskMode" export-name="diskMode"> | |
463 | <description>Disk persistence mode</description> | |
464 | </bind> | |
465 | <bind name="scsiBusNumber" type="number" export-name="scsiBusNumber"> | |
466 | <description>SCSI controller bus number</description> | |
467 | </bind> | |
468 | <bind name="thinProvisioned" type="boolean" export-name="thinProvisioned"> | |
469 | <description>Use thin provisioning?</description> | |
470 | </bind> | |
471 | </in-binding> | |
472 | ||
473 | <out-binding/> | |
474 | ||
475 | <description>Adds a virtual disk to a virtual machine.</description> | |
476 | ||
477 | <position x="744.5" y="9.954545454545453"/> | |
478 | </workflow-item> | |
479 | ||
480 | <workflow-item name="item11" out-name="item12" type="custom-condition" alt-out-name="item5"> | |
481 | <display-name>Add disk ?</display-name> | |
482 | ||
483 | <script encoded="false"> | |
484 | if(vmDiskSize > 0){ | |
485 | return true; | |
486 | }else{ | |
487 | return false; | |
488 | } | |
489 | </script> | |
490 | ||
491 | <in-binding> | |
492 | <bind name="vmDiskSize" type="number" export-name="diskSize"/> | |
493 | </in-binding> | |
494 | ||
495 | <description>Check if there should be added an extra disk.</description> | |
496 | ||
497 | <position x="624.5" y="27.227272727272727"/> | |
498 | </workflow-item> | |
499 | ||
500 | <workflow-item name="item13" out-name="item9" type="link" linked-workflow-id="fe9631e6-8706-4a86-b8c2-898da0ce747d"> | |
501 | <display-name>Set CPU memory</display-name> | |
502 | ||
503 | <in-binding> | |
504 | <bind name="vm" type="VC:VirtualMachine" export-name="newVM"> | |
505 | <description>The VM to change</description> | |
506 | </bind> | |
507 | <bind name="vcpu" type="number" export-name="vcpu"> | |
508 | <description>New vCPU number</description> | |
509 | </bind> | |
510 | <bind name="memory" type="number" export-name="memory"> | |
511 | <description>New memory value</description> | |
512 | </bind> | |
513 | <bind name="reboot" type="boolean" export-name="reboot"/> | |
514 | <bind name="change_params" type="boolean" export-name="change_params"/> | |
515 | </in-binding> | |
516 | ||
517 | <out-binding/> | |
518 | ||
519 | <position x="1084.5" y="182.68181818181816"/> | |
520 | </workflow-item> | |
521 | ||
522 | <workflow-item name="item14" out-name="item6" type="link" linked-workflow-id="1f0fc470-006c-4c15-a3b9-95e2e7540f22"> | |
523 | <display-name>global_parameters</display-name> | |
524 | ||
525 | <in-binding/> | |
526 | ||
527 | <out-binding> | |
528 | <bind name="vmPassword" type="SecureString"/> | |
529 | <bind name="manage_cpu_ram" type="boolean" export-name="change_params"/> | |
530 | </out-binding> | |
531 | ||
532 | <position x="204.5" y="46.31818181818181"/> | |
533 | </workflow-item> | |
534 | ||
535 | <workflow-item name="item15" out-name="item17" type="condition" alt-out-name="item1" comparator="0"> | |
536 | <display-name>Decision</display-name> | |
537 | ||
538 | <script encoded="false"> | |
539 | //Generated by the system, cannot be edited | |
540 | return (pxe == true) ; | |
541 | </script> | |
542 | ||
543 | <in-binding> | |
544 | <bind name="pxe" type="boolean" export-name="pxe"/> | |
545 | </in-binding> | |
546 | <condition name="pxe" type="boolean" comparator="0" label="null">false</condition> | |
547 | ||
548 | <position x="345.0" y="90.86363636363636"/> | |
549 | </workflow-item> | |
550 | ||
551 | <workflow-item name="item17" out-name="item3" type="link" linked-workflow-id="b967157c-21a9-478d-8260-f9fa86ac3687"> | |
552 | <display-name>create_vm</display-name> | |
553 | ||
554 | <in-binding> | |
555 | <bind name="vmName" type="string" export-name="name"> | |
556 | <description>Virtual machine name</description> | |
557 | </bind> | |
558 | <bind name="vmGuestOs" type="string" export-name="osname"> | |
559 | <description>Guest operating system to use with the virtual machine</description> | |
560 | </bind> | |
561 | <bind name="vmFolder" type="VC:VmFolder" export-name="folder"> | |
562 | <description>Virtual machine folder</description> | |
563 | </bind> | |
564 | <bind name="vmResourcePool" type="VC:ResourcePool" export-name="pool"> | |
565 | <description>Resource pool in which to create the virtual machine</description> | |
566 | </bind> | |
567 | <bind name="vmHost" type="VC:HostSystem" export-name="host"> | |
568 | <description>Host on which to create the virtual machine</description> | |
569 | </bind> | |
570 | <bind name="vmDiskSize" type="number" export-name="root_disk"> | |
571 | <description>Size of virtual disk in GB</description> | |
572 | </bind> | |
573 | <bind name="vmMemorySize" type="number" export-name="memory"> | |
574 | <description>Virtual machine's memory size in MB</description> | |
575 | </bind> | |
576 | <bind name="vmNbOfCpus" type="number" export-name="vcpu"> | |
577 | <description>Number of virtual processors</description> | |
578 | </bind> | |
579 | <bind name="vmNetwork" type="VC:DistributedVirtualPortgroup" export-name="network"> | |
580 | <description>The network to connect to</description> | |
581 | </bind> | |
582 | <bind name="kort_beskrivelse" type="string" export-name="kort_beskrivelse"> | |
583 | <description>Kort beskrivelse av ny VM</description> | |
584 | </bind> | |
585 | <bind name="epostliste" type="string" export-name="epostliste"> | |
586 | <description>Mail alias for ny VM</description> | |
587 | </bind> | |
588 | </in-binding> | |
589 | ||
590 | <out-binding> | |
591 | <bind name="vm" type="VC:VirtualMachine" export-name="newVM"/> | |
592 | </out-binding> | |
593 | ||
594 | <description>Creates a simple virtual machine. The network used is a Distributed Virtual Port Group.</description> | |
595 | ||
596 | <position x="124.5" y="164.5"/> | |
597 | </workflow-item> | |
598 | ||
599 | <workflow-item name="item16" out-name="item13" type="condition" alt-out-name="item10" comparator="0"> | |
600 | <display-name>post linux or not</display-name> | |
601 | ||
602 | <script encoded="false"> | |
603 | //Generated by the system, cannot be edited | |
604 | return (pxe == true) ; | |
605 | </script> | |
606 | ||
607 | <in-binding> | |
608 | <bind name="pxe" type="boolean" export-name="pxe"/> | |
609 | </in-binding> | |
610 | <condition name="pxe" type="boolean" comparator="0" label="null">false</condition> | |
611 | ||
612 | <description> | |
613 | Dersom dette er en klone jobb, så kjører vi post_linux | |
614 | Dersom dette er en kickstart jobb, så skipper vi post_linux, da dette blir ivaretatt av kickstart skriptet | |
615 | </description> | |
616 | ||
617 | <position x="624.5" y="290.8636363636363"/> | |
618 | </workflow-item> | |
619 | ||
620 | <presentation> | |
621 | <p-param name="folder"> | |
622 | <desc>Virtual machine folder</desc> | |
623 | </p-param> | |
624 | <p-param name="name"> | |
625 | <desc>New virtual machine name</desc> | |
626 | </p-param> | |
627 | <p-param name="vm"> | |
628 | <desc>Virtual machine to clone</desc> | |
629 | </p-param> | |
630 | <p-param name="powerOn"> | |
631 | <desc>Specifies whether or not the new virtual machine should be powered on after creation</desc> | |
632 | </p-param> | |
633 | <p-param name="datastore"> | |
634 | <desc>Datastore in which to store the virtual machine. If not specified, the current datastore is used</desc> | |
635 | </p-param> | |
636 | <p-param name="host"> | |
637 | <desc>(Optional) Host on which to create the virtual machine</desc> | |
638 | </p-param> | |
639 | <p-param name="pool"> | |
640 | <desc>(Optional) Resource pool in which to create the virtual machine</desc> | |
641 | </p-param> | |
642 | <p-param name="doSysprep"> | |
643 | <desc>Run the Sysprep operations and wait for the task to complete. Not used if the virtual machine is marked as template</desc> | |
644 | </p-param> | |
645 | <p-param name="clientName"> | |
646 | <desc>Name or prefix name of the Linux client</desc> | |
647 | </p-param> | |
648 | <p-param name="network"> | |
649 | <desc>Network on which to attach the virtual network interface</desc> | |
650 | </p-param> | |
651 | <p-param name="dnsServerList"> | |
652 | <desc>(Optional) List of DNS servers for a virtual network adapter with a static IP address</desc> | |
653 | </p-param> | |
654 | <p-param name="dnsDomain"> | |
655 | <desc>(Optional) DNS domain suffix such as vmware.com</desc> | |
656 | </p-param> | |
657 | <p-param name="dhcp"> | |
658 | <desc>Use a DHCP server to configure the virtual network adapter</desc> | |
659 | </p-param> | |
660 | <p-param name="gateway"> | |
661 | <desc>(Optional) List of gateways, in order of preference</desc> | |
662 | </p-param> | |
663 | <p-param name="ipAddress"> | |
664 | <desc>Fixed, valid IP address</desc> | |
665 | </p-param> | |
666 | <p-param name="macAddress"> | |
667 | <desc>(Optional) The MAC address of a network adapter being customized. If it is not included, the customization process maps the settings from the virtual machine's network adapters, in PCI slot order</desc> | |
668 | </p-param> | |
669 | <p-param name="subnetMask"> | |
670 | <desc>[Optional] Subnet mask for this virtual network adapter</desc> | |
671 | </p-param> | |
672 | <p-param name="diskIndex"> | |
673 | <desc>Disk index</desc> | |
674 | </p-param> | |
675 | <p-param name="diskSize"> | |
676 | <desc>Disk size (in GB)</desc> | |
677 | </p-param> | |
678 | <p-param name="diskMode"> | |
679 | <desc>Disk persistence mode</desc> | |
680 | </p-param> | |
681 | <p-param name="scsiBusNumber"> | |
682 | <desc>SCSI controller bus number</desc> | |
683 | </p-param> | |
684 | <p-param name="thinProvisioned"> | |
685 | <desc>Use thin provisioning?</desc> | |
686 | </p-param> | |
687 | <p-param name="fullName"> | |
688 | <desc>User's full name</desc> | |
689 | </p-param> | |
690 | <p-param name="orgName"> | |
691 | <desc>Organization name</desc> | |
692 | </p-param> | |
693 | <p-param name="windows_roles"> | |
694 | <desc>Windows roles. Other workflow fetches roles from database</desc> | |
695 | </p-param> | |
696 | <p-param name="vlan_name"> | |
697 | <desc>Vlan descriptive name</desc> | |
698 | </p-param> | |
699 | <p-param name="ad_domain_id"> | |
700 | <desc>ad_domain_id</desc> | |
701 | </p-param> | |
702 | <p-param name="ad_domain_name"> | |
703 | <desc>ad_domain_name</desc> | |
704 | </p-param> | |
705 | <p-param name="vmPassword"> | |
706 | <desc>vmPassword</desc> | |
707 | </p-param> | |
708 | <p-param name="osname"> | |
709 | <desc>osname</desc> | |
710 | </p-param> | |
711 | <p-param name="ipv6gateway"> | |
712 | <desc>ipv6gateway</desc> | |
713 | </p-param> | |
714 | <p-param name="ipv6dnsServerList"> | |
715 | <desc>ipv6dnsServerList</desc> | |
716 | </p-param> | |
717 | <p-param name="ipv6address"> | |
718 | <desc>ipv6address</desc> | |
719 | </p-param> | |
720 | <p-param name="ipv6Prefixlen"> | |
721 | <desc>ipv6Prefixlen</desc> | |
722 | </p-param> | |
723 | <p-param name="vcpu"> | |
724 | <desc>New vCPU number</desc> | |
725 | </p-param> | |
726 | <p-param name="memory"> | |
727 | <desc>New memory value</desc> | |
728 | </p-param> | |
729 | <p-param name="pxe"> | |
730 | <desc>If yes, PXE boot linux</desc> | |
731 | </p-param> | |
732 | <p-param name="kort_beskrivelse"> | |
733 | <desc>Kort beskrivelse av ny VM</desc> | |
734 | </p-param> | |
735 | <p-param name="epostliste"> | |
736 | <desc>Mail alias for ny VM</desc> | |
737 | </p-param> | |
738 | </presentation> | |
739 | </workflow> |