Ask Your Question
0

production branch deployment not working [closed]

asked 2016-07-19 13:51:56 -0500

Ok, so now the puppet agent run works fine in agent nodes that are configured as sandbox and test in puppet.conf. It brings values from consul and does the expected deployment. But the same won't work in the node that is configured as production in puppet.conf. The error i see is as below:

puppet-agent[30461]: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, Could not find data item service_name in any Hiera data file and no default supplied at /etc/puppetlabs/code/environments/production/modules/nodesetup/manifests/consul.pp:3:16 on node node1.domain.com

How do I get the production branch working? What should i look for in troubleshooting the gaps between the other two branches and this one? Appreciate all the help!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Redsmile
close date 2016-08-08 13:38:23.543059

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-07-19 21:19:18 -0500

DarylW gravatar image

The problem is a failed hiera lookup. Here's an example of debugging hiera by supplying your own value for $enviornment doing the lookups. https://ask.puppet.com/question/3635/...

You also could create some rspec-puppet tests, populate the correct values for any facter facts, and manually work through your given role using your actual hiera data.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2016-07-19 13:51:56 -0500

Seen: 33 times

Last updated: Jul 19 '16