]> git.uio.no Git - virt-orchestrator.git/blobdiff - vFLOWER/content/Workflows/uio/lib/tools/post_windows.workflow.xml
første xml update
[virt-orchestrator.git] / vFLOWER / content / Workflows / uio / lib / tools / post_windows.workflow.xml
diff --git a/vFLOWER/content/Workflows/uio/lib/tools/post_windows.workflow.xml b/vFLOWER/content/Workflows/uio/lib/tools/post_windows.workflow.xml
new file mode 100644 (file)
index 0000000..2432f0d
--- /dev/null
@@ -0,0 +1,156 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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">
+    <display-name>post_windows</display-name>
+
+    <description>Create directories, and copy scripts to the new VM</description>
+
+    <position x="100.0" y="50.0"/>
+
+    <input>
+        <param name="vm" type="VC:VirtualMachine">
+            <description>Virtual machine</description>
+        </param>
+        <param name="windows_roles" type="Array/string">
+            <description>Windows roles. Other workflow fetches roles from database</description>
+        </param>
+        <param name="vlan_name" type="string">
+            <description>Vlan descriptive name</description>
+        </param>
+        <param name="ad_domain_id" type="number">
+            <description>if &gt; 0, add to vm to ad. Number is id from the database</description>
+        </param>
+        <param name="vmPassword" type="SecureString">
+            <description>admin password</description>
+        </param>
+        <param name="ad_domain_name" type="string">
+            <description>Ad domain name</description>
+        </param>
+        <param name="ipv6dnsServerList" type="Array/string"/>
+        <param name="ipv6address" type="string"/>
+        <param name="ipv6gateway" type="string"/>
+        <param name="ipv6Prefixlen" type="number"/>
+    </input>
+
+    <attrib name="vmUsername" type="string" read-only="false">
+        <value encoded="n">Administrator</value>
+        <description>Username for the virtual machine</description>
+    </attrib>
+    <attrib name="errorCode" type="string" read-only="false">
+        <value encoded="n"/>
+        <description>Error code</description>
+    </attrib>
+    <attrib name="dos_files" type="Array/string" read-only="false">
+        <value encoded="n">#{#string#addRoles.ps1#;#string#join_ad.ps1#;#string#WindowsFinish.ps1#;#string#setipv6.ps1#}#</value>
+        <description>Files to transfer to the vm</description>
+    </attrib>
+    <attrib name="vco_path" type="string" read-only="false">
+        <value encoded="n">/site/lib/dos</value>
+        <description>Path to scripts on Vco server</description>
+    </attrib>
+    <attrib name="dos_path" type="string" read-only="false">
+        <value encoded="n">c:\etc\scripts</value>
+        <description>Path to scripts</description>
+    </attrib>
+    <attrib name="directories" type="Array/string" read-only="false">
+        <value encoded="n">#{#string#c:\etc\scripts#;#string#c:\etc\logs#;#string#c:\etc\uio\logs#}#</value>
+        <description>List of directories to add on the new vm</description>
+    </attrib>
+    <attrib name="copy_out" type="Array/boolean" read-only="false">
+        <value encoded="n">__NULL__</value>
+    </attrib>
+
+    <workflow-item name="item0" type="end" end-mode="0">
+        <position x="844.5" y="45.40909090909091"/>
+    </workflow-item>
+
+    <workflow-item name="item2" out-name="item1" throw-bind-name="errorCode" type="link" linked-workflow-id="0d2ce070-c285-4a7f-9ec0-71f769d07114">
+        <display-name>copy scripts to windows</display-name>
+
+        <in-binding>
+            <bind name="vm" type="VC:VirtualMachine" export-name="vm">
+                <description>Virtual machine</description>
+            </bind>
+            <bind name="directories" type="Array/string" export-name="directories"/>
+            <bind name="dos_path" type="string" export-name="dos_path"/>
+            <bind name="dos_files" type="Array/string" export-name="dos_files"/>
+            <bind name="vco_path" type="string" export-name="vco_path"/>
+            <bind name="vmUsername" type="string" export-name="vmUsername">
+                <description>Username for the virtual machine</description>
+            </bind>
+            <bind name="vmPassword" type="SecureString" export-name="vmPassword">
+                <description>Password for the virtual machine</description>
+            </bind>
+        </in-binding>
+
+        <out-binding>
+            <bind name="var" type="Array/boolean" export-name="copy_out"/>
+        </out-binding>
+
+        <description>Create directories, and copy scripts to the new VM</description>
+
+        <position x="225.0" y="55.40909090909091"/>
+    </workflow-item>
+
+    <workflow-item name="item1" out-name="item0" type="link" linked-workflow-id="8986a211-6aae-404a-8586-374d658fbee8">
+        <display-name>exec_post_scipts</display-name>
+
+        <in-binding>
+            <bind name="vm" type="VC:VirtualMachine" export-name="vm">
+                <description>Virtual machine</description>
+            </bind>
+            <bind name="windows_roles" type="Array/string" export-name="windows_roles">
+                <description>Windows roles. Other workflow fetches roles from database</description>
+            </bind>
+            <bind name="vlan_name" type="string" export-name="vlan_name">
+                <description>Vlan descriptive name</description>
+            </bind>
+            <bind name="ad_domain_id" type="number" export-name="ad_domain_id"/>
+            <bind name="ad_domain_name" type="string" export-name="ad_domain_name"/>
+            <bind name="ipv6Prefixlen" type="number" export-name="ipv6Prefixlen"/>
+            <bind name="ipv6gateway" type="string" export-name="ipv6gateway"/>
+            <bind name="ipv6dnsServerList" type="Array/string" export-name="ipv6dnsServerList"/>
+            <bind name="ipv6address" type="string" export-name="ipv6address"/>
+            <bind name="vmPassword" type="SecureString" export-name="vmPassword"/>
+        </in-binding>
+
+        <out-binding/>
+
+        <description>Execute post scipts to build a UiO windows server</description>
+
+        <position x="405.0" y="55.90909090909091"/>
+    </workflow-item>
+
+    <presentation>
+        <p-param name="vm">
+            <desc>Virtual machine</desc>
+            <p-qual kind="static" name="mandatory" type="boolean">true</p-qual>
+        </p-param>
+        <p-param name="windows_roles">
+            <desc>Windows roles. Other workflow fetches roles from database</desc>
+        </p-param>
+        <p-param name="vlan_name">
+            <desc>Vlan descriptive name</desc>
+        </p-param>
+        <p-param name="ad_domain_id">
+            <desc>ad_domain_id</desc>
+        </p-param>
+        <p-param name="vmPassword">
+            <desc>administrator_password</desc>
+        </p-param>
+        <p-param name="ad_domain_name">
+            <desc>ad_domain_name</desc>
+        </p-param>
+        <p-param name="ipv6dnsServerList">
+            <desc>ipv6dnsServerList</desc>
+        </p-param>
+        <p-param name="ipv6address">
+            <desc>ipv6address</desc>
+        </p-param>
+        <p-param name="ipv6gateway">
+            <desc>ipv6gateway</desc>
+        </p-param>
+        <p-param name="ipv6Prefixlen">
+            <desc>ipv6Prefixlen</desc>
+        </p-param>
+    </presentation>
+</workflow>