Showing with 18 additions and 7 deletions.
  1. +0 −3 .travis.yml
  2. +12 −0 CHANGELOG.md
  3. +1 −1 lib/facter/filebeat_version.rb
  4. +1 −1 manifests/install/windows.pp
  5. +1 −1 metadata.json
  6. +3 −1 templates/filebeat5.yml.erb
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,5 @@ matrix:
- rvm: 2.1.9
bundler_args: --without system_tests development
env: PUPPET_GEM_VERSION="~> 3.8"
- rvm: 1.9.3
bundler_args: --without system_tests development
env: PUPPET_GEM_VERSION="~> 3.8"
notifications:
email: false
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ Changelog
## Unreleased
[Full Changelog](https://github.com/pcfens/puppet-filebeat/compare/v0.10.1...HEAD)

## [v0.10.3](https://github.com/pcfens/puppet-filebeat/tree/v0.10.3)
[Full Changelog](https://github.com/pcfens/puppet-filebeat/compare/v0.10.2...v0.10.3)

- Allow non-SSL downloads of windows filebeat zipfile [\#82](https://github.com/pcfens/puppet-filebeat/pull/82)
- Basic support of processors in puppet <4.x [\#79](https://github.com/pcfens/puppet-filebeat/issues/79) (See note below)
- Confine the filebeat_version fact in a way that works in Ruby 1.8.7 [\#88](https://github.com/pcfens/puppet-filebeat/pull/88)

Processor support is going to change in the next feature release (v0.11.x) in a way that is not
backwards compatible with the current method. The upcoming change is documented in
[\#85](https://github.com/pcfens/puppet-filebeat/pull/85).


## [v0.10.2](https://github.com/pcfens/puppet-filebeat/tree/v0.10.2)
[Full Changelog](https://github.com/pcfens/puppet-filebeat/compare/v0.10.1...v0.10.2)

Expand Down
2 changes: 1 addition & 1 deletion lib/facter/filebeat_version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'facter'
Facter.add('filebeat_version') do
confine kernel: %w(Linux Windows)
confine :kernel => %w(Linux Windows) # rubocop:disable Style/HashSyntax
if File.executable?('/usr/bin/filebeat')
filebeat_version = Facter::Util::Resolution.exec('/usr/bin/filebeat --version')
elsif File.executable?('/usr/share/filebeat/bin/filebeat')
Expand Down
2 changes: 1 addition & 1 deletion manifests/install/windows.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class filebeat::install::windows {
$filename = regsubst($filebeat::download_url, '^https.*\/([^\/]+)\.[^.].*', '\1')
$filename = regsubst($filebeat::download_url, '^https?.*\/([^\/]+)\.[^.].*', '\1')
$foldername = 'Filebeat'

file { $filebeat::install_dir:
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": "0.10.2",
"version": "0.10.3",
"author": "pcfens",
"license": "Apache-2.0",
"summary": "A module to install and manage the filebeat log shipper",
Expand Down
4 changes: 3 additions & 1 deletion templates/filebeat5.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
def yaml_indent(conds)
return_val = []
tmp_val = conds.to_yaml.split("\n")
tmp_val = tmp_val.collect{|val| val.rstrip || val}
tmp_val.delete('---')

tmp_val.each do |val|
return_val << " " + val
end
Expand Down Expand Up @@ -84,9 +84,11 @@ processors:
when:
<%= yaml_indent(_proc['when']) %>
<%- end -%>
<%- unless _proc['params'].nil? or _proc['params'].empty? -%>
<%- _proc['params'].each do |key,val|-%>
<%= key %>: <%= val %>
<%- end -%>
<%- end -%>
<%- end -%>
<%- end -%>

Expand Down