summaryrefslogtreecommitdiffstats
path: root/roles/openshift_storage_glusterfs/templates/v3.9/heketi-endpoints.yml.j2
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2018-01-03 14:54:26 -0500
committerGitHub <noreply@github.com>2018-01-03 14:54:26 -0500
commit9dc230284cd9848fde7f17bf69f1c78b8c20509a (patch)
treeef2863ad9f5b279b467605f8a4e2c366df53cc33 /roles/openshift_storage_glusterfs/templates/v3.9/heketi-endpoints.yml.j2
parent6a3a768d56c1dbc01980511822eb3ebd80130c00 (diff)
parente24140eed34fd8776b051030a601fbc133443f81 (diff)
downloadopenshift-9dc230284cd9848fde7f17bf69f1c78b8c20509a.tar.gz
openshift-9dc230284cd9848fde7f17bf69f1c78b8c20509a.tar.bz2
openshift-9dc230284cd9848fde7f17bf69f1c78b8c20509a.tar.xz
openshift-9dc230284cd9848fde7f17bf69f1c78b8c20509a.zip
Merge pull request #6596 from sdodson/master
Add gluster 3.9 templates
Diffstat (limited to 'roles/openshift_storage_glusterfs/templates/v3.9/heketi-endpoints.yml.j2')
-rw-r--r--roles/openshift_storage_glusterfs/templates/v3.9/heketi-endpoints.yml.j212
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/openshift_storage_glusterfs/templates/v3.9/heketi-endpoints.yml.j2 b/roles/openshift_storage_glusterfs/templates/v3.9/heketi-endpoints.yml.j2
new file mode 100644
index 000000000..99cbdf748
--- /dev/null
+++ b/roles/openshift_storage_glusterfs/templates/v3.9/heketi-endpoints.yml.j2
@@ -0,0 +1,12 @@
+---
+apiVersion: v1
+kind: Endpoints
+metadata:
+ name: heketi-db-{{ glusterfs_name }}-endpoints
+subsets:
+- addresses:
+{% for node in glusterfs_nodes %}
+ - ip: {{ hostvars[node].glusterfs_ip | default(hostvars[node].openshift.common.ip) }}
+{% endfor %}
+ ports:
+ - port: 1