Defined Type: rsyslog::template::string
- Defined in:
- manifests/template/string.pp
Summary
Add template strings to the rsyslog configurationOverview
You’ll need to write the entire template line due to the complexity of the rsyslog configuration parameters.
Leading spaces will be removed.
25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'manifests/template/string.pp', line 25
define rsyslog::template::string (
String $string
) {
$_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}" type="string" string="${string}")
|EOM
#lint:endignore
}
}
|