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

Add proxy / environment support for tomcat::install #173

Merged
merged 1 commit into from Dec 23, 2016

Conversation

edestecd
Copy link
Contributor

@edestecd edestecd commented Nov 1, 2016

We need to download tomcat through a corporate web proxy...

@edestecd edestecd changed the title Pass through environment to staging, so we can set a proxy to downloa… Add proxy / environment support for tomcat::install Nov 1, 2016
@edestecd
Copy link
Contributor Author

edestecd commented Nov 3, 2016

Added Documentation for the new environment param...

@tphoney
Copy link
Contributor

tphoney commented Dec 22, 2016

Hi @edestecd. The code looks solid. But i worry about whether or not this will be used by a majority of users of the module. This extra environment variables and setup doesn't feel right in the module itself. I had a look at other modules to see what they did. I was unable to see prior art of this.

I could however be massively wrong.

@edestecd
Copy link
Contributor Author

What other options do we have to set a web proxy for the staging module to use when downloading?

@edestecd
Copy link
Contributor Author

@tphoney Here is one example I can find:
https://github.com/stankevich/puppet-python/blob/master/manifests/pip.pp#L78

If you are using the archive module instead of staging, it has specific params for proxy, which I think are better. This would require a refactor of the tomcat module.
https://github.com/voxpupuli/puppet-php/blob/master/manifests/composer.pp#L30
https://github.com/puppetlabs/puppetlabs-java/blob/master/manifests/oracle.pp#L95

@DavidS
Copy link
Contributor

DavidS commented Dec 23, 2016

@edestecd this is fine for now. Long-term someone needs to migrate tomcat off the staging module to puppet/archive, which has proxy support built in.

@DavidS DavidS merged commit bf5d3ea into puppetlabs:master Dec 23, 2016
@edestecd
Copy link
Contributor Author

Is there a Jira ticket for switching to archive?
I may take this on, or at least make a start of it.

@tphoney
Copy link
Contributor

tphoney commented Dec 23, 2016

@edestecd thanks for the work on this. I will have a search and get back to you. Apologies if i was out of line earlier.

@tphoney
Copy link
Contributor

tphoney commented Dec 23, 2016

@edestecd
Copy link
Contributor Author

@tphoney no worries. Constructive criticism always welcome ;) Using environment for proxy settings is kind of hacky...

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

Successfully merging this pull request may close these issues.

None yet

4 participants