Duplicating a template

Procedure to duplicate Managed services templates.

About the task

  • If you duplicate a template in Git repository, then changes are not done to the Git repository. However, a duplicate of the record is created in Managed services, which points to the same Git repository as the source template. As a result, both the templates point to the same Git repository and a change to the Git repository impacts both the templates.
  • The duplicate template includes copies of all the versions of the source template.

Procedure

  1. In the navigation bar, click Library > Terraform templates. The template library is displayed.

  2. In the overflow menu of the template you want to clone, click Duplicate. Alternatively, you can create a duplicate from the edit page and overview page.

  3. In the Duplicate template page, select either of the following options in Assign access section:

    • Make template Globally Accessible - Templates created globally are accessible by all users.
    • Make template part of a namespace - Associate the template with a specific namespace. For this option, you must select a Namespace from the drop-down list to which the template must be assigned.

    Note: If you create a template in a specific namespace, then only deployments to that namespace can use the template.

  4. Enter the name of the new template.

    Note: Ensure that the name of the template is unique in that namespace for the template. The default name prepopulated is Copy of <name of the original template>.

  5. Click Duplicate.

  6. In the Template metadata and Managed template tabs of the newly created template, enter or modify the details. For more information to update the tabs, see Editing a template.

  7. Click Save. The newly created template is listed in the My templates section of the Template Library.