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

Beats package on FreeBSD renamed; cannot find binary #271

Open
ltning opened this issue Oct 9, 2020 · 0 comments
Open

Beats package on FreeBSD renamed; cannot find binary #271

ltning opened this issue Oct 9, 2020 · 0 comments

Comments

@ltning
Copy link

ltning commented Oct 9, 2020

Two items:

  • The sysutils/beats package no longer exists; it's sysutils/beats6 or sysutils/beat7 since a year or so
  • When trying to determine its own version, only /usr/bin and /usr/local/bin is searched. FreeBSD installs beats in /usr/local/sbin (at least v7)

Added to filebeat_version.rb:

  elsif File.executable?('/usr/local/sbin/filebeat')
    filebeat_version = Facter::Util::Resolution.exec('/usr/local/sbin/filebeat version')
    if filebeat_version.empty?
      filebeat_version = Facter::Util::Resolution.exec('/usr/local/sbin/filebeat --version')
    end

Modified modules/filebeat/manifests/install/freebsd.pp:

  ensure_packages (["beats${filebeat::major_version}"], {ensure => $filebeat::package_ensure})
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

No branches or pull requests

1 participant