Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
Add versionig to filebeat recipe.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose M committed Jun 12, 2019
1 parent bac692c commit 26b41ce
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions cookbooks/wazuh_filebeat/recipes/filebeat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,19 @@

include_recipe 'wazuh_filebeat::repository'

package 'filebeat' do
version node['filebeat']['elastic_stack_version']
if platform_family?('debian', 'ubuntu')

apt_package 'filebeat' do
version "#{node['wazuh-elastic']['elastic_stack_version']}"
end

elsif platform_family?('rhel', 'redhat', 'centos', 'amazon')
yum_package 'filebeat' do
version "#{node['wazuh-elastic']['elastic_stack_version']}-1"
end

else
raise "Currently platforn not supported yet. Feel free to open an issue on https://github.com/wazuh/wazuh-chef if you consider that support for a specific OS should be added"
end

bash 'Elasticsearch_template' do
Expand Down

0 comments on commit 26b41ce

Please sign in to comment.