summaryrefslogtreecommitdiffstats
path: root/roles/openshift_prometheus
diff options
context:
space:
mode:
authorDiego Abelenda <diego.abelenda@camptocamp.com>2017-11-20 16:25:46 +0100
committerDiego Abelenda <diego.abelenda@camptocamp.com>2017-11-24 13:36:30 +0100
commit984655cb741278409f065474776b55eec8b75134 (patch)
tree15c8b581407a7c75654c97b53988dc4a8ed0fbff /roles/openshift_prometheus
parent24a25b94cf1b6b2f19cf12b3c8d54cd2bb0fd696 (diff)
downloadopenshift-984655cb741278409f065474776b55eec8b75134.tar.gz
openshift-984655cb741278409f065474776b55eec8b75134.tar.bz2
openshift-984655cb741278409f065474776b55eec8b75134.tar.xz
openshift-984655cb741278409f065474776b55eec8b75134.zip
Change the name of the variable and explicitely document the names
Diffstat (limited to 'roles/openshift_prometheus')
-rw-r--r--roles/openshift_prometheus/README.md4
-rw-r--r--roles/openshift_prometheus/tasks/install_prometheus.yaml2
2 files changed, 4 insertions, 2 deletions
diff --git a/roles/openshift_prometheus/README.md b/roles/openshift_prometheus/README.md
index 9e43da5c3..f1bbb3ca6 100644
--- a/roles/openshift_prometheus/README.md
+++ b/roles/openshift_prometheus/README.md
@@ -25,7 +25,9 @@ For default values, see [`defaults/main.yaml`](defaults/main.yaml).
- `openshift_prometheus_args`: Modify or add arguments for prometheus application
-- `openshift_prometheus_<COMPONENT>_hostname`: specify the hostname for the route of that compontent: defaults to `<COMPONENT>-{{openshift_prometheus_namespace}}.{{openshift_master_default_subdomain}}`
+- `openshift_prometheus_hostname`: specify the hostname for the route to prometheus `prometheus-{{openshift_prometheus_namespace}}.{{openshift_master_default_subdomain}}`
+
+- `openshift_prometheus_alerts_hostname`: specify the hostname for the route to prometheus `prometheus_alerts-{{openshift_prometheus_namespace}}.{{openshift_master_default_subdomain}}`
e.g
```
diff --git a/roles/openshift_prometheus/tasks/install_prometheus.yaml b/roles/openshift_prometheus/tasks/install_prometheus.yaml
index 1241c371a..ad15dc65f 100644
--- a/roles/openshift_prometheus/tasks/install_prometheus.yaml
+++ b/roles/openshift_prometheus/tasks/install_prometheus.yaml
@@ -119,7 +119,7 @@
tls_termination: reencrypt
with_items:
- name: prometheus
- host: "{{ openshift_prometheus_prometheus_hostname }}"
+ host: "{{ openshift_prometheus_hostname }}"
- name: alerts
host: "{{ openshift_prometheus_alerts_hostname }}"