Skip to content

Commit

Permalink
apply apt options only for debian family
Browse files Browse the repository at this point in the history
  • Loading branch information
vkhatri committed Apr 17, 2016
1 parent 1ef9f33 commit 2efc443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/install_package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@

package 'filebeat' do
version node['platform_family'] == 'rhel' ? node['filebeat']['version'] + '-1' : node['filebeat']['version']
options node['filebeat']['apt']['options'] if node['filebeat']['apt']['options']
options node['filebeat']['apt']['options'] if node['filebeat']['apt']['options'] and node['platform_family'] == 'debian'
notifies :restart, 'service[filebeat]'
end

0 comments on commit 2efc443

Please sign in to comment.