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:
parent
eb7d4d31e2
commit
f617fb8577
1
modules/openstack_project/files/80retry
Normal file
1
modules/openstack_project/files/80retry
Normal file
@ -0,0 +1 @@
|
|||||||
|
APT::Acquire::Retries "20";
|
@ -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':
|
||||||
|
Loading…
Reference in New Issue
Block a user