From 914223acdcfa382721ade8d05bd1627867c31370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Menou?= Date: Tue, 27 Feb 2018 17:22:49 +0100 Subject: ENABLE_METRICS => clever_metrics ; default to false --- README.md | 1 + defaults/main.yml | 2 ++ vars/main.yml | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 365a657..3e5b3d3 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ Variables for the application - `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_metrics`: a boolean to enable or disable metrics support. Optional, default to `false`. Variables specific to deployment, default should be fine: - `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..86fe4e2 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -9,6 +9,8 @@ clever_login_file: "{{ clever_app_confdir }}/login" clever_entry_point: "" clever_extra_env: {} +clever_metrics: false + clever_addons: [] # example # clever_addons: 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 @@ clever_base_env: CACHE_DEPENDENCIES: "true" CC_RUN_COMMAND: "~/.local/bin/{{ clever_entry_point }}" - ENABLE_METRICS: "false" + ENABLE_METRICS: "{{ clever_metrics }}" PORT: "8080" -- cgit v1.2.3