InstallLinuxAgent

Microsoft.Unix.SSHCommand.InstallLinuxAgent.WriteAction (WriteActionModuleType)

Installs an agent on a Linux host.

Element properties:

TypeWriteActionModuleType
IsolationAny
AccessibilityPublic
RunAsDefault
InputTypeSystem.BaseData
OutputTypeSystem.BaseData

Member Modules:

ID Module Type TypeId RunAs 
InstallAgent WriteAction Microsoft.Unix.SSHCommand.WriteAction Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
Hoststring$Config/Host$Host
Portstring$Config/Port$Port
UserNamestring$Config/UserName$User Name
Passwordstring$Config/Password$Password
InstallCommandstring$Config/InstallCommand$Install Command
InstallPackagestring$Config/InstallPackage$Install Package
TimeoutSecondsstring$Config/TimeoutSeconds$Timeout in Seconds

Source Code:

<WriteActionModuleType ID="Microsoft.Unix.SSHCommand.InstallLinuxAgent.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="InstallCommand" type="xsd:string"/>
<xsd:element name="InstallPackage" 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="InstallCommand" ParameterType="string" Selector="$Config/InstallCommand$"/>
<OverrideableParameter ID="InstallPackage" ParameterType="string" Selector="$Config/InstallPackage$"/>
<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/InstallCommand$; 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>