Move aside the default sources.list so only hpcloud sources are used.

Besides alerting us to deficiencies of packages in the hpcloud repo this
significantly speeds up the initial chef run when behind a proxy.
This commit is contained in:
Tim Kuhlman 2014-02-20 19:33:02 -07:00
parent a0b6bc0985
commit ab8dfc17a8
1 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,12 @@
# Common setup for all vagrant boxes
# This move the default apt sources which are the standard ubuntu apt ones aside, so we are forced to deal with what hpcloud has mirrored
bash 'move dist sources.list' do
action :run
code 'mv /etc/apt/sources.list /etc/apt/sources.list-dist'
not_if do ::File.exists?('/etc/apt/sources.list-dist') end
end
apt_repository 'foundation' do
uri 'http://packages.dev.uswest.hpcloud.net/cloud/foundation'
arch 'amd64'