Combine these parameters into a single hash to simplify class parameters and implementation.
Implementation would pass them as default values using splat syntax.
This code
$config_dirs_defaults = {
ensure => 'directory',
* => $config_dirs_defaults,
}
puppet-profile_monitoring/manifests/telegraf.pp
Lines 50 to 52 in 84803a3
Combine these parameters into a single hash to simplify class parameters and implementation.
Implementation would pass them as default values using splat syntax.
This code
puppet-profile_monitoring/manifests/telegraf.pp
Lines 68 to 73 in 84803a3
then becomes:
See also: https://puppet.com/docs/puppet/7/lang_resources.html#lang_resource_syntax-setting-attributes-from-hash