Engine Yardで使われる Chefの活用レシピ

9b69fbdeb0713def44a8731091ce5885?s=47 Yusuke Ando
April 05, 2013
1.4k

Engine Yardで使われる Chefの活用レシピ

9b69fbdeb0713def44a8731091ce5885?s=128

Yusuke Ando

April 05, 2013
Tweet

Transcript

  1. 3.

    Copyright © 2013 Engine Yard. All Rights Reserved. 3 2006೥ɿ

    Engine Yard ઃཱ (Ruby࣮ߦ؀ڥͷఏڙ։࢝) 2008೥ɿ Amazon༷͕Engine Yardʹग़ࢿΛൃද 2009೥ɿ AWSج൫ͷPaaSΛఏڙ։࢝ ࠷େڃͷAWSϦηʔϥʔʹ 2011೥ɿ PHP࣮ߦ؀ڥͷఏڙ։࢝ 2012೥ɿ Engine Yard ೔ຊ๏ਓઃཱ Node.js࣮ߦ؀ڥͷఏڙ։࢝ എܠ: Engine Yard, Inc.ͷϏϧ(ӈख)͕ݐͭ1929೥ͷαϯϑϥϯγεί Engine YardͷาΈ
  2. 19.
  3. 32.

    OPEFKTPO { "resolver": { "nameservers": [ "10.0.0.1" ], "search":"int.example.com" },

    "run_list": [ "recipe[resolver]" ] } { "run_list": [ "recipe[resolver]" ] } ࣮ߦ͍ͨ͠Ϩγϐ
  4. 33.
  5. 38.

    σΟϨΫτϦߏ੒ CHANGELOG.md attributes/ files/ metadata.rb recipes/ templates/ README.md definitions/ libraries/

    providers/ resources/ ϨγϐΛஔ͘ QMBUGPSNຖʹ΋ग़དྷΔ ઃఆϑΝΠϧͷͻͳܗ ϨγϐͰར༻͍ͨ͠ม਺ͳͲ
  6. 41.

    SFDJQJFTEFGBVMUSC log "Hello Chef" package "apache2" do action :install end

    service "apache2" do action :start end ֤؀ڥͷύοέʔδ؅ཧΛ࣮ߦ
  7. 45.

    UFNQMBUFTEFGBVMUUFTUUYUFSC This is Sample File.<br/> <%= node[:platform] %><br/> <%= node[:platform_version]

    %> SFDJQFTEFGBVMUSC ଓ template "/var/www/test.txt" do source "test.txt.erb" mode 0644 end
  8. 52.