From e24140eed34fd8776b051030a601fbc133443f81 Mon Sep 17 00:00:00 2001 From: Scott Dodson Date: Wed, 3 Jan 2018 14:53:34 -0500 Subject: Add gluster 3.9 templates --- .../templates/v3.9/glusterfs-registry-endpoints.yml.j2 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 roles/openshift_storage_glusterfs/templates/v3.9/glusterfs-registry-endpoints.yml.j2 (limited to 'roles/openshift_storage_glusterfs/templates/v3.9/glusterfs-registry-endpoints.yml.j2') diff --git a/roles/openshift_storage_glusterfs/templates/v3.9/glusterfs-registry-endpoints.yml.j2 b/roles/openshift_storage_glusterfs/templates/v3.9/glusterfs-registry-endpoints.yml.j2 new file mode 100644 index 000000000..11c9195bb --- /dev/null +++ b/roles/openshift_storage_glusterfs/templates/v3.9/glusterfs-registry-endpoints.yml.j2 @@ -0,0 +1,12 @@ +--- +apiVersion: v1 +kind: Endpoints +metadata: + name: glusterfs-{{ 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 -- cgit v1.2.3