openstack-chef/test/cookbooks/openstack_test/recipes/default.rb

8 lines
336 B
Ruby

# Use OSUOSL mirrors as they are more stable than upstream
execute 'Update /etc/apt/sources.list' do
command 'sed -i -e "s/archive.ubuntu.com/ubuntu.osuosl.org/g" /etc/apt/sources.list'
only_if { node['platform_family'] == 'debian' }
not_if 'grep -q ubuntu.osuosl.org /etc/apt/sources.list'
action :nothing
end.run_action(:run)