Skip to content

Commit cf30101

Browse files
committed
Merge pull request #289 from bogdando/fix-MODULES-1631
Do not enforce the source value for yum provider
2 parents 0813f47 + ced14e7 commit cf30101

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

manifests/init.pp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@
121121
# $package_source needs to override the constructed value in params.pp
122122
if $package_source { # $package_source was specified by user so use that one
123123
$real_package_source = $package_source
124-
} else { # package_source was not specified, so construct it
124+
# NOTE(bogdando) do not enforce the source value for yum provider #MODULES-1631
125+
} elsif $package_provider != 'yum' {
126+
# package_source was not specified, so construct it, unless the provider is 'yum'
125127
case $::osfamily {
126128
'RedHat', 'SUSE': {
127129
$base_version = regsubst($version,'^(.*)-\d$','\1')
@@ -131,6 +133,8 @@
131133
$real_package_source = ''
132134
}
133135
}
136+
} else { # for yum provider, use the source as is
137+
$real_package_source = $package_source
134138
}
135139

136140
include '::rabbitmq::install'

0 commit comments

Comments
 (0)