summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-08-06 11:39:26 +0100
committerScott Moser <smoser@ubuntu.com>2013-08-06 11:39:26 +0100
commitdbb2dc51cd351d05d4fd3b74133074877bd647f8 (patch)
treeb7ef1f34b38f991ea88e7f6e2563e48cedceeb6e /doc
parent2e4d57b867b71831270655956d06a8e14793a8f3 (diff)
parent9661db0561ff15b888f681a44d9aa02a17de074c (diff)
downloadvyos-cloud-init-dbb2dc51cd351d05d4fd3b74133074877bd647f8.tar.gz
vyos-cloud-init-dbb2dc51cd351d05d4fd3b74133074877bd647f8.zip
add options for apt_ftp_proxy, apt_https_proxy and apt_config
This adds ability to explicitly set http, https, ftp proxy for apt. Also generically adds ability to give a apt config. apt-config could be done via write_files, but this is more specific to it. LP: #1057195
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/cloud-config-TODO.txt20
-rw-r--r--doc/examples/cloud-config.txt3
2 files changed, 3 insertions, 20 deletions
diff --git a/doc/examples/cloud-config-TODO.txt b/doc/examples/cloud-config-TODO.txt
deleted file mode 100644
index c7ed54ab..00000000
--- a/doc/examples/cloud-config-TODO.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-# Add apt configuration files
-# Add an apt.conf.d/ file with the relevant content
-#
-# See apt.conf man page for more information.
-#
-# Defaults:
-# + filename: 00-boot-conf
-#
-apt_conf:
-
- # Creates an apt proxy configuration in /etc/apt/apt.conf.d/01-proxy
- - filename: "01-proxy"
- content: |
- Acquire::http::Proxy "http://proxy.example.org:3142/ubuntu";
-
- # Add the following line to /etc/apt/apt.conf.d/00-boot-conf
- # (run debconf at a critical priority)
- - content: |
- DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt -p critical|| true";
-
diff --git a/doc/examples/cloud-config.txt b/doc/examples/cloud-config.txt
index 24b4b36c..bcfd7917 100644
--- a/doc/examples/cloud-config.txt
+++ b/doc/examples/cloud-config.txt
@@ -53,6 +53,9 @@ apt_mirror_search:
apt_mirror_search_dns: False
# apt_proxy (configure Acquire::HTTP::Proxy)
+# 'apt_http_proxy' is an alias for 'apt_proxy'.
+# Also, available are 'apt_ftp_proxy' and 'apt_https_proxy'.
+# These affect Acquire::FTP::Proxy and Acquire::HTTPS::Proxy respectively
apt_proxy: http://my.apt.proxy:3128
# apt_pipelining (configure Acquire::http::Pipeline-Depth)