updated template
diff --git a/templates/pip.conf.j2 b/templates/pip.conf.j2
index 9580fd3..e19e56a 100644
--- a/templates/pip.conf.j2
+++ b/templates/pip.conf.j2
@@ -1,5 +1,8 @@
 [global]
 index-url = {{ pip_index_url }}
+{%  if http_proxy is defined %}
+proxy = {{ http_proxy }}
+{% endif %}
 
 {% if pip_trusted_hosts is defined %}
 [install]