From b5c513418dcfa8146a233c413f88b93d3fed9968 Mon Sep 17 00:00:00 2001 From: Virender Khatri Date: Sun, 5 Mar 2017 00:11:23 +0530 Subject: [PATCH 1/2] update beats version to 5.2.2 --- attributes/default.rb | 2 +- spec/unit/recipes/default_spec.rb | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/attributes/default.rb b/attributes/default.rb index 71e84a7..d4fde95 100755 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -1,4 +1,4 @@ -default['filebeat']['version'] = '5.2.0' +default['filebeat']['version'] = '5.2.2' default['filebeat']['release'] = '1' default['filebeat']['disable_service'] = false default['filebeat']['package_url'] = 'auto' diff --git a/spec/unit/recipes/default_spec.rb b/spec/unit/recipes/default_spec.rb index 8a30e8b..274e9c7 100644 --- a/spec/unit/recipes/default_spec.rb +++ b/spec/unit/recipes/default_spec.rb @@ -143,12 +143,12 @@ include_examples 'filebeat' - it 'create prospector directory C:/opt/filebeat/filebeat-5.2.0-windows-x86_64/conf.d' do - expect(chef_run).to create_directory('C:/opt/filebeat/filebeat-5.2.0-windows-x86_64/conf.d') + it 'create prospector directory C:/opt/filebeat/filebeat-5.2.2-windows-x86_64/conf.d' do + expect(chef_run).to create_directory('C:/opt/filebeat/filebeat-5.2.2-windows-x86_64/conf.d') end - it 'configure C:/opt/filebeat/filebeat-5.2.0-windows/filebeat.yml' do - expect(chef_run).to create_file('C:/opt/filebeat/filebeat-5.2.0-windows-x86_64/filebeat.yml') + it 'configure C:/opt/filebeat/filebeat-5.2.2-windows/filebeat.yml' do + expect(chef_run).to create_file('C:/opt/filebeat/filebeat-5.2.2-windows-x86_64/filebeat.yml') end it 'include recipe filebeat::install_windows' do @@ -172,15 +172,15 @@ end it "has correct default['filebeat']['conf_dir']" do - expect(node['filebeat']['conf_dir']).to eq('C:/opt/filebeat/filebeat-5.2.0-windows-x86_64') + expect(node['filebeat']['conf_dir']).to eq('C:/opt/filebeat/filebeat-5.2.2-windows-x86_64') end it "has correct default['filebeat']['config']['filebeat']['registry_file']" do - expect(node['filebeat']['config']['filebeat']['registry_file']).to eq('C:/opt/filebeat/filebeat-5.2.0-windows-x86_64/registry') + expect(node['filebeat']['config']['filebeat']['registry_file']).to eq('C:/opt/filebeat/filebeat-5.2.2-windows-x86_64/registry') end it "has correct default['filebeat']['config']['filebeat']['config_dir']" do - expect(node['filebeat']['config']['filebeat']['config_dir']).to eq('C:/opt/filebeat/filebeat-5.2.0-windows-x86_64/conf.d') + expect(node['filebeat']['config']['filebeat']['config_dir']).to eq('C:/opt/filebeat/filebeat-5.2.2-windows-x86_64/conf.d') end end end From 9369af97f08753941a432e9430a4fa9ee51153e7 Mon Sep 17 00:00:00 2001 From: Virender Khatri Date: Sun, 5 Mar 2017 00:13:04 +0530 Subject: [PATCH 2/2] bump cookbook version to v0.4.9 --- CHANGELOG.md | 5 +++++ README.md | 6 +++--- metadata.rb | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42108b4..ccced8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ filebeat CHANGELOG This file is used to list changes made in each version of the filebeat cookbook. +0.4.9 +----- + +- Virender Khatri - Updated Beats Version to v5.2.2 + 0.4.8 ----- diff --git a/README.md b/README.md index fe18da9..3f8383a 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,13 @@ This is a [Chef] cookbook to manage [Filebeat]. ## Most Recent Release ```ruby -cookbook 'filebeat', '~> 0.4.8' +cookbook 'filebeat', '~> 0.4.9' ``` ## From Git ```ruby -cookbook 'filebeat', github: 'vkhatri/chef-filebeat', tag: 'v0.4.8' +cookbook 'filebeat', github: 'vkhatri/chef-filebeat', tag: 'v0.4.9' ``` ## Repository @@ -294,7 +294,7 @@ Above configuration will create three different prospector files - `prospector-s ## Core Attributes -* `default['filebeat']['version']` (default: `5.2.0`): filebeat version +* `default['filebeat']['version']` (default: `5.2.2`): filebeat version * `default['filebeat']['ignore_version']` (default: `false`): ignore filebeat version for `package` install diff --git a/metadata.rb b/metadata.rb index f182cc6..a5ac4e8 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,7 @@ license 'Apache 2.0' description 'Installs/Configures Elastic Filebeat' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version '0.4.8' +version '0.4.9' source_url 'https://github.com/vkhatri/chef-filebeat' if respond_to?(:source_url) issues_url 'https://github.com/vkhatri/chef-filebeat/issues' if respond_to?(:issues_url)