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:
@@ -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
@@ -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'
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário