summaryrefslogtreecommitdiffstats
path: root/roles/openshift_prometheus/tasks
diff options
context:
space:
mode:
authorDiego Abelenda <diego.abelenda@camptocamp.com>2017-11-16 15:24:25 +0100
committerDiego Abelenda <diego.abelenda@camptocamp.com>2017-11-24 13:36:30 +0100
commit24a25b94cf1b6b2f19cf12b3c8d54cd2bb0fd696 (patch)
tree4ad3b5fc76fe3be93d45e882d2711e5ff496cf48 /roles/openshift_prometheus/tasks
parentbd5c01de84be6ccedb7e8b00dddfc6e6e3d0bebf (diff)
downloadopenshift-24a25b94cf1b6b2f19cf12b3c8d54cd2bb0fd696.tar.gz
openshift-24a25b94cf1b6b2f19cf12b3c8d54cd2bb0fd696.tar.bz2
openshift-24a25b94cf1b6b2f19cf12b3c8d54cd2bb0fd696.tar.xz
openshift-24a25b94cf1b6b2f19cf12b3c8d54cd2bb0fd696.zip
Allow to set the hostname for routes to prometheus and alertmanager
Diffstat (limited to 'roles/openshift_prometheus/tasks')
-rw-r--r--roles/openshift_prometheus/tasks/install_prometheus.yaml3
1 files changed, 3 insertions, 0 deletions
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