summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-07-13 10:16:55 -0400
committerGitHub <noreply@github.com>2016-07-13 10:16:55 -0400
commit9f9004ffe1bc112be39c08f91bdbb1793d23c9ba (patch)
tree95a053a5c17630ed6d829ef4b518d175f840e7cb
parent9718c2e21edf8526e268a59c28c2b2fbb8826f7c (diff)
parent6abe909573031ca379f8a904bb7ed57dd7720070 (diff)
downloadopenshift-9f9004ffe1bc112be39c08f91bdbb1793d23c9ba.tar.gz
openshift-9f9004ffe1bc112be39c08f91bdbb1793d23c9ba.tar.bz2
openshift-9f9004ffe1bc112be39c08f91bdbb1793d23c9ba.tar.xz
openshift-9f9004ffe1bc112be39c08f91bdbb1793d23c9ba.zip
Merge pull request #2144 from abutcher/registry-replicas
Set registry replicas = 1 when no storage specified.
-rw-r--r--roles/openshift_hosted/tasks/registry/registry.yml2
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: >