Skip to content

Can't specify the full URL for apt proxy settings #1234

@ggeldenhuis

Description

@ggeldenhuis

Currently the template(https://github.com/puppetlabs/puppetlabs-apt/blob/main/templates/proxy.epp) statically defines the http and https proxy to be http and https respectively. It should instead allow you to be able to specify the entire proxy value so you can easily make the http proxy in apt a https proxy or otherwise as you choose.

So the following hiera data:

apt::proxy:
  host: 'webproxy.example.com'
  port: 3128
  https: true

results in

Acquire::http::proxy "http://webproxy.example.com:3128";
Acquire::https::proxy "https://webproxy.example.com:3128";

Ideally it should be able to result in:

Acquire::http::proxy "http://webproxy.example.com:3128";
Acquire::https::proxy "http://webproxy.example.com:3128";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions