updated template
diff --git a/templates/pip.conf.j2 b/templates/pip.conf.j2
index c4f0766..36207ee 100644
--- a/templates/pip.conf.j2
+++ b/templates/pip.conf.j2
@@ -1,2 +1,5 @@
 [global]
 index-url = {{ pip_index_url }}
+{% if pip_trusted_hosts is defined %}
+trusted-hosts = {{ pip_trusted_hosts }}
+{% endif %}
\ No newline at end of file