Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 5 Next »

In CDCM, the Templating feature enables efficient management of configurations. Templates are configurations that have distinct characteristics based on their type and state.

Templates can be used to:

  • Create new configurations.

  • Apply to existing configurations to update or modify them.

Creating a Template Configuration

Creating a template configuration required administrative permissions. The process is described here.

Basic Template use

After a template is created and enabled it can be used to create new configurations via the “add configuration” dialog in a unit:

image-20241002-092337.png

Or it can be used to apply it to a existing configuration in the configuration context menu:

image-20241002-092555.png

Template tailoring

When creating a configuration from a template there are two options after the title for the new configuration was entered and a template configuration was selected.

image-20241204-153030.png

When clicking “create” in the template usage dialog all configuration item that exist in the template configuration will be copied into the newly created configuration.

image-20241204-153538.pngimage-20241204-153628.png

As shown in the image above, when tailoring the template usage process, individual configuration items can be excluded. These will then not be copied from the template configuration. For each excluded configuration item a reason must be given.

Template use protocol

Template usage is documented in a separate tab on the configuration. There it is possible to see which template was used as well as the reasons for excluding configuration items.

image-20241204-154125.png

Baseline types

As described here baseline types are basically a label for configuration items. When using a template the baseline types can indicate if a configuration item came from a template or if it was manually added later.

image-20241204-154540.png

In the image shown above the baseline types that are shown with a blue checkmark were present in those configuration items in the template configuration (e.g. Quality gate A, y and X for “Config Item C”). The baseline types shown with a green checkmark were added manually on this configuration (e.g. Quality gate y in “Config item E”)

Template use and concept types

There are three factors that can influence the outcome when applying a template or using a template to create a new configuration:

  • the concept type of the configuration that was newly created or where the template was applied

  • the configuration concept type property “Associated Configuration Item Type”

  • the configuration concept type property “Associated Configuration Item Type From Template”

The sections shows how each of these influence the resulting configuration when using or applying a template.

Configuration type

The type that a configuration will have when it is created by using a template is not determined by the template. It is configured in the type of the parent units concept type by setting the “Associated Configuration Type” property.

image-20241204-144507.png

This configuration concept type decides which property values from the template will be copied to the new configuration. All property types, complex property types and reference types that appear in both the configuration concept type of the template and in the configuration concept type of the new configuration will be copied when the new configuration is created from the template.

“Associated Configuration Item Type” and “Associated Configuration Item Type From Template”

(warning)This section talks about the two properties “Associated Configuration Item Type” and “Associated Configuration Item Type From Template” and mean the properties on the configuration concept type of new configuration that gets created when using a template. Not on the configuration concept type of the template itself (warning)

The configuration item concept type set in the “Associated Configuration Item Type” property is the type that configuration items have when:

  • they are created manually (so without the template process)

  • they are created via the template use (see section “Template tailoring”) but the “Associated Configuration Item Type From Template” property on the configuration concept type is empty

  • a template is applied to a configuration and there is no configuration item with the same title in the template configuration

If a configuration item concept type is set in the “Associated Configuration Item Type From Template” property in the configuration concept type then configuration items have this type in these two cases:

  • they are created when a new configuration is created from a template

  • they have the same title as a configuration item in the template when a template is applied

The image below illustrates the different scenarios:

image-20241204-151534.png

Steps to Manually Set the Template Protocol

1. Define Template Properties

  • Mark Concept Types as Templates:

    • Set IsTemplate to true during Concept Type creation.

    • Example: A Unit or Configuration Concept Type becomes a template when IsTemplate = true.

  • Define Associated Configuration Types:

    • Assign an Associated Configuration Item Type from Template to ensure correct Concept Type alignment during configuration creation.


2. Create a New Configuration from a Template

  1. Select a Template:

    • From the Configuration Area's associatedTemplates, choose a valid template (state = TEMPLATE_VALID).

    • If only one template is available, it is auto-selected.

  2. Choose Protocol Usage:

    • With Protocol:

      • Users can exclude specific Configuration Items from the new instance.

      • Reasons for exclusions must be documented in the protocol.

    • Without Protocol:

      • All items in the template are included in the new configuration.

  3. Copy Properties and Items:

    • Copy shared properties between the new configuration and the selected template.

    • Include only Configuration Items aligned with the selected Concept Types.

  4. Record Template Protocol:

    • Link the new configuration to the source template.

    • Document usage, exclusions, and tailoring steps.


3. Update a Configuration Using a Template

  1. Match Configuration Items:

    • Use CI titles or types to match existing items with the template.

  2. Update or Add Items:

    • For matched items:

      • Update read-only properties based on the template.

    • For unmatched items:

      • Add new items or update Concept Types as necessary.

  3. Tailor Configuration Items:

    • If using the template protocol, select items to exclude and provide reasons.

    • Create a record of the update process in the template protocol.


4. Maintain the Template Protocol

  • Template Usage Protocol Properties:

    • sourceTemplateId: Reference to the template used.

    • targetConfigurationId: The new or updated configuration.

    • omittedConfigurations: List of excluded items and their reasons.

    • Protocol is inherited during configuration branching or baselining.

  • Customization:

    • External templates can be linked with additional metadata (e.g., source name, link, and protocol details).

    • Internal templates are immutable after assignment.

  • No labels