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.
You can model the user-defined micro template after a sample micro template, for example see the samples in the
sagdevops-templates.git project.
3. Create an instance of the CCE-LAYER-TYPES configuration type that references the user-defined micro template with the sagcc create configuration data command. 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:
sagcc get configuration data local OSGI-CCE-ENGINE RUNTIME-EXISTING --format xml to get the configuration data for the
CCE-LAYER-TYPES-runtime-existing configuration instance.
You can also use a micro template to define the layer type configuration instances. See the sample layer definitions template at
https://github.com/SoftwareAG/sagdevops-templates/tree/master/templates/sag-layer-defsAfter creating the micro templates, you can use them to create layers and add them in a product stack using: