Ask Your Question
0

Learning VM (2016.1.2) fail to pin learning.puppetlabs.vm to group

asked 2016-06-15 11:56:23 -0500

Steve Thorn gravatar image

Hi,

I'm enjoying the learning puppet VM - running on virtualbox. I'm only at the start and it was all going quite nicely. I added a proxy to install graphite, which worked hooray ! e.g.

 vi /etc/puppetlabs/puppet/puppet.conf 
   [main]
...  
    http_proxy_port = 3128  
    http_proxy_ip = MY.HOST.IP.ADDRESS

 puppet module install dwerder-graphite -v 5.16.1

I successfully added the graphite class yay!
However, the next step to pin a node to the node group Learning VM is failing. Here is what I tried 1. The Certname text box does not autofill with 'learning.puppetlabs.vm' so I attempted to run

 root@learning:/etc/puppetlabs # puppet agent -t
  Warning: Unable to fetch my node definition, but the agent run will continue:
  Warning: 500 "Internal Server Error"
  Info: Retrieving pluginfacts
  Error: /File[/opt/puppetlabs/puppet/cache/facts.d]: Failed to generate additional resources using 'eval_generate': 500 "Internal Server Error"
  Error: /File[/opt/puppetlabs/puppet/cache/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet:///pluginfacts: 500 "Internal Server Error"
  Info: Retrieving plugin
  Error: /File[/opt/puppetlabs/puppet/cache/lib]: Failed to generate additional resources using 'eval_generate': 500 "Internal Server Error"
  Error: /File[/opt/puppetlabs/puppet/cache/lib]: Could not evaluate: Could not retrieve file metadata for puppet:///plugins: 500 "Internal Server Error"
   Info: Loading facts
  Error: Could not retrieve catalog from remote server: 500 "Internal Server Error"    
  Warning: Not using cache on failed catalog
  Error: Could not retrieve catalog; skipping run
  Error: Could not send report: 500 "Internal Server Error"

 root@learning:/etc/puppetlabs # quest status
 Quest: power_of_puppet
 √ Task 1: Use the puppet module tool to search for graphite
 √ Task 2: Install the dwerder-graphite module
 √ Task 3: Use facter to find the Learning VM's IP address
 X Task 4: Trigger a puppet agent run to install and configure Graphite

Can you help me to register the node/agent to the master/node group please ?
Many thanks

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2016-06-16 07:07:38 -0500

Steve Thorn gravatar image

updated 2016-06-16 09:27:38 -0500

Ah soooo, both master and agent use http_proxy_..... in the /etc/puppetlabs/puppet/puppet.conf
e.g.
My fix was this

 root@learning: # grep -v http_proxy /etc/puppetlabs/puppet/puppet.conf > /etc/puppetlabs/puppet/puppet-agent.conf
 root@learning: # puppet module install puppetlabs-ntp
 root@learning: # puppet agent -t --config_file_name=puppet-agent.conf

Thank you

edit flag offensive delete link more

Comments

if you define it as an environment value (and you don't define it in the config file) puppet will use it. We have the problem that puppet.conf doesn't have a no_proxy option, so we have to do everything externally to the process

DarylW gravatar imageDarylW ( 2016-06-16 10:00:40 -0500 )edit

Thanks DarylW, yes a command line option like --no-http_proxy_host would have been ideal. The environment value is more '12 factor app' type fix great!

Steve Thorn gravatar imageSteve Thorn ( 2016-06-17 08:56:14 -0500 )edit

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: 2016-06-15 10:12:29 -0500

Seen: 150 times

Last updated: Jun 16 '16