-
Type:
Bug
-
Status: Closed
-
Priority:
Normal
-
Resolution: Fixed
-
Affects Version/s: SERVER 1.0.8
-
Fix Version/s: SERVER 5.0.0
-
Component/s: DOCS, Puppet Server
-
Labels:
-
Environment:
puppet master accesses internet via a proxy server
-
Template:customfield_10700 68270
-
Epic Link:
-
Team:Enterprise in the Cloud
-
Sub-team:
-
Story Points:3
-
Sprint:Server Emerald 2015-05-13, Server Emerald 2015-07-08, Server Emerald 2015-07-22, WC 2016-11-16, WC 2016-11-30
-
CS Priority:Reviewed
-
Release Notes:New Feature
-
Release Notes Summary:
Updated description: puppetserver gem command should use system defined proxies http_proxy, https_proxy, no_proxy, HTTP_PROXY, HTTPS_PROXY, and NO_PROXY environment variables if set and notify the user that it is doing so.
-----------------------------------------------------
Original Description:
Description
When a puppet master must access the internet via a proxy server, it is not possible to use the puppetserver gem command to install gems.
This command is required to be usable to install gems into the JVM for systems such as hiera-eyaml.
Expected result
puppetserver gem command should use system defined proxies http_proxy, https_proxy environment variables if set and notify the user that it is doing so.
Actual result
puppetserver gem install ... fails with a timeout error when attempting to install gems.
Workaround
Take a backup of the file /opt/puppet/share/puppetserver/cli/apps/gem
Edit the file to supply JVM arguments to support http(s) proxies by adding the parameters
- -Dhttps.proxyHost=XXX
- -Dhttp.proxyHost=XXX
- -Dhttp.proxyPort=XXX
- -Dhttps.proxyPort=XXX
Suggested fix
puppetserver 'gem' script defined in /opt/puppet/share/puppetserver/cli/apps/gem should be aware of and re-export formatted (eg with awk) contents of environment variables http_proxy and https_proxy. When doing so it should notify the user by printing a message to the screen.
QA:
Risk Assessment: High
Probability: Medium Low
Severity: High
- relates to
-
SERVER-262 `puppetserver gem env` does not work, useful for troubleshooting
-
- Closed
-
-
SERVER-522 Temporarily undo `puppetserver gem env` fix from SERVER-262
-
- Closed
-
-
SERVER-584 Ability to specify arbitrary values for environment variables in JRuby container
-
- Closed
-
-
SERVER-156 No http client support for http_proxy_host, http_proxy_port, and configtimeout
-
- Closed
-
-
SERVER-540 puppetserver 1.0.8-1puppetlabs1 no longer honours proxy for installing gems
-
- Closed
-
-
SERVER-297 Consolidate environment variable handling behaviors
-
- Closed
-
- links to