File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ puppet_version=( ${to_version//./ } )
11
11
puppet_major=${puppet_version[0]}
12
12
case $puppet_major in
13
13
7)
14
- to_collection=puppet7
14
+ to_collection=puppetcore7
15
15
;;
16
16
8)
17
- to_collection=puppet8
17
+ to_collection=puppetcore8
18
18
;;
19
19
* )
20
20
echo " Invalid version supplied" 1>&2
Original file line number Diff line number Diff line change 60
60
} else {
61
61
if $puppet_agent::collection == ' PC1' {
62
62
$source = " ${puppet_agent::yum_source} /${platform_and_version} /${puppet_agent::collection} /${puppet_agent::arch} "
63
+ } elsif $puppet_agent::collection =~ /core/ {
64
+ $_collection = regsubst($puppet_agent::collection , /core/, ' ' )
65
+ $source = " https://yum-puppetcore.puppet.com/${_collection}/${platform_and_version} /${puppet_agent::arch} "
63
66
} else {
64
67
$source = " ${puppet_agent::yum_source} /${puppet_agent::collection} /${platform_and_version} /${puppet_agent::arch} "
65
68
}
Original file line number Diff line number Diff line change 50
50
} else {
51
51
if $puppet_agent::collection == ' PC1' {
52
52
$source = " ${puppet_agent::yum_source} /sles/${facts['os']['release']['major']}/${puppet_agent::collection} /${puppet_agent::arch} "
53
+ } elsif $puppet_agent::collection =~ /core/ {
54
+ $_collection = regsubst($puppet_agent::collection , /core/, ' ' )
55
+ $source = " https://yum-puppetcore.puppet.com/${_collection}/sles/${facts['os']['release']['major']}/${puppet_agent::arch} "
53
56
} else {
54
57
$source = " ${puppet_agent::yum_source} /${puppet_agent::collection} /sles/${facts['os']['release']['major']}/${puppet_agent::arch} "
55
58
}
You can’t perform that action at this time.
0 commit comments