summaryrefslogtreecommitdiffstats
path: root/roles/openshift_prometheus/tasks
diff options
context:
space:
mode:
authorMichael Gugino <gugino.michael@yahoo.com>2017-11-27 12:01:44 -0500
committerGitHub <noreply@github.com>2017-11-27 12:01:44 -0500
commit9dbcf7bfda85d33f2d0d9653ab5a3cab714b3514 (patch)
tree992cc39ac3453aa322446a076f46b67227487b0b /roles/openshift_prometheus/tasks
parent747224e87c16b0b4329f71c9e6ae74e4f0bb6178 (diff)
parent6ff2765476292a4f166f0093b602ee48b444d502 (diff)
downloadopenshift-9dbcf7bfda85d33f2d0d9653ab5a3cab714b3514.tar.gz
openshift-9dbcf7bfda85d33f2d0d9653ab5a3cab714b3514.tar.bz2
openshift-9dbcf7bfda85d33f2d0d9653ab5a3cab714b3514.tar.xz
openshift-9dbcf7bfda85d33f2d0d9653ab5a3cab714b3514.zip
Merge pull request #6143 from dabelenda/add_hostname_routes
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..ad15dc65f 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_hostname }}"
- name: alerts
+ host: "{{ openshift_prometheus_alerts_hostname }}"
# Storage
- name: create prometheus pvc