Skip to content

Commit

Permalink
warn on inclusion of nginx::package::redhat
Browse files Browse the repository at this point in the history
  • Loading branch information
3flex authored and Matthew Haughton committed Jan 8, 2014
1 parent d7800f4 commit 5309136
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifests/package/redhat.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5309136

Please sign in to comment.