Skip to content

Instantly share code, notes, and snippets.

@scottslowe
Created October 10, 2013 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottslowe/6924675 to your computer and use it in GitHub Desktop.
Save scottslowe/6924675 to your computer and use it in GitHub Desktop.
This snippet of Puppet code (which relies upon the Puppet Labs Apt module) will configure apt to use a local Apt proxy (in this example, a local instance of Apt-Cacher-NG).
# Configure apt to use apt-cacher-ng
class {'apt':
proxy_host => 'apt-cacher-ng.example.com',
proxy_port => '3142',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment