Defined Type: rsyslog::template::plugin
- Defined in:
- manifests/template/plugin.pp
Summary
Add template plugins to the rsyslog configuration file.Overview
NOTE: Plugins are as-is. This means that you will only supply the plugin name and assume that the plugin has already been loaded by RSyslog.
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'manifests/template/plugin.pp', line 23
define rsyslog::template::plugin (
String $plugin,
) {
$_safe_name = regsubst($name,'/','__')
rsyslog::rule { "05_simp_templates/${_safe_name}.conf":
# lint:ignore:double_quoted_strings lint:ignore:only_variable_string
content => @("EOM")
template(name="${_safe_name}" plugin="string" plugin="${plugin}")
|EOM
# lint:endignore
}
}
|