Showing with 31 additions and 2 deletions.
  1. +11 −1 CHANGELOG.md
  2. +4 −0 Gemfile
  3. +1 −1 metadata.json
  4. +3 −0 spec/classes/filebeat_spec.rb
  5. +12 −0 templates/filebeat.yml.erb
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@ Changelog
=========

## Unreleased
[Full Changelog](https://github.com/pcfens/puppet-filebeat/compare/v0.7.2...HEAD)
[Full Changelog](https://github.com/pcfens/puppet-filebeat/compare/v0.7.4...HEAD)

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

Version 0.7.3 was never released even though it is tagged.

- Fixed some testing issues that were caused by changes to external resources

**Fixed Bugs**
- Some redis configuration options were not generated as integers [\#38](https://github.com/pcfens/puppet-filebeat/issues/38)

## [v0.7.2](https://github.com/pcfens/puppet-filebeat/tree/v0.7.2)
[Full Changelog](https://github.com/pcfens/puppet-filebeat/compare/v0.7.1...v0.7.2)
Expand Down
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ group :system_tests do
gem 'beaker-hostgenerator', *location_for(ENV['BEAKER_HOSTGENERATOR_VERSION'])
end

# json_pure 2.0.2 added a requirement on ruby >= 2. We pin to json_pure 2.0.1
# if using ruby 1.x
gem 'json_pure', '<=2.0.1', :require => false if RUBY_VERSION =~ /^1\./

if facterversion = ENV['FACTER_GEM_VERSION']
gem 'facter', facterversion, :require => false
else
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.7.2",
"version": "0.7.4",
"author": "pcfens",
"license": "Apache-2.0",
"summary": "A module to install and manage the filebeat log shipper",
Expand Down
3 changes: 3 additions & 0 deletions spec/classes/filebeat_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
:lsbdistid => 'Ubuntu',
:lsbdistrelease => '16.04',
:rubyversion => '1.9.3',
:puppetversion => Puppet.version
}
end

Expand Down Expand Up @@ -45,6 +46,7 @@
:kernel => 'Linux',
:osfamily => 'RedHat',
:rubyversion => '1.8.7',
:puppetversion => Puppet.version
}
end

Expand All @@ -66,6 +68,7 @@
{
:kernel => 'Windows',
:rubyversion => '1.9.3',
:puppetversion => Puppet.version
}
end

Expand Down
12 changes: 12 additions & 0 deletions templates/filebeat.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@
<%- if @filebeat_config['output']['redis']['port'] -%>
<%- @filebeat_config['output']['redis']['port'] = Integer(@filebeat_config['output']['redis']['port']) -%>
<%- end -%>
<%- if @filebeat_config['output']['redis']['db'] -%>
<%- @filebeat_config['output']['redis']['db'] = Integer(@filebeat_config['output']['redis']['db']) -%>
<%- end -%>
<%- if @filebeat_config['output']['redis']['db_topology'] -%>
<%- @filebeat_config['output']['redis']['db_topology'] = Integer(@filebeat_config['output']['redis']['db_topology']) -%>
<%- end -%>
<%- if @filebeat_config['output']['redis']['timeout'] -%>
<%- @filebeat_config['output']['redis']['timeout'] = Integer(@filebeat_config['output']['redis']['timeout']) -%>
<%- end -%>
<%- if @filebeat_config['output']['redis']['reconnect_interval'] -%>
<%- @filebeat_config['output']['redis']['reconnect_interval'] = Integer(@filebeat_config['output']['redis']['reconnect_interval']) -%>
<%- end -%>
<%- end -%>
<%- if @filebeat_config['shipper'] -%>
<%- if @filebeat_config['shipper']['refresh_topology_freq'] -%>
Expand Down