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

Commit

Permalink
Add Wazuh-Agent versioning support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose M committed Jun 11, 2019
1 parent 9026bca commit bac692c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion cookbooks/wazuh_agent/recipes/agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,17 @@
include_recipe 'apt::default'
include_recipe 'wazuh_agent::repository'

package 'wazuh-agent'
if platform_family?('ubuntu', 'debian')
apt_package 'wazuh-agent' do
version "#{node['wazuh-agent']['version']}-1"
end
elsif platform_family?('rhel','centos', 'amazon')
yum_package 'wazuh-agent' do
version "#{node['wazuh-agent']['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

dir = node['ossec']['dir']
agent_auth = node['ossec']['agent_auth']
Expand Down

0 comments on commit bac692c

Please sign in to comment.