diff options
author | Clement Delafargue <clement.delafargue@fretlink.com> | 2020-06-19 11:10:12 +0200 |
---|---|---|
committer | Clement Delafargue <clement.delafargue@fretlink.com> | 2020-06-19 11:36:02 +0200 |
commit | d5b5cb172cd488883e2eac0395dbe4d34ddd7a44 (patch) | |
tree | 9aea4bc0fbeec80e6e72fcf038fa30873bb2d3cb /templates | |
parent | 244339e70a1be830ac02306e1feb4383fe73572b (diff) | |
download | ansible-clever-d5b5cb172cd488883e2eac0395dbe4d34ddd7a44.tar.gz ansible-clever-d5b5cb172cd488883e2eac0395dbe4d34ddd7a44.tar.zst ansible-clever-d5b5cb172cd488883e2eac0395dbe4d34ddd7a44.zip |
Extract environment building tasks from the JSON template
Diffstat (limited to 'templates')
-rw-r--r-- | templates/env.j2 | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/templates/env.j2 b/templates/env.j2 index e97ef43..59f3050 100644 --- a/templates/env.j2 +++ b/templates/env.j2 | |||
@@ -1,10 +1,3 @@ | |||
1 | {% set static_env = clever_base_env | combine(clever_env) %} | ||
2 | {% set dynamic_env = {} %} | ||
3 | {% if clever_haskell_entry_point %} | ||
4 | {# Haskell only #} | ||
5 | {# https://www.clever-cloud.com/doc/get-help/reference-environment-variables/#haskell #} | ||
6 | {% set dynamic_env = { 'CC_RUN_COMMAND': '~/.local/bin/' + clever_haskell_entry_point } %} | ||
7 | {% endif %} | ||
8 | {# dict2items is not enough here, all the values have to be stringified #} | 1 | {# dict2items is not enough here, all the values have to be stringified #} |
9 | {# git-blame this line for more explanations #} | 2 | {# git-blame this line for more explanations #} |
10 | {{ static_env | combine(dynamic_env) | json_env_map | to_json }} | 3 | {{ clever_env | json_env_map | to_json }} |