Browse Source

Merge pull request #7237 from jarrpa/glusterfs-kernel-mod-fix

GlusterFS: Check for groups in template file
Scott Dodson 7 years ago
parent
commit
3efd30b3b5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      roles/openshift_storage_glusterfs/templates/glusterfs.conf.j2

+ 2 - 2
roles/openshift_storage_glusterfs/templates/glusterfs.conf.j2

@@ -2,7 +2,7 @@
 dm_thin_pool
 dm_multipath
 target_core_user
-{% if inventory_hostname in groups.glusterfs or inventory_hostname in groups.glusterfs_registry %}
+{% if (groups.glusterfs is defined and inventory_hostname in groups.glusterfs) or (groups.glusterfs_registry is defined and inventory_hostname in groups.glusterfs_registry) %}
 dm_snapshot
 dm_mirror
-{% endif %}
+{% endif %}