Morning All
I've run into an oddity and have been unable to find satisfaction with Dr. Google, so I thought I'd ask the experts.
I added a defaults yaml for my project (bdp_def.yaml), in which I have some default classes and variables for those classes.
My first class sets up a repo for my project using variables from the defaults file.
Basically it applies a bdp_yum class to all the nodes, and bdp_yum does a hiera lookup for an "enabled" option. The class application and the variable definitions are in the same file.
If I do a hiera call on the command line, I get the expected response:
[root@puppet hieradata]# hiera bdp_yum::enable_bdp_repo ::environment=simp -c /etc/puppet/hiera.yaml
WARN: 2016-09-08 14:35:13 +0000: Not using Hiera::Puppet_logger. It does not report itself to be suitable.
1
However, when puppet runs, it finds the class assignment, but doesn't resolve the variable (I've aliased puppetd to 'puppet agent' ):
[root@puppet hieradata]# puppetd -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find data item bdp_yum::enable_bdp_repo in any Hiera data file and no default supplied at /etc/puppet/modules/bdp_yum/manifests/init.pp:2 on node puppet.rdk.test
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
[root@puppet hieradata]#
It is very strange that both items come from the same file, but puppet isn't finding the variables.
Any help would be appreciated
John