mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-12-16 05:10:36 +00:00
fail if fluentd::config::file gets called from external
This commit is contained in:
parent
540a50ea46
commit
79ab220662
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user