- `clever_token`: clever_cloud token, mandatory.
- `clever_secret`: clever_cloud secret, mandatory.
- `clever_app`: the id of the app to link, mandatory.
+- `clever_entry_point`: the executable name to be executed by clever cloud, mandatory
- `clever_env`: a dict of environment variables for the application (without add_ons one already available), optional.
+- `clever_base_env`: a dict set in vars/main.yml with safe default and mandatory variables for an app to be run on clever. ` clever_base_env | combine(clever_env)` is passed to `clever env` command
- `clever_addons`: a list of dict describing addons enabled for the application from which we would use information during deploy, optional.<br/>
Example: `{ name: pg, env_prefix: POSTGRESQL_ADDON }`
-- `clever_app_tasks`: tasks file to be executed after environment and addons variables where gathered. Specific to an app, should be use to run migrations. Optional.
+- `clever_app_tasks_file`: tasks file to be executed after environment and addons variables where gathered. Specific to an app, should be use to run migrations. Optional.
- `domain`: the domain from which the application should be reachable, optional
- `syslog_server`: UDP Syslog server to be used as UDPSyslog drain for the application, optional. Example: `udp://198.51.100.51:12345`.
- clever-env
- name: Include specific tasks
- include_tasks: "{{ clever_app_tasks }}"
- when: clever_app_tasks is defined
+ include_tasks: "{{ clever_app_tasks_file }}"
+ when: clever_app_tasks_file is defined
tags:
- clever
- clever-specific-role
---
-# vars file for clever
\ No newline at end of file
+# vars file for clever
+clever_base_env:
+ CACHE_DEPENDENCIES: "true"
+ CC_RUN_COMMAND: "~/.local/bin/{{ clever_entry_point }}"
+ ENABLE_METRICS: "false"
+ PORT: "8080"