pjorg / pjorg-puppet-sumo

Install and manage the Sumo Logic collector and its log sources with Puppet.
MIT License
1 stars 12 forks source link

added support for localfile source cutoffRelativeTime option #9

Closed BIAndrews closed 4 years ago

BIAndrews commented 7 years ago

Tested with current Sumo logic agent on RHEL7

Vendor docs on usage

https://help.sumologic.com/Send_Data/Sources/03Use_JSON_to_Configure_Sources/JSON_Parameters_for_Installed_Sources#Local_File_Source

BIAndrews commented 7 years ago

Here is the travicCI error: The command "SPEC_OPTS="--format documentation" bundle exec rake validate lint spec" exited with 1.

BIAndrews commented 7 years ago

TravisCI error isn't an issue with the additional parameters.

rake aborted!
NoMethodError: undefined method `absolute_path' for File:Class
/home/travis/.rvm/gems/ruby-1.8.7-p371/gems/puppetlabs_spec_helper-2.1.0/lib/puppetlabs_spec_helper/rake_tasks.rb:585
/home/travis/build/pjorg/pjorg-puppet-sumo/Rakefile:1:in `gem_original_require'
/home/travis/build/pjorg/pjorg-puppet-sumo/Rakefile:1:in `require'
/home/travis/build/pjorg/pjorg-puppet-sumo/Rakefile:1
/home/travis/.rvm/gems/ruby-1.8.7-p371/bin/ruby_executable_hooks:15
(See full trace by running task with --trace)
BIAndrews commented 7 years ago

The method absolute_path was added in ruby 1.9.1, which is why all ruby 1.8 test cases are failing.