Last modified: 2014-10-08 20:15:05 UTC
I noticed on integration-dev.eqiad.wmflabs (and probably everywhere) that apt is configured to point to http://nova.clouds.archive.ubuntu.com/ubuntu/ $ egrep -v '^(#|$)' /etc/apt/sources.list deb http://nova.clouds.archive.ubuntu.com/ubuntu/ precise main deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ precise main deb http://nova.clouds.archive.ubuntu.com/ubuntu/ precise-updates main deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ precise-updates main deb http://nova.clouds.archive.ubuntu.com/ubuntu/ precise universe deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ precise universe deb http://nova.clouds.archive.ubuntu.com/ubuntu/ precise-updates universe deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ precise-updates universe deb http://security.ubuntu.com/ubuntu precise-security main deb-src http://security.ubuntu.com/ubuntu precise-security main deb http://security.ubuntu.com/ubuntu precise-security universe deb-src http://security.ubuntu.com/ubuntu precise-security universe With so many instances around, I guess we will save quite a bunch of bandwidth and latency by pointing to our own mirror: https://launchpad.net/ubuntu/+mirror/ubuntu.wikimedia.org-archive http://ubuntu.wikimedia.org/ubuntu/
Unless I'm doing this wrong, it seems to work. I just had to replace the URLs and then apt-get update -- I tested an nginx install and it worked. $ egrep -v '^(#|$)' /etc/apt/sources.list deb http://ubuntu.wikimedia.org/ubuntu/ trusty main deb-src http://ubuntu.wikimedia.org/ubuntu/ trusty main deb http://ubuntu.wikimedia.org/ubuntu/ trusty-updates main deb-src http://ubuntu.wikimedia.org/ubuntu/ trusty-updates main deb http://ubuntu.wikimedia.org/ubuntu/ trusty universe deb-src http://ubuntu.wikimedia.org/ubuntu/ trusty universe deb http://ubuntu.wikimedia.org/ubuntu/ trusty-updates universe deb-src http://ubuntu.wikimedia.org/ubuntu/ trusty-updates universe deb http://ubuntu.wikimedia.org/ubuntu/ trusty-security main deb-src http://ubuntu.wikimedia.org/ubuntu/ trusty-security main deb http://ubuntu.wikimedia.org/ubuntu/ trusty-security universe deb-src http://ubuntu.wikimedia.org/ubuntu/ trusty-security universe
Yup that would do. We need a puppet patch to adjust the sources.list on all labs instances.
I don't think sources.list comes from puppet, though. At least, I just dropped a test line into mine and it persisted over a puppet run. There's puppet, and sources.list.d, and the original image all involved here. I don't yet know where the changes need to land.
I guess sources.list is the default coming with whatever ubuntu package. We could get puppet to override it entirely maybe?
I think we need both (amend the image + puppet file) so that new instances are built faster and old instances get updated as well. Creating Tools instances takes forever, so if we could at least cut down on the light years to the apt source ... :-)
On second thought and a look at /etc/apt -- shouldn't apt-get already prefer the WMF repo due to /etc/apt/preferences.d/wikimedia{,.pref}?