diff options
author | Andrew Butcher <abutcher@redhat.com> | 2016-07-12 13:16:52 -0400 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2016-07-12 14:12:27 -0400 |
commit | 6abe909573031ca379f8a904bb7ed57dd7720070 (patch) | |
tree | 6cb2e5bf35deb8925a1fab0b9fbcbfbed2be8f13 /roles/openshift_hosted | |
parent | a99b49fb93f1edc4a1c68c472c059e3ed0c91b6b (diff) | |
download | openshift-6abe909573031ca379f8a904bb7ed57dd7720070.tar.gz openshift-6abe909573031ca379f8a904bb7ed57dd7720070.tar.bz2 openshift-6abe909573031ca379f8a904bb7ed57dd7720070.tar.xz openshift-6abe909573031ca379f8a904bb7ed57dd7720070.zip |
Set registry replicas = 1 when no storage specified.
Diffstat (limited to 'roles/openshift_hosted')
-rw-r--r-- | roles/openshift_hosted/tasks/registry/registry.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_hosted/tasks/registry/registry.yml b/roles/openshift_hosted/tasks/registry/registry.yml index be1a172f8..a242ce30f 100644 --- a/roles/openshift_hosted/tasks/registry/registry.yml +++ b/roles/openshift_hosted/tasks/registry/registry.yml @@ -9,7 +9,7 @@ when: openshift.hosted.registry.replicas | default(none) is none - set_fact: - replicas: "{{ openshift.hosted.registry.replicas | default((openshift_hosted_registry_nodes_json.stdout | from_json)['items'] | length) }}" + replicas: "{{ openshift.hosted.registry.replicas | default(((openshift_hosted_registry_nodes_json.stdout | from_json)['items'] | length) if openshift.hosted.registry.storage.kind | default(none) is not none else 1) }}" - name: Create OpenShift registry command: > |