I'm pretty sure we need more information than that. 1. Is puppet using the proper hiera.yaml? The command line client at least used to use a different config than puppet (/etc/hiera.yaml vs /etc/puppet/hiera.yaml). It sounds like you have this right, if you are able to pull basic variables from your data files.
2. Are you sure that hiera is not working? What have you tried, and what happened when you tried it? Have you looked at http://docs.puppetlabs.com/hiera/1/index.html ? There are examples there. - Chad On Thu, Sep 19, 2013 at 11:53 AM, Jeremiah Jester <[email protected]> wrote: > I've been able to retrieve data from hiera via init.pp from a basic > variable. However, when i try and pull an associative array from hiera, I'm > unable to get the data. I've verified that my yaml syntax is correct by > running hiera via the command line: > > *hiera yaml file > > log_special::log_vars: > a: - 'jklkl' > - 'test' > > *heira via cmd line > [jjest@puppet-master-t1 templates]$ hiera log_special::log_vars > hostname=puppet-client-t1 > {"a"=>["jklkl", "test"]} > > > Anyone know how to pull and parse this from init.pp? Precise code would be > helpful. > > Thanks, > JJ > > -- > 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. -- Chad M. Huneycutt -- 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.
