Skip to content

Instantly share code, notes, and snippets.

@artivis
Last active July 4, 2024 08:59
Show Gist options
  • Save artivis/f1b201ae78fd182cc6c6dccd0abd0fa1 to your computer and use it in GitHub Desktop.
Save artivis/f1b201ae78fd182cc6c6dccd0abd0fa1 to your computer and use it in GitHub Desktop.
A cloud-init config to spin an apt proxy
#cloud-config
write_files:
- path: /etc/apt/apt.conf.d/02proxy
content: |
Acquire::http { Proxy "http://127.0.0.1:3142"; };
owner: 'root:root'
permissions: '0755'
defer: true
package_update: true
package_upgrade: true
package_reboot_if_required: true
packages: [apt-cacher-ng]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment