diff options
author | Gaƫtan <36162164+gaetanfl@users.noreply.github.com> | 2018-02-28 09:12:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-28 09:12:36 +0100 |
commit | b88999b52391901dc3af45d5eb2ad31a4098ad00 (patch) | |
tree | e6b8e1e8c80f51f8bbcb8531267f92843f0f956f | |
parent | 27722c9241b607cb4ade6396cd4c8a353cf955f1 (diff) | |
parent | e1fc268d7452a774c23243e14adc97a4c256e04b (diff) | |
download | ansible-clever-b88999b52391901dc3af45d5eb2ad31a4098ad00.tar.gz ansible-clever-b88999b52391901dc3af45d5eb2ad31a4098ad00.tar.zst ansible-clever-b88999b52391901dc3af45d5eb2ad31a4098ad00.zip |
Merge pull request #4 from fmenou/metrics-support
Metrics support
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | defaults/main.yml | 4 | ||||
-rw-r--r-- | vars/main.yml | 2 |
3 files changed, 5 insertions, 2 deletions
@@ -25,6 +25,7 @@ Variables for the application | |||
25 | - `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. | 25 | - `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. |
26 | - `domain`: the domain from which the application should be reachable, optional | 26 | - `domain`: the domain from which the application should be reachable, optional |
27 | - `syslog_server`: UDP Syslog server to be used as UDPSyslog drain for the application, optional. Example: `udp://198.51.100.51:12345`. | 27 | - `syslog_server`: UDP Syslog server to be used as UDPSyslog drain for the application, optional. Example: `udp://198.51.100.51:12345`. |
28 | - `clever_metrics`: a boolean to enable or disable metrics support. Optional, default to `false`. | ||
28 | 29 | ||
29 | Variables specific to deployment, default should be fine: | 30 | Variables specific to deployment, default should be fine: |
30 | - `clever_cli_version`: Version of clever cli tools, default to `0.9.3`. | 31 | - `clever_cli_version`: Version of clever cli tools, default to `0.9.3`. |
diff --git a/defaults/main.yml b/defaults/main.yml index 5271a84..66149b0 100644 --- a/defaults/main.yml +++ b/defaults/main.yml | |||
@@ -7,7 +7,9 @@ clever_app_confdir: "{{ clever_app_root }}/.clever_cloud" | |||
7 | clever_login_file: "{{ clever_app_confdir }}/login" | 7 | clever_login_file: "{{ clever_app_confdir }}/login" |
8 | 8 | ||
9 | clever_entry_point: "" | 9 | clever_entry_point: "" |
10 | clever_extra_env: {} | 10 | clever_env: {} |
11 | |||
12 | clever_metrics: false | ||
11 | 13 | ||
12 | clever_addons: [] | 14 | clever_addons: [] |
13 | # example | 15 | # example |
diff --git a/vars/main.yml b/vars/main.yml index 0b7f10a..fa1597b 100644 --- a/vars/main.yml +++ b/vars/main.yml | |||
@@ -3,5 +3,5 @@ | |||
3 | clever_base_env: | 3 | clever_base_env: |
4 | CACHE_DEPENDENCIES: "true" | 4 | CACHE_DEPENDENCIES: "true" |
5 | CC_RUN_COMMAND: "~/.local/bin/{{ clever_entry_point }}" | 5 | CC_RUN_COMMAND: "~/.local/bin/{{ clever_entry_point }}" |
6 | ENABLE_METRICS: "false" | 6 | ENABLE_METRICS: "{{ clever_metrics }}" |
7 | PORT: "8080" | 7 | PORT: "8080" |