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
↧