Skip to content

Commit

Permalink
added support for 32bit platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
vkhatri committed Nov 21, 2015
1 parent e6f30df commit e44cd95
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions recipes/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@
# limitations under the License.
#

if node['platform_family'] == 'debian' && node['kernel']['machine'] == 'x86_64'
arch_name = 'amd64'
else
arch_name = node['kernel']['machine']
end

if node['filebeat']['package_url'] == 'auto'
package_url = value_for_platform_family(
'debian' => "https://download.elastic.co/beats/filebeat/filebeat_#{node['filebeat']['version']}_amd64.deb",
%w(rhel fedora) => "https://download.elastic.co/beats/filebeat/filebeat-#{node['filebeat']['version']}-x86_64.rpm",
'debian' => "https://download.elastic.co/beats/filebeat/filebeat_#{node['filebeat']['version']}_#{arch_name}.deb",
%w(rhel fedora) => "https://download.elastic.co/beats/filebeat/filebeat-#{node['filebeat']['version']}-#{arch_name}.rpm",
'windows' => "https://download.elastic.co/beats/filebeat/filebeat-#{node['filebeat']['version']}-windows.zip"
)
else
Expand Down

0 comments on commit e44cd95

Please sign in to comment.