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

Facter splunk version #280

Closed
bc-bjoern opened this issue Mar 5, 2020 · 2 comments
Closed

Facter splunk version #280

bc-bjoern opened this issue Mar 5, 2020 · 2 comments

Comments

@bc-bjoern
Copy link

bc-bjoern commented Mar 5, 2020

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6
  • Ruby: 2.0.0p648
  • Distribution: CentOS Linux release 7.7.1908 (Core)
  • Module version: v8.0.0

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

puppet agent -t --debug

What are you seeing

Puppet run hangs on the fact:

Debug: Facter: fact "splunk_version" resolved to null and will not be added. Debug: Facter: executing command: /bin/sh -c /opt/splunkforwarder/bin/splunk --version ^CNotice: Caught INT; exiting

When i execute the command manually, I have to accept the license.

`
Do you agree with this license? [y/n]: y

This appears to be your first time running this version of Splunk.

Splunk software must create an administrator account during startup. Otherwise, you cannot log in.
Create credentials for the administrator account.
Characters do not appear on the screen when you type in credentials.

Please enter an administrator username:
`

What behaviour did you expect instead

How to work around this showstopper?

@wcooley
Copy link

wcooley commented Mar 20, 2020

This is the same as #238. You can manually accept the license (and possibly upgrade migration) with bin/splunk status --accept-license --no-prompt --answer-yes.

runejuhl added a commit to runejuhl/puppet-splunk that referenced this issue May 18, 2020
This is to avoid issues with `splunk --version` waiting on input if the license
has not yet been accepted. See issues
voxpupuli#238 and
voxpupuli#280.

The code is based on
posteingang@09092f6
with minor changes.
runejuhl added a commit to runejuhl/puppet-splunk that referenced this issue Jun 20, 2022
This is to avoid issues with `splunk --version` waiting on input if the license
has not yet been accepted. See issues
voxpupuli#238 and
voxpupuli#280.

The code is based on
posteingang@09092f6
with minor changes.
runejuhl added a commit to runejuhl/puppet-splunk that referenced this issue Jun 20, 2022
This is to avoid issues with `splunk --version` waiting on input if the license
has not yet been accepted. See issues
voxpupuli#238 and
voxpupuli#280.

The code is based on
posteingang@09092f6
with minor changes.
@root-expert
Copy link
Member

This was fixed in 5778673

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