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

chef-soloの簡単な使い方

 chef-soloの簡単な使い方

Groovenauts Public Hands-on 02 - Chef+serverspecで発表した内容です。

Spring_MT

June 07, 2013
Tweet

More Decks by Spring_MT

Other Decks in Programming

Transcript

  1. Chef-Server API Chef-Solr Indexer RabbitMQ Chef-Server WebUI Knife CouchDB Solr

    Ruby CouchDB (chef 11ͩͱ PostgreSQL?) RabbitMQ Solr Erlang ϛυϧ΢ΣΞ Chef-Client client
  2. chefͷߏ੒ཁૉ chef-server ৘ใΛू໿ͯ͠؅ཧ͢Δαʔόϓϩηεɻ֤ Client ͱ͸ JSON/REST ελΠϧͰ ௨৴͢Δɻ WebUI chef-server

    ͷ Web ΠϯλʔϑΣʔεɻ chef-client ઃఆΛద༻͢Δ֤ϚγϯʹΠϯετʔϧ͞ΕΔσʔϞϯɻఆظతʹ chef-server ΛϙʔϦϯάͯ͠ɺͦͷ಺༰ʹैͬͯϨγϐΛ࣮ߦ͢Δɻ knife chef-server ʹొ࿥͞Ε͍ͯΔ৘ใͷऔಘɾมߋΛߦ͏πʔϧɻ chef-solo αʔόແ͠ͰϨγϐΛ࣮ߦ͢Δπʔϧɻ
  3. public subnet Co-Work subnet utility APP redis worker subnet storage

    subnet fluentd deliver worker proxy varnish + sinatra Watch subnet network Gateway NAT SSLͷม׵ DB(MySQL on EC2)
  4. cookbook hogehoge/ README.md attributes : cookbookͰ࢖͏ڞ௨ͷม਺Λ֨ೲ definitions : files :

    ୯ʹίϐʔͯ͠࢖͏ͨΊͷϑΝΠϧΛஔ͘ libraries : metadata.rb : Cookbook ͷઆ໌ͱ͔ͷϝλ৘ใ providers : recipes : ॲཧखॱΛهࡌ resources : templates : confϑΝΠϧΛ֨ೲ
  5. user_dataͰ ηοτΞοϓྫ * Ϣʔβʔ௥Ճ * sshઃఆ * rootύεϫʔυͷઃఆ * ৭ʑyum

    install . . . . . . * rbenvͰruby Πϯετʔϧ . . . . . . * gem install chef