About this task
You use the
Command Central command line tool to provision a new environment through
a composite template.
To create a new
environment through a composite template
Procedure
-
Open the Command Prompt or shell
window and change the working directory to the directory that contains the
composite template definition file. For example,
C:\CommandCentral\templates\myTemplate
-
Verify that the local
Command Central command line tool is running with the following command:
sagcc list landscape nodes local -e ONLINE
-
Import the template in
Command Central using the
Templates view in the Command Central web
user interface or the
sagcc exec templates composite import
command. For example:
sagcc exec templates composite import -i template.yaml
-
Optional. Verify that your template
is now registered in
Command Central and listed in the
Templates view. You can also verify with the
sagcc list templates composite
command, for example:
sagcc list templates composite -e myTemplate
-
Apply the template by executing the
sagcc exec templates composite apply
command with the template alias name, for example:
sagcc exec templates composite apply myTemplate -i my.properties
If the composite template definition contains
parameters with variables, you must specify the values for those parameters in
the composite template apply command.
What to do next
You can check the status of the composite template apply job and view
the default.log file in the
Command Central web user interface or using the jobs and log diagnostic
commands of the
Command Central command line tool. For more information see,
Monitoring the Status of a Composite Template.