Installer 10.15 | Complete Installation and Upgrade Information for Software AG Products | Command Central | Using Micro Templates | Creating a User-Defined Micro Template
 
Creating a User-Defined Micro Template
Before you can use micro templates, you must install and configure Command Central as described in this help. You can also use the sagdevops-cc-server project to automate setting up Command Central.
1. Define the micro template YAML definition. See Designing Micro Templates.
You can model the user-defined micro template after a sample micro template, for example see the samples in the sagdevops-templates.git project.
2. Import the user-defined micro templates in Command Central from the Templates view in the Command Central web user interface or with the sagcc exec templates composite import command.
3. Create a layer type definition for the imported micro template:
*In the Command Central web user interface, go to Layer Definitions on the Configuration tab for the Command Central Server that hosts the imported template
*Create an instance of the CCE-LAYER-TYPES configuration type that references the template with the sagcc create configuration data command. For example:
sagcc create configuration data sag01 OSGI-CCE-ENGINE CCE-LAYER-TYPES
--input c:\inputs\layer_data.xml --password secret
The input file specifies layer details, such as the name of the layer type instance, the type of the layer, and the alias of the micro template to which the layer refers. You can also specify if the layer is scalable, that is if you can add more nodes after creating the layer. To determine how to specify the data in the input file, use sagcc get configuration data to retrieve data for the same type of configuration instance you want to create. For example, run the following command to get the configuration data for the CCE-LAYER-TYPES-runtime-existing configuration instance.
sagcc get configuration data local OSGI-CCE-ENGINE RUNTIME-EXISTING --format xml
You can also use a micro template to create the layer type configuration instances. See the sample layer definitions template at sag-cc-layer-defs
After importing the micro templates, you can use them to create layers and add them in a product stack using:
*The Stacks screen in the Command Central web user interface. See Create a Software Stack.
*The CLI stacks and layers commands. See sagcc create stacks and sagcc create stacks layers.