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

入門Chef Solo落ち穂拾い

入門Chef Solo落ち穂拾い

Provisioning Frameworks Casual Talks vol.1 (https://gist.github.com/studio3104/5417631) での発表スライドです

Naoya Ito

May 10, 2013
Tweet

More Decks by Naoya Ito

Other Decks in Technology

Transcript

  1. •  େن໛ ਺ඦʙ ୆  – ͓ͦΒ͘$IFG4FSWFSҰ୒ •  தن໛ ʙ਺े୆ 

    – $IFG4PMPͰ΋ؤுΕΔ – $IFG4FSWFSೖΕΔ͔೰ΈͲ͜Ζ •  খن໛ ʙे਺୆  – $IFG4PMPͰे෼ 
  2. require  'chefspec'     describe  'http_server::default'  do      let

     (:chef_run)  {  ChefSpec::ChefRunner.new.converge  'http_server::default'  }      it  'should  install  nginx'  do          chef_run.should  start_service  'nginx'      end        it  'should  start  nginx'  do          chef_run.should  start_service  'nginx'      end   end DIFGTQFD IUUQRJJUBDPNJUFNTGFEFFCDCGΑΓ 
  3. require  'minitest/spec’     describe_recipe  'spec_examples::default'  do      describe

     "files"  do          it  "creates  the  config  file"  do              file("/etc/fstab").must_exist          end            it  "ensures  that  the  foobar  file  is  removed  if  present"  do              file("/etc/foobar").wont_exist          end      end   end NJOJUFTUDIFGIBOEMFS
  4. •  ఆ൪͸UFTULJUDIFO NJOJUFTU –  PQTDPEFެࣜͩ͠ •  TFSWFSTQFDਪ͠ –  *OUFHSBUJPOςετ͸ॲཧܭʹґଘ͠ͳ͍ํ͕ྑ͍ • 

    কདྷԿ͔ʹ৐Γ׵͑Δ࣌΋ςετΛͦͷ··ྲྀ༻Ͱ͖Δ –  UFTULJUDIFO TFSWFSTQFDྑͦ͞͏ɻͨͩ͠ະݕূ •  ೰·͍͠ͱ͜Ζ – DIFGTQFD *OUFHSBUJPO5FTU͸݁ߏ৑௕ŋŋŋ ಉ͡Α͏ͳهड़͕ଟ͍