diff --git a/modules/openstack_project/files/80retry b/modules/openstack_project/files/80retry new file mode 100644 index 0000000000..8ebe6de130 --- /dev/null +++ b/modules/openstack_project/files/80retry @@ -0,0 +1 @@ +APT::Acquire::Retries "20"; diff --git a/modules/openstack_project/manifests/base.pp b/modules/openstack_project/manifests/base.pp index 25e4ededd4..8bea6325be 100644 --- a/modules/openstack_project/manifests/base.pp +++ b/modules/openstack_project/manifests/base.pp @@ -103,6 +103,14 @@ class openstack_project::base( 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 { 'trusty': { file { '/etc/apt/preferences.d/00-puppet.pref':