Showing with 11 additions and 3 deletions.
  1. +6 −1 CHANGELOG.md
  2. +4 −1 lib/facter/filebeat_version.rb
  3. +1 −1 metadata.json
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ Changelog
=========

## Unreleased
[Full Changelog](https://github.com/pcfens/puppet-filebeat/compare/v4.0.0...HEAD)
[Full Changelog](https://github.com/pcfens/puppet-filebeat/compare/v4.0.3...HEAD)

## [v4.0.3](https://github.com/pcfens/puppet-filebeat/tree/v4.0.3)
[Full Changelog](https://github.com/pcfens/puppet-filebeat/compare/v4.0.2...v4.0.3)

- Fix `filebeat_version` fact on Windows [\#218](https://github.com/pcfens/puppet-filebeat/pull/218)

## [v4.0.2](https://github.com/pcfens/puppet-filebeat/tree/v4.0.2)
[Full Changelog](https://github.com/pcfens/puppet-filebeat/compare/v4.0.1...v4.0.2)
Expand Down
5 changes: 4 additions & 1 deletion lib/facter/filebeat_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
elsif File.executable?('/usr/local/sbin/filebeat')
filebeat_version = Facter::Util::Resolution.exec('/usr/local/sbin/filebeat --version')
elsif File.exist?('c:\Program Files\Filebeat\filebeat.exe')
filebeat_version = Facter::Util::Resolution.exec('"c:\Program Files\Filebeat\filebeat.exe" --version')
filebeat_version = Facter::Util::Resolution.exec('"c:\Program Files\Filebeat\filebeat.exe" version')
if filebeat_version.empty?
filebeat_version = Facter::Util::Resolution.exec('"c:\Program Files\Filebeat\filebeat.exe" --version')
end
end
setcode do
filebeat_version.nil? ? false : %r{^filebeat version ([^\s]+)?}.match(filebeat_version)[1]
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pcfens-filebeat",
"version": "4.0.2",
"version": "4.0.3",
"author": "pcfens",
"summary": "A module to install and manage the filebeat log shipper",
"license": "Apache-2.0",
Expand Down