Skip to content

Duplicate declaration: Class[Apt] is already declared #12

@coofercat

Description

@coofercat

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions