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/tasks/install_prometheus.yaml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'roles/openshift_prometheus/tasks') diff --git a/roles/openshift_prometheus/tasks/install_prometheus.yaml b/roles/openshift_prometheus/tasks/install_prometheus.yaml index 50736a9ee..1241c371a 100644 --- a/roles/openshift_prometheus/tasks/install_prometheus.yaml +++ b/roles/openshift_prometheus/tasks/install_prometheus.yaml @@ -113,12 +113,15 @@ oc_route: state: present name: "{{ item.name }}" + host: "{{ item.host }}" namespace: "{{ openshift_prometheus_namespace }}" service_name: "{{ item.name }}" tls_termination: reencrypt with_items: - name: prometheus + host: "{{ openshift_prometheus_prometheus_hostname }}" - name: alerts + host: "{{ openshift_prometheus_alerts_hostname }}" # Storage - name: create prometheus pvc -- cgit v1.2.3