summaryrefslogtreecommitdiffstats
path: root/roles/openshift_storage_glusterfs/templates/v3.6/glusterfs-storageclass.yml.j2
diff options
context:
space:
mode:
authorJose A. Rivera <jarrpa@redhat.com>2017-06-14 11:27:56 -0500
committerJose A. Rivera <jarrpa@redhat.com>2017-06-16 17:29:25 -0500
commit3b3c6a33f5cab37d4574182ffe7f756b24d1cbb6 (patch)
tree056ce07b47665fef39f841421e1033d21fd846d9 /roles/openshift_storage_glusterfs/templates/v3.6/glusterfs-storageclass.yml.j2
parent9e00598f97444aa88455c9837ab821312c4eea48 (diff)
downloadopenshift-3b3c6a33f5cab37d4574182ffe7f756b24d1cbb6.tar.gz
openshift-3b3c6a33f5cab37d4574182ffe7f756b24d1cbb6.tar.bz2
openshift-3b3c6a33f5cab37d4574182ffe7f756b24d1cbb6.tar.xz
openshift-3b3c6a33f5cab37d4574182ffe7f756b24d1cbb6.zip
GlusterFS: Allow configuration of heketi port
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Diffstat (limited to 'roles/openshift_storage_glusterfs/templates/v3.6/glusterfs-storageclass.yml.j2')
-rw-r--r--roles/openshift_storage_glusterfs/templates/v3.6/glusterfs-storageclass.yml.j23
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/openshift_storage_glusterfs/templates/v3.6/glusterfs-storageclass.yml.j2 b/roles/openshift_storage_glusterfs/templates/v3.6/glusterfs-storageclass.yml.j2
index 9b8fae310..014c3d870 100644
--- a/roles/openshift_storage_glusterfs/templates/v3.6/glusterfs-storageclass.yml.j2
+++ b/roles/openshift_storage_glusterfs/templates/v3.6/glusterfs-storageclass.yml.j2
@@ -5,6 +5,7 @@ metadata:
name: glusterfs-{{ glusterfs_name }}
provisioner: kubernetes.io/glusterfs
parameters:
- resturl: "http://{{ glusterfs_heketi_url }}:8081"
+ resturl: "http://{% if glusterfs_heketi_is_native %}{{ glusterfs_heketi_route }}{% else %}{{ glusterfs_heketi_url }}:{{ glusterfs_heketi_port }}{% endif %}"
+ restuser: "user"
secretNamespace: "{{ glusterfs_namespace }}"
secretName: "heketi-{{ glusterfs_name }}-user-secret"