Lookup function

It's worth mentioning the fact that we should now be using the new lookup() function in our Puppet DSL to retrieve Hiera values. The lookup() function replaces the now deprecated set of Hiera functions:

  • hiera( )
  • hiera_hash( )
  • hiera_array( )
  • hiera_include( )

These each have an equivalent way of achieving the same result, so some fairly simple find-and-replace work on your Puppet DSL code base will soon have you moving away from the deprecated roadmap.

Get Mastering Puppet 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.