diff --git a/manifests/init.pp b/manifests/init.pp index 62a1537..fb7e870 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -4,6 +4,7 @@ class pip ( $index_url = 'https://pypi.python.org/simple', $trusted_hosts = [], $manage_pip_conf = false, + $optional_settings = {}, ) { include ::pip::params validate_array($trusted_hosts) diff --git a/templates/pip.conf.erb b/templates/pip.conf.erb index caf7976..8477626 100644 --- a/templates/pip.conf.erb +++ b/templates/pip.conf.erb @@ -6,3 +6,7 @@ trusted-host = <%= trusted_host %> <% end -%> <% end -%> + +<% @optional_settings.keys.sort.each do |setting| -%> +<%= setting -%> = <%= @optional_settings[setting] %> +<% end -%>