diff --git a/manifests/package/redhat.pp b/manifests/package/redhat.pp index 4cc34eea9..c4cb3a6ab 100644 --- a/manifests/package/redhat.pp +++ b/manifests/package/redhat.pp @@ -19,6 +19,10 @@ $package_name = 'nginx', ) { + if $caller_module_name != $module_name { + warning("${name} is deprecated as a public API of the ${module_name} module and should no longer be directly included in the manifest.") + } + case $::operatingsystem { 'fedora': { # nginx.org does not supply RPMs for fedora