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

vagrant-itamae

 vagrant-itamae

Itamae meetup #1 LT

4cbe00e8d1d7dfc16da4e8ecd3232760?s=128

Hiroyuki Morita

December 09, 2015
Tweet

Transcript

  1. vagrant-itamae Itamae meetup #1 Dec 9th, 2015

  2. @chiastolite ৿ా༟೭ Unicon Pte.Ltd. app engineer

  3. ࠓ೔͸ Ansible ॻ͍͔ͯΒདྷ·ͨ͠

  4. vagrant-itamae ͱ͸

  5. vagrant-itamae ͱ͸ • vagrant ͷ provisioner plug-in Vagrant.configure(2) do |config|

    config.vm.provision :itamae do |config| ~~~~~~~ <= ͩ͜͜Α͜͜ config.recipes = ['./recipe.rb'] config.json = './node.json' config.sudo = true end end
  6. Ҋ֎લ͔Β͋Δ • Itamae • August 5, 2014(1.0.0.beta1) • vagrant-itamae •

    August 21, 2014(0.0.1)
  7. itamae plugin͸࢖͑Δͷʁ

  8. plugin ΋ͳΜͱ͔࢖͑Δ vagrant͸಺෦ʹgemΛ͍࣋ͬͯΔͷͰ vagrant plugin ίϚϯυͰೖΕΔඞཁ͕͋Δ $ vagrant plugin install

    itamae-plugin-recipe-rbenv
  9. vagrant-multiplug Λ࢖͏ͱศར $ vagrant plugin install vagrant-multiplug Vagrant.configure("2") do |config|

    config.vm.box = "ubuntu/trusty64" config.plugin.add_dependency "vagrant-itamae" config.plugin.add_dependency "itamae-plugin-recipe-rbenv" end VagrantfileͰ࢖͏ϓϥάΠϯΛఆٛ͢Δ - Qiita
  10. ͝ଘ͡ͷํ΋ ଟ͍ͱࢥ͍·͕͢

  11. Itamae΋vagrantΛαϙʔτ $ itamae ssh --vagrant

  12. Itamaeͷvagrantαϙʔτͱͷൺֱ • vagrant-itamae • 26321412b637b1635c93ceb197dfa932e108cf69 • Thu Aug 7 01:36:19

    2014 +0900 • Itamae • 1d3ec754e2df6ae841390670efa364fcf097e87b • Wed Aug 27 16:08:38 2014 +0900
  13. vagrant-itamae ͷ΄͏͕ઌʂʂ

  14. vagrant-itamae͸ݩ૆ Itamaeͷvagrantαϙʔτ͸ຊՈ

  15. ͲͬͪΛ࢖͑͹͍͍ͷ͔ʁ

  16. ItamaeͰ͍͍Μ͡Όͳ͍Ͱ͔͢Ͷ…?

  17. ͳΜͱ͔ߟ͑ͨ vagrant-itamae ͕ศརͳγʔϯ

  18. rubyΛೖΕͳ͍͍ͯ͘෼ ָͳγʔϯ͸ଟ෼͋Δ • Windowsͷਓ • Rubyist͡Όͳ͍͚Ͳitamae࢖͍͍ͨਓ

  19. Vagrant ͷ multi-machineͱͷ૬ੑ ͸͍͍ Vagrant.configure(2) do |config| config.vm.define :web config.vm.define

    :db end
  20. Vagrant ͷ multi-machineͱͷ૬ੑ ͸͍͍ • itamae • vagrant up(provision) •

    itamae • itamae ssh --vagrant --host web • itamae ssh --vagrant --host db
  21. ଞͷ௕ॴ͸ࣗ෼Ͱݟ͚ͭͯཉ͍͠ʂ • ͳΜ͔͋ͬͨΒڭ͍͑ͯͩ͘͞…

  22. ༨ஊͰ͕͢

  23. Vagrant ͕ແ͘ͳΔΒ͍͠

  24. @ryot_a_rai ͞Μͷൃද Ͱͼͬ͘Γͨ͠ΜͰ͕͢

  25. itamae ssh ͕ແ͘ͳͬͯ΋ࢮʹ·͢

  26. vagrant-itamae ͷ༨໋͸Θ͔ͣ !

  27. ࢖ͬͯ΋Β͑Δͱخ͍͠Ͱ͢ !