diff options
author | Tim Bielawa <tbielawa@redhat.com> | 2017-09-06 15:11:55 -0400 |
---|---|---|
committer | Tim Bielawa <tbielawa@redhat.com> | 2017-10-04 10:48:30 -0400 |
commit | 42d330a1cf2990fee39dab36250524ebfb303428 (patch) | |
tree | c285407cbcbb32ee0ed292e98dfdc428db5dc52e /roles/openshift_cfme/tasks/validate.yml | |
parent | a0ba7b469776f7a141d2bb0f26f51e3f1c4b268a (diff) | |
download | openshift-42d330a1cf2990fee39dab36250524ebfb303428.tar.gz openshift-42d330a1cf2990fee39dab36250524ebfb303428.tar.bz2 openshift-42d330a1cf2990fee39dab36250524ebfb303428.tar.xz openshift-42d330a1cf2990fee39dab36250524ebfb303428.zip |
CFME 4.6 work begins. CFME 4.5 references added to the release-3.6 branch
Diffstat (limited to 'roles/openshift_cfme/tasks/validate.yml')
-rw-r--r-- | roles/openshift_cfme/tasks/validate.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/roles/openshift_cfme/tasks/validate.yml b/roles/openshift_cfme/tasks/validate.yml new file mode 100644 index 000000000..61448aa3b --- /dev/null +++ b/roles/openshift_cfme/tasks/validate.yml @@ -0,0 +1,34 @@ +--- +# Validate configuration parameters passed to the openshift_cfme role + +- name: Ensure openshift_cfme_app_template is valid + assert: + that: + - openshift_cfme_app_template in openshift_cfme_app_templates + msg: "openshift_cfme_app_template must be one of {{ openshift_cfme_app_templates | join(', ') }}" + +- name: Ensure openshift_cfme_storage_class is a valid type + assert: + that: + - openshift_cfme_storage_class in openshift_cfme_storage_classes + msg: "openshift_cfme_storage_class must be one of {{ openshift_cfme_storage_classes | join(', ') }}" + +- name: Ensure external NFS storage has a valid NFS server hostname defined + assert: + that: + - openshift_cfme_storage_external_nfs_hostname is not False + msg: The selected storage class 'external' requires a valid hostname for the openshift_cfme_storage_external_nfs_hostname parameter + when: + - openshift_cfme_storage_class == 'external' + +- name: Validate Cloud Provider storage class + assert: + that: + - openshift_cloudprovider_kind == 'aws' or openshift_cloudprovider_kind == 'gce' + msg: | + openshift_cfme_storage_class is 'cloudprovider' but you have an + invalid kind defined. See 'openshift_cloudprovider_kind' in the + example inventories for the required parameters for your + selected cloud provider. Working providers: 'aws' and 'gce'. + when: + - openshift_cloudprovider_kind is defined |