-
Notifications
You must be signed in to change notification settings - Fork 70
Creating new templates
Sergei Pogrebnyak edited this page May 7, 2018
·
10 revisions
Let's create sag-mytemplate
template!
- Create a new branch
git checkout -b sag-mytemplate
- Create a new folder for the template
mkdir templates/sag-mytemplate
- 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
- Create empty
templates/sag-mytemplate/env.properties
file - Test template application from the project root:
./provisionw sag-mytemplate