Skip to content

Creating new templates

Sergei Pogrebnyak edited this page May 7, 2018 · 10 revisions

Getting started

Let's create sag-mytemplate template!

  1. Create a new branch git checkout -b sag-mytemplate
  2. Create a new folder for the template mkdir templates/sag-mytemplate
  3. Create a new templates/sag-mytemplate/template.yaml file with the initial minimal content like this:
alias: sag-mytemplate
description: My template

environments:
  default:

templates:
  mytemplate:
    fixes: []

layers:
  runtime:
    productRepo: ${repo.product}            # default repository to install products from
    fixRepo:     ${repo.fix}                # default repository to install fixes from
    templates:   
      - mytemplate

provision:
  default:
    runtime: ${nodes} # apply to selected nodes
  1. Create empty templates/sag-mytemplate/env.properties file
  2. Test template application from the project root:
./provisionw sag-mytemplate
Clone this wiki locally