summaryrefslogtreecommitdiffstats
path: root/roles/docker/tasks
diff options
context:
space:
mode:
authorOpenShift Bot <eparis+openshiftbot@redhat.com>2017-09-06 12:47:20 -0400
committerGitHub <noreply@github.com>2017-09-06 12:47:20 -0400
commit4effa70d5a7f9612de1cbedf18a5d682a9849dee (patch)
tree31a9e4976e2b21b8726af93eae4ebcb3e6452f9c /roles/docker/tasks
parent6fc8a058fb5f359f6c980dbdc9543b7a03a47ef9 (diff)
parentc0a018ed3a9f9dacc9a9e29fdd18a66d6fab6e85 (diff)
downloadopenshift-4effa70d5a7f9612de1cbedf18a5d682a9849dee.tar.gz
openshift-4effa70d5a7f9612de1cbedf18a5d682a9849dee.tar.bz2
openshift-4effa70d5a7f9612de1cbedf18a5d682a9849dee.tar.xz
openshift-4effa70d5a7f9612de1cbedf18a5d682a9849dee.zip
Merge pull request #5202 from giuseppe/crio-additional-registries
Merged by openshift-bot
Diffstat (limited to 'roles/docker/tasks')
-rw-r--r--roles/docker/tasks/systemcontainer_crio.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/docker/tasks/systemcontainer_crio.yml b/roles/docker/tasks/systemcontainer_crio.yml
index 787f51f94..451b8498f 100644
--- a/roles/docker/tasks/systemcontainer_crio.yml
+++ b/roles/docker/tasks/systemcontainer_crio.yml
@@ -3,6 +3,15 @@
- set_fact:
l_insecure_crio_registries: "{{ '\"{}\"'.format('\", \"'.join(openshift.docker.insecure_registries)) }}"
when: openshift.docker.insecure_registries
+- set_fact:
+ l_crio_registries: "{{ openshift.docker.additional_registries + ['docker.io'] }}"
+ when: openshift.docker.additional_registries
+- set_fact:
+ l_crio_registries: "{{ ['docker.io'] }}"
+ when: not openshift.docker.additional_registries
+- set_fact:
+ l_additional_crio_registries: "{{ '\"{}\"'.format('\", \"'.join(l_crio_registries)) }}"
+ when: openshift.docker.additional_registries
- name: Ensure container-selinux is installed
package: