More Related Content Similar to Chef, getting started - Wiktor Schmidt (PRUG 3.0) Similar to Chef, getting started - Wiktor Schmidt (PRUG 3.0) (20) More from ecommerce poland expo More from ecommerce poland expo (20) Chef, getting started - Wiktor Schmidt (PRUG 3.0)2. DEVOPS
devops is an emerging set of principles, methods and practices for communication, collaboration and
integration between software development (application/software engineering) and IT
operations(systems administration/infrastructure) professionals
15. recipes/default.rb:
remote_file "/tmp/node-v#{node[:nodejs][:version]}.tar.gz" do
source "http://nodejs.org/dist/node-v#{node[:nodejs][:version]}.tar.gz"
not_if { File.exist? "/tmp/node-v#{node[:nodejs][:version]}.tar.gz" }
end
execute "Extract Node source" do
cwd "/tmp"
command "tar -zxvf /tmp/node-v#{node[:nodejs][:version]}.tar.gz"
creates "/tmp/node-v#{node[:nodejs][:version]}"
end
execute "Build and Install Node.js" do
cwd "/tmp/node-v#{node[:nodejs][:version]}"
command "./configure; make install"
creates "/usr/local/bin/node"
end
attributes/default.rb:
default[:nodejs][:version] = '0.4.8'
EXAMPLE
Editor's Notes \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n