The YUM Repository Config predefined task is a script used for updating the YUM repositories to install or update software on CentOS or other RPM-based operating systems.

You can configure the YUM Repository Config properties to add a new repository or remove all of the existing repositories. If you need more than one repository, you can create multiple tasks and link them in the execution plan by adding one task next to the other.

Use the predefined sample task only in a test environment.

Log in to vCloud Application Director with a user account that belongs to the Default group.

Verify that your user account has the ROLE_DEPLOYER deployer role assigned to it.

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 vCloud Application Director is configured to use a proxy. See Configure vCloud Application Director to Use a Proxy for External URLs.


On the vCloud Application Director title bar, click the drop-down menu and select Applications.


Click the name of the application.

A list of application versions appears.


Select an application version.


Create a deployment profile.


In the Deployment Profile wizard, follow the prompts to Execution Plan.


If the node is clustered, click the Expand Cluster button (Expand cluster button).

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


Click the Add Script Task button (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 opens.


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

The supported operating systems, predefined task details, script, and property details appear in the dialog box.


On the Properties tab, configure the properties.


Select the repository_name property, type a new unique value identifying the repository in the Edit Property dialog box, and click Save.


Select the repository_url property, type a URL value in the Edit Property dialog box, and click Save.

An example of a CentOS 6.3 32-bit URL is


Select the remove_all_repos property and define an appropriate value in the Edit Property dialog box.


Set the value to true to remove all other repositories before adding the new configuration.


Accept the default false value to add a new repository.


Click Save and OK to close the Edit Property dialog box.

The YUM Repository Config predefined task is added to the execution plan.


Review the deployment profile settings and deploy the application.

Consider adding a customized task to the vCloud Application Director catalog. See Add a Custom Task to the Catalog.