From 446ab37979a5a3011a7b5e42654f8ec86a12134b Mon Sep 17 00:00:00 2001 From: Matthew Haughton <3flex@users.noreply.github.com> Date: Wed, 8 Apr 2015 15:16:53 -0400 Subject: [PATCH] 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. --- manifests/package/redhat.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/package/redhat.pp b/manifests/package/redhat.pp index 5c95a3684..2b11716e7 100644 --- a/manifests/package/redhat.pp +++ b/manifests/package/redhat.pp @@ -39,7 +39,7 @@ 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 @@ gpgcheck => '1', priority => '1', gpgkey => 'http://nginx.org/keys/nginx_signing.key', - before => Package[$package_name], + before => Package['nginx'], } } default: {