Initial Chef repository
This commit is contained in:
16
cookbooks/nodejs/recipes/repo.rb
Normal file
16
cookbooks/nodejs/recipes/repo.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
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 node['nodejs']['keyserver']
|
||||
key node['nodejs']['key']
|
||||
end
|
||||
when 'rhel'
|
||||
include_recipe 'yum-epel'
|
||||
end
|
||||
Reference in New Issue
Block a user