Hi,
I have a simple hiera data file:
# /etc/puppet/hiera/defaults.yaml
---
test:
message: This message brought to you by hiera
I run `sudo hiera test` and get:
{"message"=>"This message brought to you by hiera"}
I then create a test class:
# test.pp
class test ($message) {
notify {"Param is: ${message}":}
}
include test
And try to apply the manifest `sudo puppet apply -d test.pp`, but I get
back the following err:
Debug: hiera(): Hiera YAML backend starting
Debug: hiera(): Looking up test::message in YAML backend
Debug: hiera(): Looking for data source defaults
Debug: hiera(): Looking up test::message in YAML backend
Debug: hiera(): Looking for data source defaults
Error: Could not find data item test::message in any Hiera data file and no
default supplied at /etc/puppet/manifests/test.pp:17 on node node.foo.bar
Error: Could not find data item test::message in any Hiera data file and no
default supplied at /etc/puppet/manifests/test.pp:17 on node node.foo.bar
When I try `sudo hiera test::message`, sure enough, it returns nil.
Can anybody tell me what I am missing?
Thanks,
--
Brian
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.