Hi Puppet Users, For some bizzare reason I am unable to use hiera-puppet with a parameterised class.
The output is: ---------------------------- root@hiera hieratest/manifests# puppet apply -e "include hieratest" Error: undefined method `catalog' for #<Hash:0xb6c53d00> at line 1 on node hiera.localdomain Wrapped exception: undefined method `catalog' for #<Hash:0xb6c53d00> Error: undefined method `catalog' for #<Hash:0xb6c53d00> at line 1 on node hiera.localdomain ---------------------------- These are the versions that I am using (taken from the Puppetlabs Debian/Devel): hiera (1.0.0-0.1rc3) hiera-puppet (1.0.0-0.1rc1-1-g3e68ff0) puppet-common (3.0.0-0.1rc3puppetlabs1) puppet (3.0.0-0.1rc3puppetlabs1) Relevant Files: *init.pp file* -------------------- root@hiera hieratest/manifests# cat init.pp class hieratest ( $bar = hiera("foo"), $zoo = hiera("service_default_loc") ) { notice ("Working ...") notice ("Bar == ${bar}") notice ("Module_user == ${zoo}") } ------------------ and *data.pp* file ------------------- root@hiera hieratest/manifests# cat data.pp class hieratest::data { $foo = "Its Working!!!" ### - Server default values ### ------------------- case $::operatingsystem { /(Ubuntu|Debian)/: { $service_default_loc = '/etc/puppet/modules' } } } ------------------- Can anyone see what I have done wrong? I have looked at the hiera-puppet example and cannot for the life of me see anything different. Thanks, Peter -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/eyCarbBMTnsJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.