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
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.localdomainWrapped 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}")
}