Issue #15453 has been updated by Justin Brown.

I was having a problem with this, but it seems to work fine in Puppet 2.7.19 
(only version tested). Note that setting the variables in puppet.conf didn't do 
anything.

However, setting http_proxy and https_proxy environment vars worked.


# export http_proxy=http://10.187.255.9:8080
# export https_proxy=http://10.187.255.9:8080

Interestingly, I *had* to specify http://. Otherwise, I got

Error: bad URI(is not URI?): 10.187.255.9:8080
Error: Try 'puppet help module install' for usage

----------------------------------------
Bug #15453: Puppet Module Tool should respect http proxies
https://projects.puppetlabs.com/issues/15453#change-70633

Author: Gary Larizza
Status: Needs More Information
Priority: Normal
Assignee: Ken Barber
Category: module tool
Target version: 
Affected Puppet version: 
Keywords: puppet module tool PMT proxy http_proxy
Branch: 


Filing this bug on behalf of a presales email.  Given the following information:

<pre>
> [root@enxi0003 ~]# head /etc/puppetlabs/puppet/puppet.conf
> [main]
>     vardir = /var/opt/lib/pe-puppet
>     logdir = /var/log/pe-puppet
>     rundir = /var/run/pe-puppet
>     modulepath = 
> /etc/puppetlabs/puppet/modules:/opt/puppet/share/puppet/modules
>     user = pe-puppet
>     group = pe-puppet
>     archive_files = true
>     archive_file_server = enxi0003.eagleaccess.com
>     http_proxy_host = proxy.domain.com
>
> [root@enxi0003 ~]# puppet module install --verbose --debug puppetlabs-ntp
> Preparing to install into /etc/puppetlabs/puppet/modules ...
> Downloading from http://forge.puppetlabs.com ...
> Error: Connection timed out - connect(2)
> Error: Try 'puppet help module install' for usage
>
> [root@proxy ~]# tail /var/log/squid/access.log
> 1341935727.031    122 10.60.99.93 TCP_MISS/200 1947 GET 
> http://forge.puppetlabs.com/api/v1/releases.json? - DIRECT/74.207.228.89 
> application/json
</pre>

It would appear that the PMT doesn't respect the http_proxy_host setting in 
puppet.conf.  The customer also reported setting the HTTP_PROXY environment 
variable, but the PMT doesn't respect that either.  


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to