-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
Unable to create symlink #212
Comments
Hi @nikitashalnov, could you open up a PR with your change? |
hi @nikitashalnov any update on when this could be completed? we are wanting to run 7.2.3 but aren't able to because of this issue. Thanks |
I ran into the same problem. I was able to fix that by adding a variable and checking for the presence of the systemd start script on EL7 hosts. |
* 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
* 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
Affected Puppet, Ruby, OS and module versions/distributions
Description
Splunk versions above 7.2.1 don't create file /etc/init.d/splunk during the command
splunk enable boot-start -user ${splunk_user}
. It creates symlink on systemd unit (service):ls -l /etc/systemd/system/multi-user.target.wants/SplunkForwarder.service lrwxrwxrwx 1 root root 43 Jan 16 13:30 /etc/systemd/system/multi-user.target.wants/SplunkForwarder.service -> /etc/systemd/system/SplunkForwarder.service
But in
manifests/platform/posix.pp
execs expect that file/etc/init.d/splunk
is created. So on every run of puppet agent, agent tries to create this symlink and gets an error:I commited some changes to my fork, but not sure that this is the proper way to fix this problem.
The text was updated successfully, but these errors were encountered: