Skip to content

Commit

Permalink
Fix gluster deploy checks
Browse files Browse the repository at this point in the history
By default, the version of the gluster image is `latest`, meaning
the use of the version_check filter fails and causes a template error
which ends the playbook run. This simply adds one more check for the
string value.
  • Loading branch information
jimi-c committed Feb 11, 2019
1 parent bcffff2 commit c7c226d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -41,7 +41,7 @@
vars:
is_enterprise: "{{ openshift_deployment_type == 'openshift-enterprise' }}"
version: "{{ (openshift_storage_glusterfs_image | regex_replace('^.*:(v?)(?P<version>.+$)', '\\g<version>')) }}"
is_legacy_ocs_version: "{{ version is version_compare('3.11.1', '<') }}"
is_legacy_ocs_version: "{{ version != 'latest' and version is version_compare('3.11.1', '<') }}"
gluster_use_legacy_ocs: "{{ is_enterprise and is_legacy_ocs_version }}"
host_dev_dir: "{{ '/dev' if gluster_use_legacy_ocs else '/mnt/host-dev' }}"
when: (glusterfs_ds.results.results[0].status is not defined) or
Expand Down

0 comments on commit c7c226d

Please sign in to comment.