On Monday, September 3, 2012 5:11:23 PM UTC+1, Aaron Grewell wrote: > > The hiera function works as you described and supports strings, arrays and > hashes. The hiera_array and hiera_hash functions build additive arrays and > hashes that include the values of all matching variables across the entire > hierarchy. For your use case you should use hiera() instead of > hiera_array() >
Really, thats brilliant cheers. Not only does that fix my problem but I can remove a whole load of weird hacks I had in place merging hases together. I also upgraded to hiera 1.0 to try and fix so all good. What is the behaviour regarding hash keys? Would a merged hash that ends up with a duplicate key take the value from higher up the hierarchy? Thanks again, Josh -- 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/-/c3MNQGhVEdYJ. 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.