From 24a25b94cf1b6b2f19cf12b3c8d54cd2bb0fd696 Mon Sep 17 00:00:00 2001 From: Diego Abelenda Date: Thu, 16 Nov 2017 15:24:25 +0100 Subject: Allow to set the hostname for routes to prometheus and alertmanager --- roles/openshift_prometheus/defaults/main.yaml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'roles/openshift_prometheus/defaults') diff --git a/roles/openshift_prometheus/defaults/main.yaml b/roles/openshift_prometheus/defaults/main.yaml index 1b4a12cac..d7ec42c47 100644 --- a/roles/openshift_prometheus/defaults/main.yaml +++ b/roles/openshift_prometheus/defaults/main.yaml @@ -4,6 +4,10 @@ openshift_prometheus_state: present openshift_prometheus_namespace: openshift-metrics +# defaults hosts for routes +openshift_prometheus_prometheus_hostname: prometheus-{{openshift_prometheus_namespace}}.{{openshift_master_default_subdomain}} +openshift_prometheus_alerts_hostname: alerts-{{openshift_prometheus_namespace}}.{{openshift_master_default_subdomain}} + openshift_prometheus_node_selector: {"region":"infra"} # additional prometheus rules file -- cgit v1.2.3 From 6f22fa41f0a800190d14d80aa540cc8897a86114 Mon Sep 17 00:00:00 2001 From: Diego Abelenda Date: Mon, 20 Nov 2017 16:29:53 +0100 Subject: Missed the default value after the variable name change... --- roles/openshift_prometheus/defaults/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/openshift_prometheus/defaults') diff --git a/roles/openshift_prometheus/defaults/main.yaml b/roles/openshift_prometheus/defaults/main.yaml index d7ec42c47..df331a4bb 100644 --- a/roles/openshift_prometheus/defaults/main.yaml +++ b/roles/openshift_prometheus/defaults/main.yaml @@ -5,7 +5,7 @@ openshift_prometheus_state: present openshift_prometheus_namespace: openshift-metrics # defaults hosts for routes -openshift_prometheus_prometheus_hostname: prometheus-{{openshift_prometheus_namespace}}.{{openshift_master_default_subdomain}} +openshift_prometheus_hostname: prometheus-{{openshift_prometheus_namespace}}.{{openshift_master_default_subdomain}} openshift_prometheus_alerts_hostname: alerts-{{openshift_prometheus_namespace}}.{{openshift_master_default_subdomain}} openshift_prometheus_node_selector: {"region":"infra"} -- cgit v1.2.3