Hi Guys,
I am trying to setup a new puppet environment using hiera and have
everything setup. However, when I do a puppet agent run I get the
following 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/puppet/environments/production/manifests/site.pp:26 on node
resmesostst01.gene.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
--
I am running puppet version 3.8.7. Here is my site.pp:
--
# cat /etc/puppet/environments/production/manifests/site.pp | grep -v
'#' | sed '/^$/d'
filebucket { 'main':
server => '
resforetst01.gene.com',
path => false,
}
File { backup => 'true' }
Package { allow_virtual => true }
node default {
hiera_include('classes')
}
notify { 'debug_location': name => "THE NODE LOCATION IS: ${location}" }
notify { 'debug_environment': name => "THE NODE ENVIRONMENT IS:
${environment}" }
notify { 'debug_ype': name => "THE NODE TYPE IS: ${pr_type}" }
notify { 'debug_hostgroup': name => "THE NODE HOST GROUP IS: ${hostgroup}" }
--
Here is my hiera.yaml:
--
[root@resforetst01 production]# cat /etc/puppet/hiera.yaml | grep -v '#'
---
:backends:
- yaml
:hierarchy:
- "node/%{::fqdn}"
- "role/%{::hostgroup}"
- "type/%{::pr_type}"
- "site/%{::domain}"
- common
:yaml:
:datadir: "/etc/puppet/environments/%{::environment}/hieradata"
:logger: console
--
Any clues on what I seem to be missing?
Thanks!