diff --git a/manifests/package/redhat.pp b/manifests/package/redhat.pp index 267283926..d833f2293 100644 --- a/manifests/package/redhat.pp +++ b/manifests/package/redhat.pp @@ -31,6 +31,11 @@ 'VirtuozzoLinux' => 'centos', default => 'rhel' } + + $_package_install_options ? { + $manage_repo => '--repo=nginx-release', + default => '', + } if $manage_repo { case $package_source { @@ -104,8 +109,9 @@ } package { 'nginx': - ensure => $package_ensure, - name => $package_name, + ensure => $package_ensure, + name => $package_name, + install_options => $_package_install_options, } }