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

Vagrant + chef

Naoya Ito
February 22, 2013

Vagrant + chef

Naoya Ito

February 22, 2013
Tweet

More Decks by Naoya Ito

Other Decks in Technology

Transcript

  1. WBHSBOUͷಋೖ  7JSVUBM#PYΛࣄલʹ͍Ε͓ͯ͜͏  $  gem  install  vagrant   $

     vagrant  box  add  centos  http:// developer.nrel.gov/downloads/vagrant-­‐boxes/ CentOS-­‐6.3-­‐x86_64-­‐v2013101.box    
  2. #  Vagrantfile   Vagrant::Config.run  do  |config|      config.vm.box  =

     "base"      config.vm.network  :hostonly,  "192.168.50.10"   #  ~/.ssh/config   Host  10.0.2.*      IdentityFile  ~/.vagrant.d/insecure_private_key      User  vagrant  
  3. $  knife  solo  init  chef-­‐solo   $  cd  chef-­‐solo  

    $  knife  cookbook  create  setup  –o  site-­‐ cookbooks  
  4. #  Why  Run   $  knife  solo  cook  <host>  -­‐W

        #  Since  knife-­‐solo  0.3.0   $  knife  solo  cook  <host>  -­‐o  your::recipe