Valid since:
XL Deploy 6.0.0

In XL Deploy, a provisioning package is a collection of:

  • Provisionables that contain settings that are needed to provision the environment
  • Provisioners that execute actions in the environment after it is set up
  • Templates that create configuration items (CIs) during the provisioning process

For example, a provisioning package could contain:

  • A provisionable that creates an Amazon Web Services EC2 instance (aws.ec2.InstanceSpec)
  • A Puppet provisioner that installs Apache HTTP Server on the instance (puppet.provisioner.Manifest)
  • Templates that create an SSH host CI (template.overthere.SshHost), a Tomcat server CI (template.tomcat.Server), and a Tomcat virtual host CI (template.tomcat.VirtualHost)

The process of provisioning a cloud-based environment through XL Deploy is very similar to the process of deploying an application. You start by creating an application (udm.Application) that defines the environment that you want to provision. You then create provisioning packages (udm.ProvisioningPackage) that represent specific versions of the environment definition.

Note: A version of this topic is available for XL Deploy 5.5.x.

Step 1 Create an application

To create an application:

  1. In the top bar, click Explorer
  2. In the side bar, hover over Applications, click Menu button, and select New > Application.
  3. In the Name field, enter a unique name for the application.
  4. Click Save.

Step 2 Create a provisioning package

To create a provisioning package:

  1. Hover over the application, click Menu button, and select New > Provisioning Package.
  2. In the Name field, enter the provisioning package version.
  3. Click Save.

Step 3 Add a provisionable to a package

To add a provisionable to a provisioning package:

  1. Hover over the provisioning package, click Menu button, and select the type of provisionable that you want to add. For example, to add an Amazon Web Services EC2 AMI, select aws > ec2.InstanceSpec.
  2. Fill in the provisionable properties. For example, some of the properties for an aws.ec2.instanceSpec are:

    Create new provisionable (aws.ec2.InstanceSpec)

  3. Click Save.

Cardinality in provisionables

If you are using XL Deploy version 7.2.x or earlier, you can use the cardinality functionality that allows you to create multiple provisioneds based on a single provisionable. For example, an aws.ec2.InstanceSpec with a cardinality of 5 will result in five Amazon EC2 instances, all based on the same instance specification. When each provisioned is created, its ordinal will be added to its name, as described in Provision an environment.

It is recommended that you use a placeholder such as NUMBER_OF_TOMCAT_INSTANCES for the cardinality property. You can then enter the number of instances in the provisioning properties when setting up the provisioning.

As of XL Deploy version 7.5.0, the cardinality and ordinal properties are set to hidden=true by default. If you want to use the cardinality functionality, you must modify the properties in the synthetic.xml file. Example of <type-modification> in the synthetic.xml:

  <type-modification type="dummy-provider.Provisionable">
      <property name="cardinality" kind="string" category="Provisioning" description="Number of instances to launch." hidden="false" default="1"/>

  <type type="dummy-provider.Provisioned" extends="udm.BaseProvisioned" deployable-type="dummy-provider.Provisionable"
    <generate-deployable type="dummy-provider.Provisionable" extends="udm.BaseProvisionable"
    <property name="ordinal" kind="integer" required="false" category="output" hidden="false"/>

Step 4 Add a template to a package

To add a template to a provisioning package:

  1. Hover over the provisioning package, click Menu button, select New > Template, and select the type of template that you want to add.

    A template’s type is the same as the type of CI it represents, with a template. prefix. For example, the template type that will create an overthere.SshHost CI is called template.overthere.SshHost.

  2. Fill in the configuration for the template.

    Template properties are inherited from the original CI type, but simple property kinds are mapped to the STRING kind. This allows you to specify placeholders in template properties. XL Deploy resolves the placeholders when it instantiates a CI based on the template.

  3. Click Save.

Note As of XL Deploy 6.2.0, you are not required to create a template for container CIs. All the existing provisioneds that are containers will be added to the target environment after provisioning is done.

Step 5 Add a template as a bound template

For XL Deploy to resolve a template and create a CI based on it, you must add the template as a bound template on a provisioning package (udm.ProvisioningPackage). You can use contextual placeholders in the properties of templates.

Storing generated CIs

CIs that are generated from bound templates are saved in the directory that you specify in the Directory Path property of the target environment; for example, Cloud/EC2/Testing.

Important: The directory that you specify must already exist under Infrastructure and/or Environments (for udm.Dictionary CIs).

Naming generated CIs

The names of CIs that are generated based on templates follow this pattern:



  • The root (in this example, /Infrastructure) is based on the CI type. It can be any repository root name.
  • $DirectoryPath$ is the value specified in the Directory Path property of the target environment.
  • $ProvisioningId$ is the unique provisioning ID that XL Deploy generates.
  • $rootTemplateName$ is the name of the root template, if the template has a root template or is a root template.
  • $templateName$ is the name of the template when it is nested under a root template.

You can change this rule by specifying the optional Instance Name property on the template. The resulting ID would look like:


Creating a hierarchy of templates

Like other CIs, you can create a hierarchy of templates that have a parent-child relationship. You do so by hovering over the parent CI, clicking Menu button, and selecting New > Template. For example, this is a hierarchy of template.overthere.SshHost, template.tomcat.Server, and template.tomcat.VirtualHost CIs:

Hierarchy of CI templates

In this case, you only need to specify the root (parent) of the hierarchy as a bound template. XL Deploy will automatically also create CIs based on the child templates.

Step 6 Add a provisioner to a provisionable

You can optionally add a provisioner such as Puppet to a provisionable:

  1. Hover over the provisionable, click Menu button, select New, then select the type of provisioner that you want to add. For example, to add a Puppet manifest, select provisioner.Manifest.
  2. Fill in the configuration for the provisioner.
  3. Click Save.

Tip: A provisioner must run on a host, so you should first create a host template (for example, template.overthere.SshHost), and then assign it to the provisioner.