From fb9f2062cae9744854f948285a79e1718a5837d1 Mon Sep 17 00:00:00 2001 From: Eric Wolinetz Date: Thu, 28 Sep 2017 08:32:29 -0500 Subject: Addressing tox issues --- roles/openshift_sanitize_inventory/tasks/unsupported.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'roles/openshift_sanitize_inventory/tasks') diff --git a/roles/openshift_sanitize_inventory/tasks/unsupported.yml b/roles/openshift_sanitize_inventory/tasks/unsupported.yml index 9059cf1ea..39bf1780a 100644 --- a/roles/openshift_sanitize_inventory/tasks/unsupported.yml +++ b/roles/openshift_sanitize_inventory/tasks/unsupported.yml @@ -20,13 +20,15 @@ - name: Ensure that dynamic provisioning is set if using dynamic storage when: + - dynamic_volumes_check | default(true) | bool - not openshift_master_dynamic_provisioning_enabled | default(false) | bool - not openshift_cloudprovider_kind is defined - - __using_dynamic | bool + - __using_dynamic is defined and __using_dynamic | bool fail: msg: |- Using a storage kind of 'dynamic' without enabling dynamic provisioning nor setting a cloud provider will cause generated PVCs to not be able to bind as intended. Either update to not use a dynamic storage or set openshift_master_dynamic_provisioning_enabled to True and set an - openshift_cloudprovider_kind. + openshift_cloudprovider_kind. You can disable this check with + 'dynamic_volumes_check=False'. -- cgit v1.2.1