Skip to content

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

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.

https://github.com/puppetlabs/puppetlabs-apt/blob/v7.1.0/templates/proxy.epp#L2
Acquire::http::proxy

DOn't know if case matters here

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