package/redhat: correct dependency on package

When $package_name is not 'nginx' the dependency on the package resource would be incorrect.

Probably never an issue in practice since 'nginx' is the package name in the nginx.org repo.
This commit is contained in:
Matthew Haughton 2015-04-08 15:16:53 -04:00
parent e6d1695f82
commit 446ab37979

View file

@ -39,7 +39,7 @@ class nginx::package::redhat (
gpgcheck => '1',
priority => '1',
gpgkey => 'http://nginx.org/keys/nginx_signing.key',
before => Package[$package_name],
before => Package['nginx'],
}
}
'nginx-mainline': {
@ -50,7 +50,7 @@ class nginx::package::redhat (
gpgcheck => '1',
priority => '1',
gpgkey => 'http://nginx.org/keys/nginx_signing.key',
before => Package[$package_name],
before => Package['nginx'],
}
}
default: {