diff --git a/manifests/config/file.pp b/manifests/config/file.pp index 40f4e26..21d7943 100644 --- a/manifests/config/file.pp +++ b/manifests/config/file.pp @@ -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"