Deploying a template

Deploy a template in your Managed services environment.

Before you begin

  • VMware templates need to have vmware-tools installed or else the operating system configuration post the deployment is not possible.

Procedure

To deploy a template, follow these steps:

  1. In the navigation bar, click Automate Infrastructure > Library. The library is displayed. Click the Terraform templates tab.

  2. Click the template that you want to deploy.

  3. Read the information about the template and click Deploy.

    You can see the template source code in the Template source tab and the template parameters in the Parameters tab.

  4. Specify the following details to deploy a template:

    • Namespace - Select the namespace from the drop-down list.

      Note: This step is applicable only for globally accessible templates. You cannot change the namespace during deployment for templates that are associated with a namespace.

    • Instance name - Enter a unique name for the instance. The instance name must begin with an alphabet and must have a combination of only these characters: [a-zA-Z][a-zA-Z0-9_-]

    • Cloud Connection - Select the cloud connection from the drop-down list. It is a connection to the cloud provider where you want to deploy the template. The cloud connection list only contains the connections defined for the type of cloud provider where you can deploy the template. For information about cloud connections, see Managing connections.

    • Terraform version - Select the Terraform version from the drop-down list. For information about creating a user defined Terraform version, see Managing Terraform Versions.

    • If you have used shared parameters while defining your template, then in the Select data objects, select the value of all Data Objects associated with the defined Data Types. For the following scenarios, a message is displayed with appropriate information:

      • Your template has an invalid Data Type. A link is provided in the message to edit the template.
      • You do not have any data objects associated with the specified data type. A link is provided in the message to create data objects.
    • If you are deploying enterprise middleware templates from the Enterprise Middleware Repository, select a value for Advanced content runtime Chef. This Advanced content runtime Chef value is a Data Object that is associated to "advanced_content_runtime_chef" Data Type. If you want your advanced content runtime to be available to middleware template deployments that are in a different namespaces, then modify the data object to be globally available by using the following steps:

      1. In the navigation bar, click Automate Infrastructure > Manage. Click the Shared parameters tab.
      2. Open the Data Object in edit mode.
      3. Select the Make data object globally accessible (available to all users) radio button.

      Note: For middleware templates, you can select an Automated Content Runtime that is not deployed on the same cloud provided proper network connectivity exists.

    • Enter all the required deployment parameters. It varies from one template to another based on the definition.

      Note: If you must enter the user ID, then ensure that it corresponds to your operating system and cloud connection. Otherwise, the deployment fails with an error message. For more details, see the General issues section of Troubleshooting deployment issues.

  5. Click Deploy. The template instance window is displayed. The Ready state indicates successful deployment.

    In the template instance window, you can see the instance status, the instance information, the related resource details, and the related input and output variables. You can view or copy the instance logs and you can also access the template from which the instance was deployed.

    Note: Managed services stores the Terraform state file in its database in an encrypted format.