-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
STORY:
- we want to use var refs out of a dict but we do not no inside the template which dict keys will be used. so we should have a prerender command to render the template before actualy render it :-)
machineshop render \
--source local \
--template ../golang/machineshop/tests/template-square.yaml \
--brackets square \
--output stdout \
--prerender true \
--prerenderbrackets curly \
--prerendervars "this=[[ .vmConfig_l_cpu ]], andThis= [[ .vmConfig_l_ram]]" \
--defaults /home/sthings/projects/stuttgart-things/packer/environments/labul-pve.yamlTEST
cpu: {{ .this }}
ram: {{ .andThis }}machineshop render --template /tmp/tpl.yaml --source local --values "this={{ .vmConfig_l_cpu }},andThis={{ .vmConfig_l_ram }}"```Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request