Defined Type: rspamd::ucl::file
- Defined in:
- vendor_modules/rspamd/manifests/ucl/file.pp
Summary
manages a single UCL (Universal Configuration Language) config fileOverview
Class: rspamd::ucl::file
Note:
This class is only for internal use, use rspam::config instead.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'vendor_modules/rspamd/manifests/ucl/file.pp', line 17
define rspamd::ucl::file (
Stdlib::Absolutepath $file = $title,
Optional[String] $comment = undef,
Enum['present', 'absent'] $ensure = 'present',
) {
concat { $file:
owner => 'root',
# Use '0' for compatibity with Linux ("root") and FreeBSD ("wheel")
group => 0,
mode => '0644',
warn => !$comment,
order => 'alpha',
}
if ($comment) {
concat::fragment { "rspamd ${file} UCL config 01 file warning comment":
target => $file,
content => join(suffix(prefix(split($comment, '\n'), '# '), "\n")),
}
}
}
|