1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-14 17:02:25 +00:00

Changes based on feedback to PR

This commit is contained in:
open-dynaMIX
2017-10-18 09:21:13 +02:00
committed by Fabio Rämi
parent cfa506b5cb
commit d609cd8727

View File

@@ -389,17 +389,17 @@ Note that dotdrop uses different delimiters than
## Available variables ## Available variables
### Profile ### Profile
`{{@@ profile @@}}` contains the profile being used. Below in the example you can see how this is useful. `{{@@ profile @@}}` contains the profile provided to dotdrop. Below example shows how it is used.
### Environment variables ### Environment variables
It's possible to access environment variables inside the templates. You can utilize this functionality like this: It's possible to access environment variables inside the templates. This feature can be used like this:
``` ```
{{@@ env['MY_VAR'] @@}} {{@@ env['MY_VAR'] @@}}
``` ```
This allows for storing host-specific properties and/or secrets as environment variables. This allows for storing host-specific properties and/or secrets in environment.
You can have an `.env` file in the directory where your `config.yaml` lies: You can have an `.env` file in the directory where your `config.yaml` lies: