Sun N1 Service Provisioning System User's Guide for Linux Plug-In 2.0

Capturing and Deploying Linux RPM Files

Deploying Linux applications across your enterprise basically involves two processes:

ProcedureHow to Capture a Linux RPM File

Before you can deploy a file across systems, you have to make the file known to the N1 Service Provisioning System software and wrap it into a component.

Steps
  1. From the main page in the N1 Service Provisioning System browser interface, click Create New Component.

    The Components page appears.

  2. Click the Create link in the Action column.

  3. Type a name for the component.

  4. Select com.sun.linux#RPM file as the component type.

    The platform type changes to system#RedHat Linux - any version.

  5. (Optional) Type a label and description for the component.

  6. Select the host and path name from which to capture the RPM file.

  7. Click Check in.

ProcedureHow to Deploy a Linux RPM File

Steps
  1. Capture the component as described above.

  2. Go to the Components section of the N1 Service Provisioning System application.

  3. Choose the component to deploy.

  4. Click Run in the Actions column next to the Install procedure.

    A plan details page appears for running the installation procedure.

  5. Choose a target host.

    The target host needs to be running a version of the Linux operating system that matches the component to deploy.

  6. For the installPath component variable, specify the location on the target host where you want to install the RPM file. The value for the installPath variable is treated as a relative path to the default Remote Agent directory, unless you specify an absolute path, such as /opt.

  7. For the pkgName component variable, specify the package name that exists in the RPM file.

    On a Linux server, the following command prints the package name.


    # rpm -qp path-of-rpm-file --qf '%{NAME}'

    Note –

    If you do not provide a package name or type the wrong name, the file cannot deploy and an error message displays. Because the stdout message for the failed step displays the actual package name, you can also use the error message to determine what the pkgName component variable should be.


  8. Click Run Plan.

ProcedureHow To Uninstall a Linux RPM File

Steps
  1. Go to the Components section of the N1 Service Provisioning System application.

  2. Choose the component for the RPM that you want to uninstall.

  3. Click Run in the Actions column next to the Uninstall procedure.

    A Plan Details Run page displays for running the uninstallation procedure.

  4. In the Current Installations field, click on the host from which you want to remove the RPM.

  5. Click Run Selected Installations.

    The uninstall plan for the component is displayed.

  6. Click Run Plan (includes preflight).