Slide 42
Slide 42 text
以下のrecipeで実現
remote_file "/tmp/httpd-2.2.22.tar.gz" do
source "http://ftp.meisei-u.ac.jp/httpd/httpd-2.2.22.tar.gz"
owner "root"
group "root"
mode "0644"
end
!
script "install httpd" do
interpreter "bash"
user "root"
cwd Chef::Config[:file_cache_path]
!
code <<-EOH
tar xf httpd-2.2.22.tar.gz && cd httpd-2.2.22
./configure
make && make test && make install
EOH
end