første xml update
[virt-orchestrator.git] / vFLOWER / content / Workflows / uio / lib / bofh / get_ad_password.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="item3" object-name="workflow:name=generic" id="2b5cccb5-e2f5-4d3b-8a05-c0d3fdc61e3c" version="2.0.4" api-version="3.1.0" allowed-operations="fve" icon-id="419c9a2c-8915-4c26-8b59-fbb5931eb502" restartMode="1" resumeFromFailedMode="0">
3     <display-name>get_ad_password</display-name>
4
5     <description>
6 Request a dynamic AD password for the user uioadd. This password is valid for 30 minutes. PS the request might take up to two minutes as the script ensures that the requested password is valid for at least two minutes after the request. 
7
8 Script name: virtprov@esx-mgmt:/site/lib/Ovc/get_ad_password
9     </description>
10
11     <position x="100.0" y="50.0"/>
12
13     <output>
14         <param name="outputText1" type="string">
15             <description>Result of running the SSH command</description>
16         </param>
17         <param name="secure_password" type="SecureString"/>
18     </output>
19
20     <attrib name="hostNameOrIP" type="string" read-only="false">
21         <value encoded="n">esx-mgmt.uio.no</value>
22         <description>Hostname or IP address of the SSH host</description>
23     </attrib>
24     <attrib name="username" type="string" read-only="false">
25         <value encoded="n">virtprov</value>
26         <description>Username</description>
27     </attrib>
28     <attrib name="passwordAuthentication" type="boolean" read-only="false">
29         <value encoded="n">false</value>
30         <description>Sets authentication to password or key file</description>
31     </attrib>
32     <attrib name="passphrase" type="SecureString" read-only="false">
33         <value encoded="n"/>
34         <description>Private key pass-phrase</description>
35     </attrib>
36     <attrib name="password" type="SecureString" read-only="false">
37         <value encoded="n"/>
38         <description>Password</description>
39     </attrib>
40     <attrib name="cmd" type="string" read-only="false">
41         <value encoded="n">uptime</value>
42         <description>The SSH command to run</description>
43     </attrib>
44     <attrib name="PlainTextPassword" type="string" read-only="false">
45         <value encoded="n">__NULL__</value>
46         <description>Result of running the SSH command</description>
47     </attrib>
48     <attrib name="errorText" type="string" read-only="false">
49         <value encoded="n"/>
50         <description>Error text, if any</description>
51     </attrib>
52     <attrib name="path" type="Path" read-only="false">
53         <value encoded="n">../conf/vco_key</value>
54         <description>Path to the private key</description>
55     </attrib>
56     <attrib name="result" type="number" read-only="false">
57         <value encoded="n">__NULL__</value>
58         <description>0 = OK, Negative = Error, Positive = Number of values returned, after error text</description>
59     </attrib>
60     <attrib name="database" type="SQL:Database" read-only="false">
61         <value encoded="n">__NULL__</value>
62         <description>Default database</description>
63     </attrib>
64
65     <workflow-item name="item1" out-name="item2" catch-name="item5" throw-bind-name="errorText" type="link" linked-workflow-id="90808080808080808080808080808080D28080800120523434428525559a3425f">
66         <display-name>Get AD password</display-name>
67
68         <in-binding>
69             <bind name="hostNameOrIP" type="string" export-name="hostNameOrIP">
70                 <description>Hostname or IP address of the SSH host</description>
71             </bind>
72             <bind name="username" type="string" export-name="username">
73                 <description>Username</description>
74             </bind>
75             <bind name="password" type="SecureString" export-name="password">
76                 <description>Password</description>
77             </bind>
78             <bind name="cmd" type="string" export-name="cmd">
79                 <description>The SSH command to run</description>
80             </bind>
81             <bind name="passwordAuthentication" type="boolean" export-name="passwordAuthentication">
82                 <description>Sets authentication to password or key file</description>
83             </bind>
84             <bind name="path" type="Path" export-name="path">
85                 <description>Path to the private key</description>
86             </bind>
87             <bind name="passphrase" type="SecureString" export-name="passphrase">
88                 <description>Private key pass-phrase</description>
89             </bind>
90         </in-binding>
91
92         <out-binding>
93             <bind name="result" type="number" export-name="result">
94                 <description>0 = OK, Negative = Error, Positive = Number of values returned, after error text</description>
95             </bind>
96             <bind name="errorText" type="string" export-name="errorText">
97                 <description>Error text, if any</description>
98             </bind>
99             <bind name="outputText" type="string" export-name="PlainTextPassword">
100                 <description>Result of running the SSH command</description>
101             </bind>
102         </out-binding>
103
104         <description>Runs an SSH command.</description>
105
106         <position x="464.5" y="55.40909090909091"/>
107     </workflow-item>
108
109     <workflow-item name="item7" out-name="item1" catch-name="item5" throw-bind-name="errorText" type="task">
110         <display-name>preapare bofh cmd</display-name>
111
112         <script encoded="false">
113 cmd="/site/lib/Ovc/get_ad_password";
114         </script>
115
116         <in-binding>
117             <bind name="database" type="SQL:Database" export-name="database">
118                 <description>Default database</description>
119             </bind>
120         </in-binding>
121
122         <out-binding>
123             <bind name="cmd" type="string" export-name="cmd">
124                 <description>The SSH command to run</description>
125             </bind>
126         </out-binding>
127
128         <description>Prepare a BOFH add_host commandline for sending to esx-mgmt</description>
129
130         <position x="344.5" y="55.40909090909091"/>
131     </workflow-item>
132
133     <workflow-item name="item8" type="end" end-mode="0">
134         <position x="744.5" y="109.04545454545453"/>
135     </workflow-item>
136
137     <workflow-item name="item0" throw-bind-name="errorText" type="end" end-mode="0">
138         <position x="924.5" y="45.40909090909091"/>
139     </workflow-item>
140
141     <workflow-item name="item4" out-name="item0" type="link" linked-workflow-id="25832524-da3e-407e-a64a-d4418bcb3174">
142         <display-name>info</display-name>
143
144         <in-binding>
145             <bind name="message" type="string" export-name="PlainTextPassword"/>
146         </in-binding>
147
148         <out-binding/>
149
150         <position x="744.5" y="55.40909090909091"/>
151     </workflow-item>
152
153     <workflow-item name="item5" out-name="item8" type="link" linked-workflow-id="2cdac1c6-1c4b-4fd4-aa62-a2736a71f7e7">
154         <display-name>error</display-name>
155
156         <in-binding>
157             <bind name="message" type="string" export-name="errorText"/>
158         </in-binding>
159
160         <out-binding/>
161
162         <position x="464.5" y="119.04545454545453"/>
163     </workflow-item>
164
165     <workflow-item name="item2" out-name="item4" type="task">
166         <display-name>Convert output to secure password string</display-name>
167
168         <script encoded="false">
169 secure_password=outputText;
170 outputText1=outputText;
171         </script>
172
173         <in-binding>
174             <bind name="outputText" type="string" export-name="PlainTextPassword">
175                 <description>Result of running the SSH command</description>
176             </bind>
177         </in-binding>
178
179         <out-binding>
180             <bind name="secure_password" type="SecureString" export-name="secure_password"/>
181             <bind name="outputText1" type="string" export-name="outputText1">
182                 <description>Result of running the SSH command</description>
183             </bind>
184         </out-binding>
185
186         <position x="604.5" y="55.40909090909091"/>
187     </workflow-item>
188
189     <workflow-item name="item3" out-name="item7" type="link" linked-workflow-id="1f0fc470-006c-4c15-a3b9-95e2e7540f22">
190         <display-name>global_parameters</display-name>
191
192         <in-binding/>
193
194         <out-binding>
195             <bind name="mailto" type="string"/>
196             <bind name="smtp_server" type="string"/>
197             <bind name="smtp_port" type="string"/>
198             <bind name="database" type="SQL:Database" export-name="database"/>
199             <bind name="vmPassword" type="SecureString"/>
200             <bind name="ou" type="string"/>
201             <bind name="ad_controll" type="boolean"/>
202             <bind name="ssh_shell_server" type="string" export-name="hostNameOrIP"/>
203         </out-binding>
204
205         <position x="204.5" y="55.40909090909091"/>
206     </workflow-item>
207
208     <presentation/>
209 </workflow>