Skip to content

Commit

Permalink
Merge pull request #393 from muncjack/master
Browse files Browse the repository at this point in the history
Debian: Add support for Splunk 9.4 and newer
  • Loading branch information
bastelfreak authored Jan 9, 2025
2 parents a1a82eb + 4ec8fb8 commit acbd76e
Show file tree
Hide file tree
Showing 2 changed files with 9 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
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

0 comments on commit acbd76e

Please sign in to comment.