Ask Your Question

hiera_include('classes') not finding classes

asked 2013-06-26 17:20:29 -0500

BaltoStar gravatar image

updated 2013-06-28 13:47:49 -0500

Puppet Agent for Windows , Puppet command prompt :

puppet apply --debug --verbose --modulepath C:\github\myorg\myrepo\modules C:\github\myorg\myrepo\nodes.pp 

Error: Could not find data item classes in any Hiera file and no default supplied at C:/github/myorg/myrepo/nodes.pp on node <a href=""></a>


  - yaml

  - "%{fqdn}"
  - "%{environment}
  - "%{domain}
  - global

:datadir: c:\github\myorg\myrepo\hiera

:merge_behavior: deeper



node '' {

c:\github\myorg\myrepo\hiera\myserver.myenvironment.mydomain ... (more)

edit retag flag offensive close merge delete


In Kelsey Hightower's PuppetConf presentation , he compares Hiera v ENC. At one point he says to never ...(more)

BaltoStar gravatar imageBaltoStar ( 2013-06-26 19:41:56 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-06-28 10:04:08 -0500

GregLarkin gravatar image

updated 2013-06-28 10:06:10 -0500

I don't see any problem with using hiera_include, and it is still referenced in the Puppet 3 user manual.

According to other hiera_include documentation, you want to move that function call outside of your node definition.

Next, I would change your YAML file naming. In your directory c:\github\myorg\myrepo\hiera, you should have the following files:

You are not using "%{environment}" in your hierarchy, but if you were, you would also include an environment.yaml file in that directory.

Finally, simply use site.pp with "puppet apply" instead of nodes.pp ... (more)

edit flag offensive delete link more


Just for brevity, I left out hiera levels environment and domain -- I've edited to include them. I should be able to point "puppet apply" at any nodes def ( nodes ...(more)

BaltoStar gravatar imageBaltoStar ( 2013-06-28 14:42:57 -0500 )edit

You are correct about "puppet apply", but if you ever use master/agent configuration, make sure you have a site.pp for the master to use. Thanks for the clarification ...(more)

GregLarkin gravatar imageGregLarkin ( 2013-06-28 22:46:56 -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


Asked: 2013-06-26 17:20:29 -0500

Seen: 5,732 times

Last updated: Jun 28 '13