Increase pip timeout for users behind slow proxies.

Change-Id: I0edf969034d6d8bc327c5e89e4afbe6e1b616a1c
This commit is contained in:
Tim Kuhlman
2014-07-21 08:18:16 -06:00
parent 295606fcff
commit 76f4b56cbe
2 changed files with 16 additions and 1 deletions

View File

@@ -4,6 +4,6 @@ maintainer_email "hpcs-mon@hp.com"
license "All rights reserved"
description "Base setup for all vagrant boxes"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.0.9"
version "0.0.10"
depends "apt"
depends "influxdb"

View File

@@ -31,3 +31,18 @@ apt_repository 'dev' do
components ['release']
key 'https://region-a.geo-1.objects.hpcloudsvc.com/v1/46995959297574/mini-mon/public_repo/mon.gpg'
end
# In some instances when behind a proxy pip times out, increase the timeout
directory "/root/.pip" do
action :create
owner "root"
group "root"
mode "0755"
end
file '/root/.pip/pip.conf' do
action :create
owner "root"
group "root"
mode "0644"
content "[global]\ntimeout = 180\n"
end