summaryrefslogtreecommitdiffstats
path: root/roles/docker/tasks/main.yml
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2017-10-23 05:57:11 -0700
committerGitHub <noreply@github.com>2017-10-23 05:57:11 -0700
commitcd53b726430977bdd5cab772765bae3aed149727 (patch)
treeec892f1a529e56acfb6c389a4900231ae72d53be /roles/docker/tasks/main.yml
parentd7cfb9e1a33d1637946aa10af5329290784ab41f (diff)
parent2e5d7a6a848f20cccf3cf6d38aad4d9a9c80b922 (diff)
downloadopenshift-cd53b726430977bdd5cab772765bae3aed149727.tar.gz
openshift-cd53b726430977bdd5cab772765bae3aed149727.tar.bz2
openshift-cd53b726430977bdd5cab772765bae3aed149727.tar.xz
openshift-cd53b726430977bdd5cab772765bae3aed149727.zip
Merge pull request #5818 from ashcrow/1503860
Automatic merge from submit-queue. docker: Move enterprise registry from pkg to main
Diffstat (limited to 'roles/docker/tasks/main.yml')
-rw-r--r--roles/docker/tasks/main.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml
index f73f90686..5ea73568a 100644
--- a/roles/docker/tasks/main.yml
+++ b/roles/docker/tasks/main.yml
@@ -10,6 +10,15 @@
l_use_crio: "{{ openshift_use_crio | default(False) }}"
l_use_crio_only: "{{ openshift_use_crio_only | default(False) }}"
+- name: Add enterprise registry, if necessary
+ set_fact:
+ l2_docker_additional_registries: "{{ l2_docker_additional_registries + [openshift_docker_ent_reg] }}"
+ when:
+ - openshift.common.deployment_type == 'openshift-enterprise'
+ - openshift_docker_ent_reg != ''
+ - openshift_docker_ent_reg not in l2_docker_additional_registries
+ - not l_use_crio_only
+
- name: Use Package Docker if Requested
include: package_docker.yml
when: