første xml update
[virt-orchestrator.git] / vFLOWER / content / Workflows / uio / lib / tools / post_windows.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="item2" object-name="workflow:name=generic" id="fdc80ec4-b7c5-4a34-8b46-4ef411021844" version="1.0.6" api-version="3.1.0" allowed-operations="fve" restartMode="1" resumeFromFailedMode="0">
3     <display-name>post_windows</display-name>
4
5     <description>Create directories, and copy scripts to the new VM</description>
6
7     <position x="100.0" y="50.0"/>
8
9     <input>
10         <param name="vm" type="VC:VirtualMachine">
11             <description>Virtual machine</description>
12         </param>
13         <param name="windows_roles" type="Array/string">
14             <description>Windows roles. Other workflow fetches roles from database</description>
15         </param>
16         <param name="vlan_name" type="string">
17             <description>Vlan descriptive name</description>
18         </param>
19         <param name="ad_domain_id" type="number">
20             <description>if &gt; 0, add to vm to ad. Number is id from the database</description>
21         </param>
22         <param name="vmPassword" type="SecureString">
23             <description>admin password</description>
24         </param>
25         <param name="ad_domain_name" type="string">
26             <description>Ad domain name</description>
27         </param>
28         <param name="ipv6dnsServerList" type="Array/string"/>
29         <param name="ipv6address" type="string"/>
30         <param name="ipv6gateway" type="string"/>
31         <param name="ipv6Prefixlen" type="number"/>
32     </input>
33
34     <attrib name="vmUsername" type="string" read-only="false">
35         <value encoded="n">Administrator</value>
36         <description>Username for the virtual machine</description>
37     </attrib>
38     <attrib name="errorCode" type="string" read-only="false">
39         <value encoded="n"/>
40         <description>Error code</description>
41     </attrib>
42     <attrib name="dos_files" type="Array/string" read-only="false">
43         <value encoded="n">#{#string#addRoles.ps1#;#string#join_ad.ps1#;#string#WindowsFinish.ps1#;#string#setipv6.ps1#}#</value>
44         <description>Files to transfer to the vm</description>
45     </attrib>
46     <attrib name="vco_path" type="string" read-only="false">
47         <value encoded="n">/site/lib/dos</value>
48         <description>Path to scripts on Vco server</description>
49     </attrib>
50     <attrib name="dos_path" type="string" read-only="false">
51         <value encoded="n">c:\etc\scripts</value>
52         <description>Path to scripts</description>
53     </attrib>
54     <attrib name="directories" type="Array/string" read-only="false">
55         <value encoded="n">#{#string#c:\etc\scripts#;#string#c:\etc\logs#;#string#c:\etc\uio\logs#}#</value>
56         <description>List of directories to add on the new vm</description>
57     </attrib>
58     <attrib name="copy_out" type="Array/boolean" read-only="false">
59         <value encoded="n">__NULL__</value>
60     </attrib>
61
62     <workflow-item name="item0" type="end" end-mode="0">
63         <position x="844.5" y="45.40909090909091"/>
64     </workflow-item>
65
66     <workflow-item name="item2" out-name="item1" throw-bind-name="errorCode" type="link" linked-workflow-id="0d2ce070-c285-4a7f-9ec0-71f769d07114">
67         <display-name>copy scripts to windows</display-name>
68
69         <in-binding>
70             <bind name="vm" type="VC:VirtualMachine" export-name="vm">
71                 <description>Virtual machine</description>
72             </bind>
73             <bind name="directories" type="Array/string" export-name="directories"/>
74             <bind name="dos_path" type="string" export-name="dos_path"/>
75             <bind name="dos_files" type="Array/string" export-name="dos_files"/>
76             <bind name="vco_path" type="string" export-name="vco_path"/>
77             <bind name="vmUsername" type="string" export-name="vmUsername">
78                 <description>Username for the virtual machine</description>
79             </bind>
80             <bind name="vmPassword" type="SecureString" export-name="vmPassword">
81                 <description>Password for the virtual machine</description>
82             </bind>
83         </in-binding>
84
85         <out-binding>
86             <bind name="var" type="Array/boolean" export-name="copy_out"/>
87         </out-binding>
88
89         <description>Create directories, and copy scripts to the new VM</description>
90
91         <position x="225.0" y="55.40909090909091"/>
92     </workflow-item>
93
94     <workflow-item name="item1" out-name="item0" type="link" linked-workflow-id="8986a211-6aae-404a-8586-374d658fbee8">
95         <display-name>exec_post_scipts</display-name>
96
97         <in-binding>
98             <bind name="vm" type="VC:VirtualMachine" export-name="vm">
99                 <description>Virtual machine</description>
100             </bind>
101             <bind name="windows_roles" type="Array/string" export-name="windows_roles">
102                 <description>Windows roles. Other workflow fetches roles from database</description>
103             </bind>
104             <bind name="vlan_name" type="string" export-name="vlan_name">
105                 <description>Vlan descriptive name</description>
106             </bind>
107             <bind name="ad_domain_id" type="number" export-name="ad_domain_id"/>
108             <bind name="ad_domain_name" type="string" export-name="ad_domain_name"/>
109             <bind name="ipv6Prefixlen" type="number" export-name="ipv6Prefixlen"/>
110             <bind name="ipv6gateway" type="string" export-name="ipv6gateway"/>
111             <bind name="ipv6dnsServerList" type="Array/string" export-name="ipv6dnsServerList"/>
112             <bind name="ipv6address" type="string" export-name="ipv6address"/>
113             <bind name="vmPassword" type="SecureString" export-name="vmPassword"/>
114         </in-binding>
115
116         <out-binding/>
117
118         <description>Execute post scipts to build a UiO windows server</description>
119
120         <position x="405.0" y="55.90909090909091"/>
121     </workflow-item>
122
123     <presentation>
124         <p-param name="vm">
125             <desc>Virtual machine</desc>
126             <p-qual kind="static" name="mandatory" type="boolean">true</p-qual>
127         </p-param>
128         <p-param name="windows_roles">
129             <desc>Windows roles. Other workflow fetches roles from database</desc>
130         </p-param>
131         <p-param name="vlan_name">
132             <desc>Vlan descriptive name</desc>
133         </p-param>
134         <p-param name="ad_domain_id">
135             <desc>ad_domain_id</desc>
136         </p-param>
137         <p-param name="vmPassword">
138             <desc>administrator_password</desc>
139         </p-param>
140         <p-param name="ad_domain_name">
141             <desc>ad_domain_name</desc>
142         </p-param>
143         <p-param name="ipv6dnsServerList">
144             <desc>ipv6dnsServerList</desc>
145         </p-param>
146         <p-param name="ipv6address">
147             <desc>ipv6address</desc>
148         </p-param>
149         <p-param name="ipv6gateway">
150             <desc>ipv6gateway</desc>
151         </p-param>
152         <p-param name="ipv6Prefixlen">
153             <desc>ipv6Prefixlen</desc>
154         </p-param>
155     </presentation>
156 </workflow>