e64a50f582
- Chris Lea's PPA will be dropped with the release of 0.12.x - https://chrislea.com/2014/07/09/joining-forces-nodesource/ - https://nodesource.com/blog/chris-lea-joins-forces-with-nodesource
17 linhas
343 B
Ruby
17 linhas
343 B
Ruby
case node['platform_family']
|
|
when 'debian'
|
|
include_recipe 'apt'
|
|
|
|
package 'apt-transport-https'
|
|
|
|
apt_repository 'node.js' do
|
|
uri node['nodejs']['repo']
|
|
distribution node['lsb']['codename']
|
|
components ['main']
|
|
keyserver 'keyserver.ubuntu.com'
|
|
key node['nodejs']['key']
|
|
end
|
|
when 'rhel'
|
|
include_recipe 'yum-epel'
|
|
end
|