The RHN Registration predefined task is a script used to update the YUM repositories to install Red Hat Enterprise Linux or other Red Hat operating systems that have the Red Hat Network with YUM.

About this task

The predefined task registers the virtual machine with the Red Hat Network using the credentials provided with a machine name VMware_AppDirector_$RANDOM, where $RANDOM is a short string that makes the virtual machine registration unique.

Use the predefined sample task only in a test environment.

Prerequisites

  • Log in to Application Services as an application publisher and deployer.

  • Verify that the predefined task is added to the execution deployment plan before you add any services or application components that require YUM for installing or updating software packages.

  • Verify that Application Services is configured to use a proxy. See Configure Application Services to Use a Proxy for External URLs.

Procedure

  1. On the Application Services title bar, click the drop-down menu and select Applications.
  2. Click the name of the application.

    A list of application versions appears.

  3. Select an application version.
  4. Create a deployment profile.
  5. In the Deployment Profile wizard, follow the prompts to Execution Plan.
  6. If the node is clustered, click Expand Cluster (Expand cluster button).

    If the clustered node is not expanded, the predefined task is added only to the first virtual machine in the cluster.

  7. Click Add Script Task (Add a script task) and drag a predefined task in the blueprint.

    When you drag a predefined task, you see anchors (Task anchor) that indicate where you can drop the predefined task.

    After you drag and drop a predefined task to a node, the Add Custom Task dialog box appears.

  8. Select the predefined task from the Library Task Name drop-down menu.

    The supported operating systems, predefined task details, script, and property details appear.

  9. On the Properties tab, configure the properties.
    1. Select the rhn_username property, enter the username value used to register the virtual machine with the Red Hat Network, and click Save.
    2. Select the rhn_password property, enter the password value used to register the virtual machine with the Red Hat Network, and click Save.
  10. Click OK.

    The RHN Registration predefined task is added to the execution plan.

  11. Review the deployment profile settings and deploy the application.

What to do next

If you have a customized task, you can add it to the Application Services library. See Add a Custom Task to the Library.