Skip to content

Importing templates library

Sergei Pogrebnyak edited this page May 1, 2018 · 11 revisions

Importing the latest source code

The latest template library is automatically imported when you use SoftwareAG/sagdevops-cc-server project to set up your Command Central server:

git clone --recursive https://github.com/SoftwareAG/sagdevops-cc-server.git
cd sagdevops-cc-server
ant boot -Daccept.license=true
ant up

When the above process completes

  • The sagdevops-cc-server/library/templates folder contains all default templates source code
  • The default templates are imported into your Command Central server and are ready to be used

Importing a release

  • Navigate to the project releases page
  • Download a release source code as .zip, for example, [https://github.com/SoftwareAG/sagdevops-templates/archive/20180401.zip]
  • Unzip the downloaded file
  • Navigate to templates/ subfolder
  • Import the template by running sagcc exec templates composite import -i template.yaml overwrite=true
  • Check the list of imported templates sagcc list templates composite

## Importing individual template file

* Navigate to the library [templates](https://github.com/SoftwareAG/sagdevops-templates/tree/release/102apr2018/templates) subfolder
* Click on the template.yaml file and Raw button. For example [um-server-server.yaml](https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/release/102apr2018/templates/sag-um-server/template.yaml)
* Download the using its url, e.g. `curl -O https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/release/102apr2018/templates/sag-um-server/template.yaml`
* Import the template by running `sagcc exec templates composite import -i template.yaml overwrite=true`
* Check the list of imported templates `sagcc list templates composite`


Next: [[Using default templates]]