diff options
author | Mangirdas <m.judeikis@gmail.com> | 2017-11-19 18:40:11 +0000 |
---|---|---|
committer | Mangirdas <m.judeikis@gmail.com> | 2017-11-21 07:58:45 +0000 |
commit | e893c818a62665729bcdabe27cf0b3f05937d374 (patch) | |
tree | cdb98fa1cc3a6d60e646f5e6002d793db0312cbe /roles/openshift_sanitize_inventory | |
parent | 71ac647d479768a1e3097a3dde02b9707d175a38 (diff) | |
download | openshift-e893c818a62665729bcdabe27cf0b3f05937d374.tar.gz openshift-e893c818a62665729bcdabe27cf0b3f05937d374.tar.bz2 openshift-e893c818a62665729bcdabe27cf0b3f05937d374.tar.xz openshift-e893c818a62665729bcdabe27cf0b3f05937d374.zip |
Add support for external glusterfs as registry backend
Diffstat (limited to 'roles/openshift_sanitize_inventory')
-rw-r--r-- | roles/openshift_sanitize_inventory/tasks/unsupported.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/roles/openshift_sanitize_inventory/tasks/unsupported.yml b/roles/openshift_sanitize_inventory/tasks/unsupported.yml index b70ab90a1..1c4984467 100644 --- a/roles/openshift_sanitize_inventory/tasks/unsupported.yml +++ b/roles/openshift_sanitize_inventory/tasks/unsupported.yml @@ -40,3 +40,27 @@ openshift_master_dynamic_provisioning_enabled to True and set an openshift_cloudprovider_kind. You can disable this check with 'dynamic_volumes_check=False'. + +#if we have registry backend as glusterfs, and we have clashing configuration. +- name: Ensure the hosted registry's GlusterFS storage is configured correctly + when: + - openshift_hosted_registry_storage_kind | default(none) in ['glusterfs'] + - openshift_hosted_registry_storage_glusterfs_ips is defined and openshift_hosted_registry_storage_glusterfs_ips != '' + - "'glusterfs_registry' in groups | default([])" + fail: + msg: |- + Configuring a value for openshift_hosted_registry_storage_glusterfs_ips and with a glusterfs_registry host group is not allowed. + Specifying a glusterfs_registry host group indicates that a new GlusterFS cluster should be configured, whereas + specifying openshift_hosted_registry_storage_glusterfs_ips indicates wanting to use a pre-configured GlusterFS cluster for the registry storage. + +#if we have registry backend as glusterfs and no gluster specified. +- name: Ensure the hosted registry's GlusterFS storage is configured correctly + when: + - openshift_hosted_registry_storage_kind | default(none) in ['glusterfs'] + - not openshift_hosted_registry_storage_glusterfs_ips is defined + - not 'glusterfs_registry' in groups | default([]) + - not 'glusterfs' in groups | default([]) + fail: + msg: |- + Configuring a value for openshift_hosted_registry_storage_kind=glusterfs without a any glusterfs option is not allowed. + Specify either openshift_hosted_registry_storage_glusterfs_ips variable or glusterfs, glusterfs_registry host groups. |