Ask Your Question
0

Learning VM behind proxy?

asked 2015-10-01 07:39:46 -0500

DamDam gravatar image

Hello! I'm learning with the current learning VM (puppet 4.8.1). I deployed it in my company and configured the proxy: /etc/puppetlabs/puppet/puppet.conf [main] (snip) httpproxyhost = myproxy httpproxyport = 8080

And also in /root/.bashrc export httpproxy=http://*myproxy*:8080 export httpsproxy=http://myproxy:8080

This allowed me to download le Graphite module of the "Power of Puppet" quest, but when trying to execute the agent: root@learning ~]# puppet agent --test Warning: Unable to fetch my node definition, but the agent run will continue: Warning: 503 "Service Unavailable" Info: Retrieving pluginfacts Error: /File[/opt/puppetlabs/puppet/cache/facts.d]: Failed to generate additional resources using 'evalgenerate': 503 "Service Unavailable" Error: /File[/opt/puppetlabs/puppet/cache/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet:///pluginfacts: 503 "Service Unavailable" Info: Retrieving plugin Error: /File[/opt/puppetlabs/puppet/cache/lib]: Failed to generate additional resources using 'evalgenerate': 503 "Service Unavailable" Error: /File[/opt/puppetlabs/puppet/cache/lib]: Could not evaluate: Could not retrieve file metadata for puppet:///plugins: 503 "Service Unavailable" Info: Loading facts Error: Could not retrieve catalog from remote server: 503 "Service Unavailable" Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run Error: Could not send report: 503 "Service Unavailable"

I tried without proxy but I get errors too when trying to connec to puppetlabs on the strange port 8140. I'm pretty sure that this port isn't allowed...

How can I manage that?

Thank you!!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-10-09 04:11:19 -0500

You can exclude local IP addresses from going over proxy.

export no_proxy="local,localhost,127.0.0.1,192.168.0.24"

That last one substitute with IP address of your VM ... yes, from facter output :-)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-10-01 07:39:46 -0500

Seen: 1,228 times

Last updated: Oct 01 '15