Puppet Function: rspamd::create_config_file_resources
- Defined in:
- vendor_modules/rspamd/functions/create_config_file_resources.pp
- Function type:
- Puppet Language
Summary
create {rspamd::config} resources from a nested hash (e.g. from hiera)Overview
Function: rspamd::create_config_file_resources()
Create rspamdrspamd::config resources from a nested hash, suitable for conveniently loading values from hiera.
The first level of keys is the config files to be written to, the values being the hierarchical values that will be passed to the create_config_resources function
21 22 23 24 25 26 27 28 |
# File 'vendor_modules/rspamd/functions/create_config_file_resources.pp', line 21
function rspamd::create_config_file_resources(Hash[String, Hash] $configfile_hash, Hash $params = {}) {
$configfile_hash.each |$key, $value| {
$file_params = {
file => $key
} + $params
rspamd::create_config_resources($value, $file_params)
}
}
|