Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian: Add support for Splunk 9.4 and newer #393

Merged
merged 2 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
1 change: 1 addition & 0 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
OLD_SPLUNK_VERSIONS = [
['7.2.4.2', 'fb30470262e3'],
['9.0.0', '6818ac46f2ec'],
['9.4.0', '6b4ebe426ca6'],
].freeze

configure_beaker do |host|
Expand Down
Loading