> is there a reason you wouldn't change the cla...
# puppet
c
is there a reason you wouldn't change the class
Classes benefit from two things: • Automatic Parameter Lookup, which means parameters automatically get values from Hiera that take precedence over defaults. • Singleton declaration, which means there's no "which instance of the class do you want values for?" question that the Hiera hierarchy is not architected to answer.
postgres::server::grant
is not a class, it is a defined type. Therefore, no automatic parameter lookup, and if you do want to pull values from Hiera, you have to do it by setting parameter defaults to explicitly call
lookup()
or write a wrapper class.