[Bug 1037727] Re: support adding region/availability to mirror selection
Scott Moser
smoser at ubuntu.com
Wed Dec 12 19:14:07 UTC 2012
I verified by getting an image (amd64 20121210), mounting it loopback,
modifying /etc/resolv.conf then:
export DEBIAN_FRONTEND=noninteractive
echo "deb $mirror $rel-proposed main universe" > "/etc/apt/sources.list.d/$rel-proposed.list"
{
apt-get update --assume-yes --quiet &&
apt-get install cloud-init --assume-yes --quiet --option Dpkg::Options::=--force-confold
} </dev/null
Launched an instance of that.
Then:
$ ec2metadata --availability-zone
nova
$ grep "^deb .*ubuntu.*$(lsb_release -sc) main" /etc/apt/sources.list
deb http://nova.clouds.archive.ubuntu.com/ubuntu/ precise main
$ sed -n '/system_info/,$p' /etc/cloud/cloud.cfg
system_info:
package_mirrors:
- arches: [i386, amd64]
failsafe:
primary: http://archive.ubuntu.com/ubuntu
security: http://security.ubuntu.com/ubuntu
search:
primary:
- http://%(ec2_region)s.ec2.archive.ubuntu.com/ubuntu/
- http://%(availability_zone)s.clouds.archive.ubuntu.com/ubuntu/
security: []
- arches: [armhf, armel, default]
failsafe:
primary: http://ports.ubuntu.com/ubuntu-ports
security: http://ports.ubuntu.com/ubuntu-ports
** Tags removed: verification-needed
** Tags added: verification-done
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1037727
Title:
support adding region/availability to mirror selection
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1037727/+subscriptions
More information about the Ubuntu-server-bugs
mailing list