Switch to NodeSource repository

- 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
Esse commit está contido em:
Matt Whiteley
2014-08-01 13:04:58 -07:00
commit e64a50f582
2 arquivos alterados com 5 adições e 2 exclusões
+2 -1
Ver Arquivo
@@ -2,7 +2,8 @@ include_attribute 'nodejs::default'
case node['platform_family']
when 'debian'
default['nodejs']['repo'] = 'http://ppa.launchpad.net/chris-lea/node.js/ubuntu'
default['nodejs']['repo'] = 'https://deb.nodesource.com/node'
default['nodejs']['key'] = '1655a0ab68576280'
default['nodejs']['packages'] = node['nodejs']['install_repo'] ? %w(nodejs) : %w(nodejs npm nodejs-dev)
when 'rhel', 'fedora'
default['nodejs']['packages'] = %w(nodejs nodejs-devel npm)
+3 -1
Ver Arquivo
@@ -2,12 +2,14 @@ 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 'C7917B12'
key node['nodejs']['key']
end
when 'rhel'
include_recipe 'yum-epel'