Browse Source

Add NO_PROXY workaround for container-engine atomic command

Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1450310
Steve Milner 8 years ago
parent
commit
d8916bea88
1 changed files with 4 additions and 0 deletions
  1. 4 0
      roles/docker/tasks/systemcontainer_docker.yml

+ 4 - 0
roles/docker/tasks/systemcontainer_docker.yml

@@ -96,9 +96,13 @@
       set_fact:
         l_docker_image: "{{ l_docker_image_prepend }}/{{ openshift.docker.service_name }}:latest"
 
+# NOTE: no_proxy added as a workaround until https://github.com/projectatomic/atomic/pull/999 is released
 - name: Pre-pull Container Enginer System Container image
   command: "atomic pull --storage ostree {{ l_docker_image }}"
   changed_when: false
+  environment:
+    NO_PROXY: "{{ openshift.common.no_proxy | default('') }}"
+
 
 - name: Ensure container-engine.service.d directory exists
   file: