On Tuesday, October 29, 2013 9:21:05 PM UTC-5, William Leese wrote: > > Hi, > > To my surprise hashes passed to class parameters pulled from hiera with > :merge_behavior: deeper, are not merged "as expected", where as hiera_hash > does work "as expected". > > Or to rephrase: they behave differently, despite merge_behavior being set. > >
Per the docs, the :merge_behavior setting affects how hashes are merged in a "hash merge lookup". Not every hiera lookup is a hash merge lookup, and whether a query is of that kind does not depend on the type of the data retrieved. A standard hiera lookup, such as is performed by the ordinary hiera() function, simply returns the highest-priority datum it finds in the data hierarchy. This is what is used for automated class parameter binding. A hash merge lookup, on the other hand, is what you get from the hiera_hash() function. John -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/feb2ce1a-efe5-4b1d-86e2-50d96e0d3c37%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
