Upgrade to Pro — share decks privately, control downloads, hide ads and more …

20140221_geechs.pdf

wadap
February 26, 2014
62

 20140221_geechs.pdf

wadap

February 26, 2014
Tweet

Transcript

  1. 自己紹介 • 和田修一 / @wadap • 1981年生まれ • 株式会社nanapi Co-Founder(共同創業者)


    取締役 執行役員 CTO • サーバインフラ〜サーバサイド開発が得意分野 • I love emacs!
  2. 従来のインフラ管理 $ ssh server $ wget http://ftp.meisei-u.ac.jp/httpd/httpd-2.2.22.tar.gz $ tar xvfz

    httpd-2.2.22.tar.gz $ cd httpd-2.2.22 $ ./configure $ make $ make test $ sudo make install
  3. 以下の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