How can I use a custom variable in a recipe?
When wanting to use custom variables as part of your recipes there are two important steps that need to be followed:
1) You need to add this variables as either a global or local variable on the VM in question.
2) You need to call the variable in your recipe scripts using the % symbol.
For example if I had created the global variable GATEWAY on my VM and wanted to use echo to show that variable, then in my recipe scripts I would call it like this: