1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-12-16 13:20:35 +00:00

fail if fluentd::config::file gets called from external

This commit is contained in:
Max Wilhelm 2015-12-01 15:29:53 +01:00
parent 540a50ea46
commit 79ab220662

View File

@ -7,6 +7,10 @@ define fluentd::config::file (
$content = undef,
) {
if $caller_module_name != $module_name {
fail("Use of private fluentd::config::file by ${caller_module_name}")
}
$base_name = "${title}.conf"
$config_name = "${priority}-${base_name}"
$base_path = "/etc/td-agent/conf.d"