Skip to content

Commit 6a56acb

Browse files
committed
(CAT-2413) Defaults to 8.14.0 for puppetcore agent version if non given
If puppetcore is selected and no version is given, defaults to version 8.14.0 for the Windows agent download. As it is currently, if no version is given this will break as one is required by the download site in order to function. This is intended as a temporary stop gap measure until such time as a permanent solution is found and implemented for the puppetcore downloads as a whole.
1 parent 46101ee commit 6a56acb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tasks/install_powershell.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,16 @@ if ($absolute_source) {
131131
} else {
132132
$dev = ''
133133
}
134+
135+
# If version is not specified, default to 8.14.0
136+
# This is the version that Puppet Core is currently on.
137+
# If the version is specified, it will be used instead.
138+
# This is intended as a tempoary fix until the Puppet Core team
139+
# has a better solution for versioning.
140+
if ($version -eq "" || !$version) {
141+
$version = '8.14.0'
142+
}
143+
134144
$msi_source = "${windows_source}?type=native&version=${version}&os_name=windows&os_version=${major_os_version}&os_arch=${arch}&fips=${fips}${dev}"
135145
} else {
136146
$msi_source = "$windows_source/windows/${collection}/${msi_name}"

0 commit comments

Comments
 (0)