Working with Stack Templates

After creating one or more Stack Providers, as an Administrator you define Stack Templates to map the Stack Providers to the Deployment Target custom types in ARA.

Important! The actions that you can perform depend on your folder permissions. See: Assigning Release Automation Permissions.

This page includes the following:

About Stack Templates

A Stack Template is a description of a physical image. Stack Templates map the images of the external provisioning tools to CDA deployment target custom types. For example, a Tomcat Docker image can be mapped to a deployment target custom type "Tomcat".

Viewing Stack Templates

  1. Navigate to the Release Automation perspective.
  2. Click the Provisioning tab.
  3. Select Stack Templates.

    The Stack Templates list shows the following properties:

    • Name
    • Type: each Stack Template has a type which is selected during creation (Docker, VMware or AWS).

      Important! you cannot change the type of a Stack Template after creation.

    • Deployment Target Type: deployment target template types (endpoints) associated to the Stack Template.
    • Stack Provider: Stack Provider associated to the Stack Template. Stack Providers are the engine which allows to create Stacks based on Stack Templates.
    • Created On
    • Last Modified On

Note: The Stack Templates related to a certain Stack Provider/Blueprint are shown in the Stack Templates list displayed upon selecting the Stack Templates tab of the entity.

Image displaying Stack Templates tab

Tip: For more information about how search for entities and narrow down the results, see Advanced Search.

Creating Stack Templates

  1. Make sure you have added at least one Stack Provider. See: Creating Stack Providers
  2. Go to the Release Automation perspective.
  3. Click the Provisioning accordion tab.
  4. Select Stack Templates.
  5. Click the Create button. The Create Stack Template dialog is displayed.

  6. Enter a name for the Stack Template.
  7. Select a Stack Provider, which has been previously added to the system. For more information see Creating Stack Providers. The template will run on the provider.

    Notes:

    • Only providers with status "connected" can be selected.
    • The Stack Provider type is determined via the selected Stack Provider (see Viewing Custom Types).
  8. Select a folder to store the Stack Template. If no folder is selected, the Stack Template is stored in the default location.
  9. Define one user or user group as template owner. The current user is selected by default.
  10. Click Create. The Properties view of the Stack Template is displayed.
  11. Select the Deployment Target Templates tab.
  12. Click Assign in the toolbar to assign one or more Deployment Target templates. Deployment Target Templates define patterns for children Deployment Targets of the provisioned Environments.

    For example: if a Stack Template describes a virtual machine template containing a Tomcat server running on port 8080, the provisioned Environment is expected to contain a Deployment Target of type “Tomcat” configured with port property set to 8080.

    To model such a case, a Tomcat Deployment Target (for example “Tomcat_1”) should be assigned to the Stack Template, which will serve as a “template” for the created Deployment Targets. On the Deployment Target Template (“Tomcat_1”) all default values for properties you want to be copied into the provisioned Deployment Targets should be set.

    For example: set port to 8080 on the Deployment Target Template “Tomcat_1” if you want to set ports of the children Deployment Targets of the provisioned Environment to 8080.

    If you provision a new Environment, the Deployment Target Templates (for example “Tomcat_1”) of the Stack Templates are cloned into children Deployment Targets (for example “Tomcat_<GUID>”) of the provisioned Environment.

    When a Deployment Target Template is cloned into a child Deployment Target of the provisioned Environment, all (non-protected!) properties of the template (in our example port=8080) are copied into the newly created Deployment Targets.

  13. Select the deployment targets you want to assign and click [OK].

Note: Alternatively, you can create Stack Templates directly from the Stack Templates list displayed upon selecting the Stack Templates tab of a Stack Provider.

Image displaying Stack Templates tab

What to do next:

  1. Creating Blueprints
  2. Provisioning Environments

Changing Properties of a Stack Template

Properties can be changed:

Important!

You can change the following properties:

Duplicating Stack Templates

You can create a duplicate of an existing Stack Template, so that the copy only differs from the original in the referenced image.

To Duplicate Stack Templates

  1. Navigate to Provisioning > Stack Templates.
  2. Select a Stack Template from the list.
  3. Click the Duplicate icon in the toolbar. The Duplicate Stack Template dialog is displayed.
  4. Enter a name for the duplicated Stack Template.
  5. Select a folder to store it.
  6. Click create.

Note: Protected fields (for example, passwords) are not copied over.

Deleting Stack Templates

Note: You may only delete the entity when you have the appropriate permission on the containing folder (see Security Concept in CDA) and all of the listed conditions are met.

Conditions to delete entities of type Stack Template

See also: