Pro Yearly is on sale from $80 to $50! »

Itamae シュッと

Ce2e9a468ff938fd14e9953583686966?s=47 pecosantoyobe
February 14, 2015

Itamae シュッと

オープンセミナー2015@広島で Itamae について LT という名のショートセッションをしてしまった際のスライド。

Ce2e9a468ff938fd14e9953583686966?s=128

pecosantoyobe

February 14, 2015
Tweet

Transcript

  1. *UBNBFŢœŕͱ Φʔϓϯηϛφʔ!޿ౡ

  2. *UBNBFʹ͍ͭͯௐ΂ͨ͜ͱ ΛŢœŕͱ෼ؒͰ঺հ͢Δ -5Ͱ͢

  3. ࣗݾ঺հ w ݹ৓໳ୡ࠸ w 1SPHSBNNFS!0SBOHF4ZTUFN

  4. ߏ੒؅ཧྺ w ͖͔͚ͬ͸ɺSFCVJMEGN w ೖ໳$IFG4PMPͰ$IFGͷษڧΛ࢝ΊΔ w ձࣾͰͭͷαʔϏεͷαʔόʔͷߏ੒؅ཧΛ $IFGͰ΍ͬͯΈͨ

  5. $IFGศར͚ͩΕͲɺ ΍ͬͺΓ೉͍͠ͳ

  6. ͦͯ͠ൃڰ

  7. None
  8. None
  9. w ࠓͷͱ͜Ζࣗ෼ͷؔΘΔن໛ͩͱϨγϐΛ෼͚ͨΓɺ ࠶ར༻ͨ͠Γ͢Δஈ֊͡Όͳ͍ؾ͕͢Δ w $IFGɺΦʔόʔεϖοΫ͔΋͠Εͳ͍ w ϛυϧ΢ΣΞͷߏ੒΋ͦΜͳʹෳࡶͰ͸ͳ͍͠ɺ ͭͷϑΝΠϧʹॻ͔Ε͍ͯΔ΄͏͕Θ͔Γ΍͍͢ن ໛ w

    ొ৔ਓ෺͕ଟ͍Α͏
  10. *UBNBF

  11. – https://github.com/itamae-kitchen/itamae l4JNQMFBOEMJHIUXFJHIUDPOpHVSBUJPO NBOBHFNFOUUPPMJOTQJSFECZ$IFGz

  12. *UBNBF w !SZPUBSBJ͞Μ͕࡞ऀ w $IFGͷΑ͏ͳ%4-ͰΠϯϑϥίʔυΛهड़ w $IFG΍ͬͯͨͳΒֶशίετ͸௿͍ w $IFGͷϨγϐͱޓ׵ੑ͸ͳ͍ w

    ΤʔδΣϯτϨε w ႈ౳ੑ w WͷϦϦʔε͸ɺ೥݄೔ w 4QFDJOGSB্ʹ࣮૷ w 04ͷҧ͍΍࣮ߦܗࣜͷҧ͍Λٵऩͯ͘͠ΕΔίϚϯυ࣮ߦϨΠϠʔ
  13. *UBNBF w ొ৔ਓ෺͕গͳ͍ DPPLCPPLT SFDJQFT SPMFT FOWJSPONFOUT $IFG4FSWFS #FSLTIFMG SFDJQFT

    Chef Itamae
  14. *OTUBMM $ gem install itamae

  15. 3FDJQF $ cat recipe.rb package ‘apache2’ service ‘apache2’ do action

    [:enable, :start] end remote_file ‘/etc/apache2/sites-available/default’ do source ‘files/apache2/default’ notifies :reload, ‘service[apache2]’ end user ‘craete deploy user’ do username ‘deploy’ password ‘secret’ # SHA-512 でハッシュ化したもの end
  16. "QQMZ MPDBM TTI WBHSBOU $ sudo itamae local recipe.rb $

    itamae ssh —―host tfrkd.org recipe.rb $ itamae ssh —―host default —―vagrant recipe.rb
  17. 3FTPVSDF w EJSFDUPSZ w FYFDVUF w pMF w HJU w

    HSPVQ w MJOL w MPDBM@SVCZ@CMPDL w QBDLBHF w SFNPUF@EJSFDUPSZ w SFNPUF@pMF w TFSWJDF w UFNQMBUF w VTFS 13 resource type
  18. ͦͷଞ w 0IBJ͕࢖͑Δ w ର৅αʔόͷ৘ใΛ͍Ζ͍ΖऔಘͰ͖Δ w ŠPIBJΦϓγϣϯ w /PEF"UUSJCVUFT͕࢖͑Δ w

    ϨγϐதͰՄมʹ͍ͨ͠ͱ͜Ζʹ w JODMVEF@SFDJQF w ଞͷϨγϐΛJODMVEF w EFpOJUJPOT w FYFDVUFSFTPVSDFͩΒ͚ʹͳͬͨͱ͖ʹ·ͱΊͯ৽͍͠SFTPVSDFΛ࡞Γ͍ͨ ͱ͖ͱ͔
  19. 1MVHJO w HFNʹͯ͠#VOEMFSͰ؅ཧ w 3FDJQFͱ3FTPVSDF

  20. 4FBSDI1MVHJOT w HJUIVCDPNTFBSDI VUG㾎RJUBNBFQMVHJO w SVCZHFNTPSHTFBSDI VUG㾎RVFSZJUBNBFQMVHJO ໋໊نଇ JUBNBFQMVHJOSFTPVSDFTFOHJSJ JUBNBFQMVHJOSFDJQFUPOKJSV

  21. ৘ใݯ  w IUUQTHJUIVCDPNJUBNBFLJUDIFOJUBNBF w (JU)VCϦϙδτϦ w IUUQTHJUIVCDPNJUBNBFLJUDIFOJUBNBFXJLJ w υΩϡϝϯτ(JU)VC8JLJ

    w IUUQTXXXHPPHMFDPKQTFBSDI RJUBNBF w (PPHMFݕࡧ w IUUQTRJJUBDPNUBHTJUBNBF w 2JJUB
  22. ৘ใݯ  IUUQTTQFBLFSEFDLDPNSZPUBSBJ JUBNBFJOGSBBTDPEFYJBO[IVBOHRVFSFOIVJ

  23. ࡶஊ  w $IFG΍ͬͯͨΓɺ3VCZʹೃછΈͷ͋Δɺܰྔͳαʔόʔߏ੒ ؅ཧπʔϧ͕ཉ͍͠ͳͱ͍͏ਓʹ͓͢͢Ί w "OTJCMF΋͍͍ΑͶ w 3FTPVSDF͕গͳ͍ w

    ࠷௿ݶ͸͋Δɻࠓޙʹظ଴ w υΩϡϝϯτ͕े෼ʹॻ͔Ε͍ͯͳ͍ w ίʔυΛಡΉඞཁ͕গ͋͠Δ
  24. ࡶஊ  w σΟϨΫτϦߏ੒ͱ͔Ͳ͜ʹԿΛͲ͜ʹஔ͔͘໎͏ w ଞͷߏ੒؅ཧπʔϧ͕ഓ͖ͬͯͨ΋ͷΛࢀߟʹ͢Δ w ίϛϡχςΟʹΑΔϓϥάΠϯ͸·ͩ͋Μ·Γͳͦ͞͏ w ฒྻ࣮ߦ͸

     w 3BLFpMF $BQJTUSBOPͳͲͰ
  25. Ͳ͏΋