File: apt_configure_proxy.yaml

package info (click to toggle)
cloud-init 20.2-2~deb10u2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,276 kB
  • sloc: python: 69,663; sh: 3,915; makefile: 105; xml: 21
file content (18 lines) | stat: -rw-r--r-- 393 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# Set apt proxy
#
required_features:
  - apt
cloud_config: |
  #cloud-config
  apt:
    proxy: "http://squid.internal:3128"
    http_proxy: "http://squid.internal:3128"
    ftp_proxy: "ftp://squid.internal:3128"
    https_proxy: "https://squid.internal:3128"
collect_scripts:
  90cloud-init-aptproxy: |
    #!/bin/bash
    cat /etc/apt/apt.conf.d/90cloud-init-aptproxy

# vi: ts=4 expandtab