Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

hiera_include('classes') not working in puppet 3.8

$
0
0
Hi, I installed puppet 3.8 and used "hiera_include('classes')", but getting below error. Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find data item classes in any Hiera data file and no default supplied at /etc/puppetlabs/puppet/environments/production/manifests/site.pp:44 on node below is site.pp file /etc/puppetlabs/puppet/environments/production/manifests/site.pp hiera_include('classes') hiera.yaml file etc/environments/production/hiera.yaml --- :backends: - yaml :hierarchy: - defaults - "%{clientcert}" - "%{environment}" - global - 'hieradata/common' :yaml: :datadir: '/etc/puppetlabs/puppet' Below is the maifests /etc/puppetlabs/puppet/environments/production/modules/test.pp class test{ notify {'Hi':} } include test `"puppet agent -t"` compiling catalog without any error if I don't include `"hiera_include('classes')"` in site.pp

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>