From ced14e71fe5e281403c20681321995d1e19e6f6a Mon Sep 17 00:00:00 2001 From: Bogdan Dobrelya Date: Fri, 2 Jan 2015 12:48:27 +0100 Subject: [PATCH] Do not enforce the source value for yum provider W/o this issue, source for package is always being constructed as an Internet link in case of RedHat/SUSE. This is a problem as we may want to use no source in case of yum provider. The solution is to not construct the real_package_source for yum provider and use it as is. Closes-bug: #MODULES-1631 Signed-off-by: Bogdan Dobrelya --- manifests/init.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 01bcb3d26..3d25e5078 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -121,7 +121,9 @@ # $package_source needs to override the constructed value in params.pp if $package_source { # $package_source was specified by user so use that one $real_package_source = $package_source - } else { # package_source was not specified, so construct it + # NOTE(bogdando) do not enforce the source value for yum provider #MODULES-1631 + } elsif $package_provider != 'yum' { + # package_source was not specified, so construct it, unless the provider is 'yum' case $::osfamily { 'RedHat', 'SUSE': { $base_version = regsubst($version,'^(.*)-\d$','\1') @@ -131,6 +133,8 @@ $real_package_source = '' } } + } else { # for yum provider, use the source as is + $real_package_source = $package_source } include '::rabbitmq::install'