DepotSoftware - addRpmToDepotByGroupName_1
DepotSoftware - addRpmToDepotByGroupName
Description :
This command adds an RPM to the Depot with the URL mounting options. To add an RPM without having to specify the URL mounting options, use addRpmToDepotByGroupName .
Use the urlTypeName argument to indicate the name of the deployable URL type. urlTypeName can be one of the following:
- FILE_SERVER: Upload source to file server. When you use this option, you cannot use property references in the source location.
- AGENT_COPY_AT_STAGING: Copy to agent at staging.
- AGENT_MOUNT: Agent mounts source for direct use at deployment (no local copy).
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
groupName | String | Full path to the depot group containing the RPM. |
softwareLocation | String | Location of the software package you are adding. This can be either a fully qualified NSH path or a network URL. |
name | String | Display name of the RPM. |
skipCopySource | Boolean | True means do not copy source to undo directory. False means copy source to undo directory. |
urlTypeName | String | Name of the deployable URL type. |
altNSHPath | String | The alternative NSH path to the RPM that contains the system info. |
Example
The following example shows how to add an RPM to the Depot. Note that the location is an NFS path to the RPM, which is applicable when the URL Type is AGENT_MOUNT.
Script
DEPOT_GROUP=/rpm
RPM_LOC=nfs://fileserver1/rpms/custom-db-1.1.0.rpm
RPM_NAME="Install Custom db"
SKIP_COPY_SRC=true
URL_TYPE=AGENT_MOUNT
ALT_NSH_PATH=//filestore1/rpms/custom-db-1.1.0.rpm
`blcli DepotSoftware addRpmToDepotByGroupName $DEPOT_GROUP $RPM_LOC $RPM_NAME $SKIP_COPY_SRC $URL_TYPE $ALT_NSH_PATH`