Adding Hiera data to a module
Modules need default values for their class parameters.
Before, the preferred way to do this was the “params.pp” pattern. With Hiera 5, you can use the “data in modules” approach instead.
The following example shows how to replace params.pp
with the new approach.
The
params.pp
pattern is still valid, and the
features it relies on remain in Puppet. But if
you want to use Hiera data instead, you now have
that option.You must fully qualify Hiera variables for
modules in your YAML file. See Module data with YAML data files .