-
Notifications
You must be signed in to change notification settings - Fork 73
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
Support JVM proxy settings for Java #124
Comments
I'm afraid that this is impossible to do in a generic way. It totally depends how you invoke the JVM. While many scripts honor So I believe you have to set the JVM parameters via your own provisioner when you configure the application itself. If someone has more insight, please comment and we'll reopen the issue. |
Thanks, @tmatilai. It's unfortunate that there's not a good way to do this in Java; not the fault of vagrant-proxyconf though. 😃 |
@gtback just stumbled over elatsicsearch plugin installation behind a corp proxy as well, and finally found my way here. So there is one thing that seems to work generically, namely the Putting this to
Thought this would be a useful addition to set in the env via vagrant-proxyconf. |
One more thing: this would probably be something that should always be set as part of configure_env_proxy.rb, instead of detecting for java first. Why? Because a common use case is to first install java then run a java app (e.g. the elasticsearch |
Oh, that's interesting! I have never came across that variable before. I'll reopen the issue and wait for a pull request. =) |
We might even want to set
|
@tmatilai +1 for appending (or even better: prepending? -- not sure how java deals with that...) |
It would be great if vagrant-proxyconf could support the
http.proxyHost
,http.proxyPort
, andhttp.nonProxyHosts
(along with HTTPS and FTP) options to the JVM.Ref: http://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html
I'm not sure the best way to set these (via environment variables such as
JAVA_OPTS
, perhaps?), or if they need to be explicitly passed to JVM invocations. I'm not that experienced with either Ruby or Java, but I'm happy to help out any way I can.Background: I'm trying to install ElasticSearch plugins using Ansible (on machines both behind a proxy and not). While I could (and probably will in the short term) manually tweak the command-line invocation of the
plugin
command for proxy environments, it would be great if this was handled transparently by vagrant-proxyconf, which I'm using for other proxy-related settings on this project.The text was updated successfully, but these errors were encountered: