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 /doc | |
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 'doc')
-rw-r--r-- | doc/examples/cloud-config.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/examples/cloud-config.txt b/doc/examples/cloud-config.txt index 73a5e099..e73b8743 100644 --- a/doc/examples/cloud-config.txt +++ b/doc/examples/cloud-config.txt @@ -17,7 +17,33 @@ apt_upgrade: true # # Default: auto select based on cloud metadata # in ec2, the default is <region>.archive.ubuntu.com +# apt_mirror: +# use the provided mirror +# apt_mirror_search: +# search the list for the first mirror. +# this is currently very limited, only verifying that +# the mirror is dns resolvable or an IP address +# +# if neither apt_mirror nor apt_mirror search is set (the default) +# then use the mirror provided by the DataSource found. +# In EC2, that means using <region>.ec2.archive.ubuntu.com +# +# if no mirror is provided by the DataSource, then search +# for dns names '<distro>-mirror' in each of +# - fqdn of this host per cloud metadata +# - localdomain +# - no domain (which would search domains listed in /etc/resolv.conf) +# That gives the cloud provider the opportunity to set mirrors of a distro +# up and expose them only by creating dns entries. +# +# if none of that is found, then the default distro mirror is used apt_mirror: http://us.archive.ubuntu.com/ubuntu/ +apt_mirror_search: + - http://local-mirror.mydomain + - http://archive.ubuntu.com + +# apt_proxy (configure Acquire::HTTP::Proxy) +apt_proxy: http://my.apt.proxy:3128 # Preserve existing /etc/apt/sources.list # Default: overwrite sources_list with mirror. If this is true |