Skip to content

Commit

Permalink
Merge pull request #289 from bogdando/fix-MODULES-1631
Browse files Browse the repository at this point in the history
Do not enforce the source value for yum provider
  • Loading branch information
cmurphy committed Jan 12, 2015
2 parents 0813f47 + ced14e7 commit cf30101
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -131,6 +133,8 @@
$real_package_source = ''
}
}
} else { # for yum provider, use the source as is
$real_package_source = $package_source
}

include '::rabbitmq::install'
Expand Down

0 comments on commit cf30101

Please sign in to comment.