-
-
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
Add splunkforwarder_version fact #206
Conversation
Should change to spec_helper be made to module_sync repo? |
4532f8c
to
96f7ec4
Compare
Can't get this to work on Windows and my Windows knowledge is very limited. I've added this debug at top of fact: Facter.debug("EXISTS: #{File.exist?('C:/')}")
Facter.debug("EXISTS: #{File.exist?('C:/Program Files')}")
Facter.debug("EXISTS: #{File.exist?('C:/Program Files/SplunkUniveralForwarder')}")
Facter.debug("EXISTS: #{File.exist?('C:/Program Files/SplunkUniveralForwarder/bin')}")
Facter.debug("EXISTS: #{File.exist?('C:/Program Files/SplunkUniveralForwarder/bin/splunk.exe')}") The result is this:
For some reason I can't see |
Arg. Fixed, I was spelling Universal wrong. |
|
modulesync_config already supports this. You need the following in spec/spec_helper.rb:
mock_with: :rspec |
Moved the spec_helper change to separate commit and added the necessary update to |
@alexjfisher can you recheck? I'm fine with it. |
@treydock Thanks! |
Adds
splunkfowarder_version
fact that works for both Linux and Windows.