-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Description
When I try to use this module on an Ubuntu box, I get:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Class[Apt] is already declared; cannot redeclare (file: /etc/puppetlabs/code/environments/dev/modules/httpproxy/manifests/package/apt.pp, line: 6) (file: /etc/puppetlabs/code/environments/dev/modules/httpproxy/manifests/package/apt.pp, line: 6, column: 3) on node mynode
I couldn't find a similar use of the apt class anywhere else in our Puppet code, but I guess there must be one somewhere. However, setting a proxy for Apt can be achieved by writing a conf.d file instead of stomping over /etc/apt.conf. This method means you can turn proxies on and off at will without affecting anything else that may be configured on the system.
I've created a PR for a patch to do this: #11
Metadata
Metadata
Assignees
Labels
No labels