Skip to content

Commit

Permalink
this change is to change the file name of the debian packer after
Browse files Browse the repository at this point in the history
version 9.4.0
it was: -linux-2.6-
if needs to be: -linux-
  • Loading branch information
Peder Pedersen committed Jan 8, 2025
1 parent a1a82eb commit 97f5ad5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,13 @@
default: { $package_provider = undef } # Don't define a $package_provider
}

# Download URLs changed starting from 9.4.0 for debs.
# Splunk only includes "-linux-".
if versioncmp($version, '9.4.0') >= 0 {
$deb_prefix = 'linux'
} else {
$deb_prefix = 'linux-2.6'
}
# Download URLs changed starting from 8.2.11 and 9.0.5 for RPMs.
# Splunk no longer includes "-linux-2.6-".
$linux_prefix = (versioncmp($version, '9.0.5') >= 0 or (versioncmp($version, '8.2.11') >= 0 and versioncmp($version, '9.0.0') == -1)) ? {
Expand Down Expand Up @@ -348,7 +355,7 @@
$enterprise_package_name = 'splunk'
}
'Debian amd64': {
$package_suffix = "${version}-${build}-linux-2.6-amd64.deb"
$package_suffix = "${version}-${build}-${deb_prefix}-amd64.deb"
$forwarder_package_name = 'splunkforwarder'
$enterprise_package_name = 'splunk'
}
Expand Down

0 comments on commit 97f5ad5

Please sign in to comment.