Merge "Allow to send optional values to configuration"

This commit is contained in:
Jenkins 2015-10-09 13:39:16 +00:00 committed by Gerrit Code Review
commit 7959d3d4ca
2 changed files with 5 additions and 0 deletions

View File

@ -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)

View File

@ -6,3 +6,7 @@ trusted-host =
<%= trusted_host %>
<% end -%>
<% end -%>
<% @optional_settings.keys.sort.each do |setting| -%>
<%= setting -%> = <%= @optional_settings[setting] %>
<% end -%>