diff options
author | Jose A. Rivera <jarrpa@redhat.com> | 2017-04-17 17:46:14 -0500 |
---|---|---|
committer | Jose A. Rivera <jarrpa@redhat.com> | 2017-05-04 11:44:54 +0200 |
commit | 483870112d3a079709b231f1128b979fc5e60c52 (patch) | |
tree | fb1f428a0f19623321d9d2176428be903963f072 /roles/openshift_storage_glusterfs | |
parent | 1328328522f11db02d526f72df66c424f3dfbfa3 (diff) | |
download | openshift-483870112d3a079709b231f1128b979fc5e60c52.tar.gz openshift-483870112d3a079709b231f1128b979fc5e60c52.tar.bz2 openshift-483870112d3a079709b231f1128b979fc5e60c52.tar.xz openshift-483870112d3a079709b231f1128b979fc5e60c52.zip |
GlusterFS: Allow swapping an existing registry's backend storage
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Diffstat (limited to 'roles/openshift_storage_glusterfs')
-rw-r--r-- | roles/openshift_storage_glusterfs/README.md | 7 | ||||
-rw-r--r-- | roles/openshift_storage_glusterfs/tasks/main.yml | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/roles/openshift_storage_glusterfs/README.md b/roles/openshift_storage_glusterfs/README.md index 3683e8fa4..7b310dbf8 100644 --- a/roles/openshift_storage_glusterfs/README.md +++ b/roles/openshift_storage_glusterfs/README.md @@ -57,6 +57,13 @@ are an exception: | openshift_storage_glusterfs_registry_namespace | registry namespace | Default is to use the hosted registry's namespace, otherwise 'default' | openshift_storage_glusterfs_registry_nodeselector | 'storagenode=registry'| This allows for the logical separation of the registry GlusterFS cluster from any regular-use GlusterFS clusters +Additionally, this role's behavior responds to the following registry-specific +variable: + +| Name | Default value | Description | +|----------------------------------------------|---------------|------------------------------------------------------------------------------| +| openshift_hosted_registry_glusterfs_swap | False | Whether to swap an existing registry's storage volume for a GlusterFS volume | + Dependencies ------------ diff --git a/roles/openshift_storage_glusterfs/tasks/main.yml b/roles/openshift_storage_glusterfs/tasks/main.yml index e2b24198d..ebd8db453 100644 --- a/roles/openshift_storage_glusterfs/tasks/main.yml +++ b/roles/openshift_storage_glusterfs/tasks/main.yml @@ -12,7 +12,7 @@ - include: glusterfs_registry.yml when: - g_glusterfs_registry_hosts | default([]) | count > 0 - - "openshift.hosted.registry.storage.kind == 'glusterfs'" + - "openshift.hosted.registry.storage.kind == 'glusterfs' or openshift.hosted.registry.glusterfs.swap" - name: Delete temp directory file: |