Configure apt to retry more on failures

In an attempt to minimize effects of intermittent network failures,
configure apt to retry on failure.

Change-Id: Ic8b2dfe6326aa91873a709f5ef9993e55fbd3af0
This commit is contained in:
Monty Taylor 2014-06-23 12:09:22 -04:00
parent eb7d4d31e2
commit f617fb8577
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1 @@
APT::Acquire::Retries "20";

View File

@ -103,6 +103,14 @@ class openstack_project::base(
key_server => 'pgp.mit.edu', key_server => 'pgp.mit.edu',
} }
file { '/etc/apt/apt.conf.d/80retry':
owner => 'root',
group => 'root',
mode => '0444',
source => 'puppet:///modules/openstack_project/80retry',
replace => true,
}
case $::lsbdistcodename { case $::lsbdistcodename {
'trusty': { 'trusty': {
file { '/etc/apt/preferences.d/00-puppet.pref': file { '/etc/apt/preferences.d/00-puppet.pref':