# # Cookbook:: nodejs # Attributes:: nodejs # # Copyright:: 2010-2017, Promet Solutions # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # case node['platform_family'] when 'smartos', 'rhel', 'debian', 'fedora', 'mac_os_x', 'suse', 'amazon' default['nodejs']['install_method'] = 'package' else default['nodejs']['install_method'] = 'source' end default['nodejs']['version'] = '6.10.2' default['nodejs']['prefix_url']['node'] = 'https://nodejs.org/dist/' default['nodejs']['source']['url'] = nil # Auto generated default['nodejs']['source']['checksum'] = '9b897dd6604d50ae5fff25fd14b1c4035462d0598735799e0cfb4f17cb6e0d19' default['nodejs']['binary']['url'] = nil # Auto generated default['nodejs']['binary']['checksum']['linux_x64'] = '35accd2d9ccac747eff0f236e2843bc2198ba7765e2340441d6230861bae4e1b' default['nodejs']['binary']['checksum']['linux_x86'] = '6721221fab4e3b3a1be6573900b9e368c7a74ac1c1c3ae982e49c5583e8962e3' default['nodejs']['binary']['checksum']['linux_arm64'] = '97de0340b6dbf38e3d995df880a94c58d403c3054676d8fc9192b83a3735f0b8' default['nodejs']['make_threads'] = node['cpu'] ? node['cpu']['total'].to_i : 2 default['nodejs']['manage_node'] = true