-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Ensure compatibility with Splunk 9.2.0.1 and 9.0.0 #350
Conversation
@siegy22 can you retrigger the CI checks by either closing/reopening this PR or doing the following:
#348 is blocking an upgrade deployment in my environment, I'd troubleshoot the failed checks here to help contribute towards a merge but the logs have since expired. Thanks! |
@luedderd I amended and force pushed, CI is running once again 😄 |
I haven't worked with these kind of Puppet CI tests before but it seems they're failing in all current PRs for a different issue related to the seed admin password. @kenyon @bastelfreak seem to be the most active approvers, is there anything else holding this from being approved/merged? Thanks in advance |
15886b3
to
7b48d2f
Compare
@luedderd I rebased onto my other branch and also added tests. |
With this change, is it still required that net-tools are explicitly installed? puppet-splunk/manifests/forwarder/install.pp Lines 64 to 70 in 069a142
that's really legacy tooling and the rpm should depend on it if it's an actual dependency. Do we need to explicitly install it? |
@bastelfreak Didn't check that yet. It's possible that this is not needed anymore. But I'd down to check that in a separate branch/PR. We need to ensure that Splunk 9.x can be installed and upgraded. As of now, even 8.2 is EOL and thus we should probably set the focus to be 9.x compatible for the future. This change just fixes the URL that is being generated to download splunk. |
We have acceptance tests at: https://github.com/voxpupuli/puppet-splunk/tree/master/spec/acceptance can you add one with the new version so we can verify that it works? |
There seems to be a issue unrelated to this change when installing 9.2.0.1. The package is downloaded and installed correctly (so this change is working) but the default parameters don't make sense with the newer versions. I would suggest opening another PR to test the installation and upgrade of 9.x versions on all the platforms. I can do that. |
shouldn't that go into this PR as well? We currently don't support version 9 at all and this PR now implements it in parts, but it's not really usable because of the wrong parameters? |
8e2a8f7
to
820fe5b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
net-tools
is actually only required for the Splunk Add-on for Unix and Linux, which collects data on hosts where the splunk forwarder is installed, but I think this add-on is typically always installed on hosts where the forwarder is installed. The docs at https://docs.splunk.com/Documentation/AddOns/released/UnixLinux/Requirements say it's only needed on EL 7 and EL 8, but I wonder if that just hasn't been updated to include EL 9 also.
I wonder if we should just remove everything related to net-tools
from this module and leave that up to the user, though.
Related: #308
@kenyon I tried it before with a RHEL 9 instance, installing some 8.x versions and 9.x versions. No issues without having |
dc57ba5
to
4d9807f
Compare
Starting with 9.0.5 Splunk changed the filename of the RPM. It no longer includes "linux-2.6", thus we need to adapt to this change.
Also make sure to not install net-tools for splunk enterprise on Solaris. #335 This was just added to the splunk forwarder, not for splunk enterprise.
@bastelfreak @kenyon Can you review this? |
A fresh install of the module should probably install a current version of Splunk, not an already EOL version like 7.2.4.2 before. Fix user handling: Splunk Enterprise uses "splunk". https://docs.splunk.com/Documentation/Splunk/latest/Installation/RunSplunkasadifferentornon-rootuser Splunk Forwarder used "splunk" until 9.1.0, then they changed it to "splunkfwd", see https://community.splunk.com/t5/Splunk-Enterprise/Why-did-Universal-forwarder-9-1-0-linux-change-owner/m-p/655673
Also include basic testing for old versions: - 7.4.2.4 (EOL) - 8.2.9 (EOL) - 9.0.0
Thanks everyone for working on this! I've tested the forked module and it's worked so far on my handful of testing servers, as soon as this is merged/released I look forward to promoting it to the rest of my node inventory. 🎉 |
Pull Request (PR) description
Multiple fixes/improvements to ensure compatibility to install Splunk 9, due to Splunk 7 and 8 being EOL.
net-tools
starting with Splunk 8Splunk 8 had some issues running inside the GitHub actions container: https://github.com/voxpupuli/puppet-splunk/actions/runs/8328266422/job/22787891637?pr=350#step:6:996 will tackle that in a separate PR.
This Pull Request (PR) fixes the following issues
Fixes #348