Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using Apt class to avoid duplicate declaration and use conf.d file to make Apt use the proxy #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

coofercat
Copy link

No description provided.

@edestecd
Copy link
Member

edestecd commented Aug 6, 2020

can you remove the apt module dependency here: https://github.com/MiamiOH/puppet-httpproxy/blob/master/metadata.json#L24

},
file { 'apt_via_proxy':
ensure => $httpproxy::packagemanager::ensure,
path => '/etc/apt/apt.conf.d/05proxy',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/puppetlabs/puppetlabs-apt/blob/v7.1.0/manifests/init.pp#L194

I suggest /etc/apt/apt.conf.d/01proxy so that we don't end up with 2 files when converting and maintain backwards compatability

owner => 'root',
group => 'root',
mode => '0644',
content => "Acquire::http::Proxy \"http://${httpproxy::http_proxy}:${httpproxy::http_proxy_port}\";",
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old way also does an apt::update: https://github.com/puppetlabs/puppetlabs-apt/blob/main/manifests/setting.pp#L63

Are we ok with losing that functionality?

owner => 'root',
group => 'root',
mode => '0644',
content => "Acquire::http::Proxy \"http://${httpproxy::http_proxy}:${httpproxy::http_proxy_port}\";",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants