Установка агента Unix
Microsoft.Unix.SSHCommand.InstallUnixAgent.WriteAction (WriteActionModuleType)
Установка агента на узле UNIX/Linux.
Element properties:
Member Modules:
Overrideable Parameters:
Source Code:
<WriteActionModuleType ID="Microsoft.Unix.SSHCommand.InstallUnixAgent.WriteAction" Accessibility="Public">
<Configuration>
<xsd:element name="Host" type="xsd:string"/>
<xsd:element name="Port" type="xsd:string" minOccurs="0"/>
<xsd:element name="UserName" type="xsd:string"/>
<xsd:element name="Password" type="xsd:string"/>
<xsd:element name="InstallCommand1" type="xsd:string"/>
<xsd:element name="InstallCommand2" type="xsd:string"/>
<xsd:element name="InstallPackage" type="xsd:string"/>
<xsd:element name="PackageInstance" type="xsd:string"/>
<xsd:element name="TimeoutSeconds" type="xsd:string" minOccurs="0"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="Host" ParameterType="string" Selector="$Config/Host$"/>
<OverrideableParameter ID="Port" ParameterType="string" Selector="$Config/Port$"/>
<OverrideableParameter ID="UserName" ParameterType="string" Selector="$Config/UserName$"/>
<OverrideableParameter ID="Password" ParameterType="string" Selector="$Config/Password$"/>
<OverrideableParameter ID="InstallCommand1" ParameterType="string" Selector="$Config/InstallCommand1$"/>
<OverrideableParameter ID="InstallCommand2" ParameterType="string" Selector="$Config/InstallCommand2$"/>
<OverrideableParameter ID="InstallPackage" ParameterType="string" Selector="$Config/InstallPackage$"/>
<OverrideableParameter ID="PackageInstance" ParameterType="string" Selector="$Config/PackageInstance$"/>
<OverrideableParameter ID="TimeoutSeconds" ParameterType="string" Selector="$Config/TimeoutSeconds$"/>
</OverrideableParameters>
<ModuleImplementation>
<Composite>
<MemberModules>
<WriteAction ID="InstallAgent" TypeID="Microsoft.Unix.SSHCommand.WriteAction">
<Host>$Config/Host$</Host>
<Port>$Config/Port$</Port>
<UserName>$Config/UserName$</UserName>
<Password>$Config/Password$</Password>
<Command>sh /tmp/scx-@@user@@/$Config/InstallPackage$ $Config/InstallCommand1$ $Config/InstallCommand2$; EC=$?; cd /tmp; rm -rf /tmp/scx-@@user@@; exit $EC</Command>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
</WriteAction>
</MemberModules>
<Composition>
<Node ID="InstallAgent"/>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.BaseData</OutputType>
<InputType>System!System.BaseData</InputType>
</WriteActionModuleType>