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

Module does not work with Splunk 7.1.x or 7.2.x #213

Closed
rbclark opened this issue Jan 29, 2019 · 6 comments · Fixed by #215
Closed

Module does not work with Splunk 7.1.x or 7.2.x #213

rbclark opened this issue Jan 29, 2019 · 6 comments · Fixed by #215

Comments

@rbclark
Copy link
Contributor

rbclark commented Jan 29, 2019

In Splunk 7.1 and above, Splunk has removed the splunk service.

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.10.12
  • Ruby: ruby 2.0.0p648
  • Distribution: RHEL 7
  • Module version: 4fe1532

How to reproduce (e.g Puppet code you use)

With the Splunk 7.2.3 RPM in a yum repository accessible to your system:

  class { '::splunk':
    pkg_provider => 'yum',
    splunk_user  => 'splunk',
  }

What are you seeing

Splunk fails due to the splunk service no longer existing in Splunk 7.1 and 7.2. It seems that on Linux the new service setup might look a lot more like the windows setup, with there only being 2 services, Splunkd, and splunkweb.

What behaviour did you expect instead

A successful install of Splunk

Output log

Error: Systemd start for splunk failed!
journalctl log for splunk:
-- No entries --

Error: /Stage[main]/Splunk::Virtual/Service[splunk]/ensure: change from stopped to running failed: Systemd start for splunk failed!
journalctl log for splunk:
-- No entries --

Any additional information you'd like to impart

It seems that splunk has also renamed the splunkd service to Splunkd.

@bastelfreak
Copy link
Member

Hi @rbclark, thanks for the report. Are you able to provide a PR to add spunk 7.1/7.2 support?

@nick-markowski
Copy link
Contributor

@bastelfreak @rbclark I have some staged updates for 7.X I could clean up and submit. In one of my updates, I accounted for legacy mode - is that an update the community cares for?

@bastelfreak
Copy link
Member

Is is actually a default gem? At least on archlinux it isn't bundled with ruby2,6, as far as I know. It's a stand alone gem.

@nick-markowski
Copy link
Contributor

@bastelfreak My apologies, I'm not sure which gem you are referring to. I was questioning the support of running the deprecated splunkweb service, separate from splunkd, documented here: https://docs.splunk.com/Documentation/Splunk/7.2.3/Admin/StartSplunk#Start_Splunk_Enterprise_on_Unix_in_legacy_mode It's not recommended - I'm not sure if that's something worth maintaining as part of the module.

@bastelfreak
Copy link
Member

Oh lol, my comment was for a different issue. Anyways: Yes, a PR with your changes is probably a good idea.

@nick-markowski
Copy link
Contributor

Working on a larger refactor to make this happen

alexjfisher pushed a commit to alexjfisher/puppet-splunk that referenced this issue Apr 5, 2019
* Supports systemd boot-start
* Changed module design from Class[splunk], Class[splunk::forwarder] to
  Class[splunk::enterprise] and Class[splunk::forwarder]
* Removed legacy-style service management
* Allow users to disable default config (splunk/forwarder_* types)
* Removed ability to include enterprise and forwarder on the same machine
  * Forwarder is simply a subset of enterprise capability and there is no need
    to have both
  * Forwarder and enterprise potentially share common service names and other
    assets, which cause issues when including both
* Bumped dependency on stdlib to 4.25.0 to ensure strong typing support
* Allow users to specify splunk service user
* Added password management to enterprise

Fixes voxpupuli#213
Fixes voxpupuli#212
Fixes voxpupuli#210
alexjfisher pushed a commit to alexjfisher/puppet-splunk that referenced this issue Apr 5, 2019
* Default splunk version to 7.2.4.2
* Supports systemd boot-start
  * sysvinit file ensured absent on systemd machines when supported
  * net-tools ensured present on enterprise nodes splunk >= 7.2.4.2
  * Removed legacy-style service management
* Changed module design from Class[splunk], Class[splunk::forwarder] to
  Class[splunk::enterprise] and Class[splunk::forwarder]
  * Removed inclusion of the ::archive class
  * Cleaned up install logic
* Allow users to disable default config (splunk/forwarder_* types)
  * Generate splunkforwarder_input/output with iteration, instead of
    create_resources
* Removed ability to include enterprise and forwarder on the same machine
  * Forwarder and enterprise potentially share common service names and other
    assets, which cause issues when including both
  * Forwarder is simply a subset of enterprise capability and there is no need
    to have both
* Bumped dependency on stdlib to 4.25.0 to ensure strong typing support
* Allow users to specify splunk service user
* Added password management to enterprise

Fixes voxpupuli#213
Fixes voxpupuli#212
Fixes voxpupuli#210
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants