aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates
Commit message (Collapse)AuthorAgeFilesLines
* Extract environment building tasks from the JSON templateClement Delafargue2020-06-191-8/+1
|
* Use JSON import for environment variablesClement Delafargue2020-06-191-6/+7
| | | | | | | | The env can be provided as a JSON list `[{"name": "PORT", "value": "8080"}]`. The `dict2items` filter provided by ansible is _almost_ what we want, but it keeps the value original types (a boolean is kept as a boolean in the JSON value). Since environment variables are strings and `clever-tools` does not want to make the implicit coercion for us, we need to do it ourselves.
* fix: there was a bug in the generate env filePaul Bonaud2020-03-241-2/+2
| | | | | Bug Introduced by #57 because the `to_json` filter quotes the given value if it's a string, so the PR was "double quoting" each values.
* vars: fix `clever_base_env` by removing a variable if not necessaryPaul Bonaud2020-03-241-1/+7
| | | | | | The `CC_RUN_COMMAND` variable was defined in case we use haskell binary as entrypoints. However if the `clever_haskell_entry_point` variable is not defined we shouldn't define the `CC_RUN_COMMAND` env variable.
* Quote env vars to support multiline valuesClement Delafargue2019-11-271-1/+1
| | | | | | | | | clever-tools now supports multiline env vars. It did so by supporting quotes in the formats it reads from. This commit quotes the exported values using the `tojson` filter. Of course, a better solution would be for clever env to directly read json value, but it's not there yet
* python3: Change iteritems() to items() to be compatible with py3Paul Bonaud2018-09-211-1/+1
|
* define safe default variable for clever and rename clever_app_tasks to ↵Gaëtan Duchaussois2018-02-261-1/+1
| | | | clever_app_tasks_file
* Migrating single tasks file to a galaxy roleGaëtan Duchaussois2018-02-222-0/+7