akester/new-chef

Fork Project

d62895a5a8b3e0da15debe76f3596980c1cde26a

Authored By: Andrew Kester Date: January 1, 2018 7:41 pm

Update node config

cookbooks/sthse/recipes/nodejs.rb
29 29
 	action :periodic
30 30
 end
31 31
 
32
+# Install Yarn
33
+execute "yarn_apt_key" do
34
+	command "curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -"
35
+	action :nothing
36
+end
37
+
38
+apt_repository 'yarn' do
39
+	uri 'https://dl.yarnpkg.com/debian/'
40
+	components ['main']
41
+	distribution 'main/stable'
42
+	notifies :run, 'execute[yarn_apt_key]', :before
43
+end
44
+
45
+package 'yarn'
46
+
47 32
 # We use execute rather than package, since package doesn't respect the
48 33
 # flag that we want a backported version.
49 34
 #package 'nodejs'
50 35