There doesn't seem to be anything official on how to set up Minemeld to use corporate proxies. When trying to contact external URLs from within minemeld, it does not respect the proxy settings in either /etc/profile or /etc/default. It tries to access the Internet directly, and fails miserably, of course.
How do I make Minemeld hit the proxies?
BTW, I am using CentOS for this installation, but I don't think that should matter much.
Solved! Go to Solution.
please see my answer to your previous thread, /etc/default/minemeld is honored (just remember the "export" command before the vars).
As far as I can figure out, this is related to Minemeld on CentOS 7 only. Works great on Ubuntu.
Would like to hear if anyone has been able to make it work with CentOS and proxies.
CentOS 7 uses systemd, you can use a systemd override to supply environment variables to minemeld service. The following command creates an override for minemeld service and opens an editor where you can edit the override file:
$ sudo systemctl edit minemeld
Copy&paste the following content (change the proxy address first :-)):
[Service] Environment="HTTP_PROXY=http://192.168.55.1:8080" Environment="HTTPS_PROXY=http://192.168.55.1:8080"
$ sudo systemctl restart minemeld
That worked perfectly. But maybe that should be included in the documentation for CentOS7/RHEL7 and Minemeld? It's hard to see how to make it work with a proxy without that nugget of insight.
I also needed to change the sudoers file in order to install behind a proxy, adding:
Defaults env_keep += "http_proxy" Defaults env_keep += "https_proxy"
in order for the environment variables to be kept when ansible does something with elevated privileges.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!
The Live Community thanks you for your participation!