diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-12-16 16:42:58 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-12-16 16:42:58 -0500 |
commit | 5c84e5972c4e363da1b3b874d7e5af5b1cd2221b (patch) | |
tree | 0f181b03c8e81e5ac070c187d36f3472b4249844 /cloudinit/DataSourceEc2.py | |
parent | 1f292d297e368a8dce0122736aa2d140a275caba (diff) | |
parent | 32e3e2f3d637051fb79f63f791270eeb05bc721b (diff) | |
download | vyos-cloud-init-5c84e5972c4e363da1b3b874d7e5af5b1cd2221b.tar.gz vyos-cloud-init-5c84e5972c4e363da1b3b874d7e5af5b1cd2221b.zip |
add support for reading configuration of mirror and proxy
This adds support for configuration of a mirror by looking
for dns names like 'ubuntu-mirror', and setting a
'apt_mirror_search' configuration variable to find the first
mirror in the list.
Also, allows configuration of an apt proxy via 'apt_proxy'
in cloud-config.
LP: #897688
Diffstat (limited to 'cloudinit/DataSourceEc2.py')
-rw-r--r-- | cloudinit/DataSourceEc2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/DataSourceEc2.py b/cloudinit/DataSourceEc2.py index 0d8f358f..908a29cd 100644 --- a/cloudinit/DataSourceEc2.py +++ b/cloudinit/DataSourceEc2.py @@ -69,7 +69,7 @@ class DataSourceEc2(DataSource.DataSource): if availability_zone == None: availability_zone = self.get_availability_zone() - fallback = 'http://archive.ubuntu.com/ubuntu/' + fallback = None if self.is_vpc(): return fallback |