about tsudura

B8668563cbe87543c303dbb818cf9f02?s=47 onigra
June 17, 2015

about tsudura

B8668563cbe87543c303dbb818cf9f02?s=128

onigra

June 17, 2015
Tweet

Transcript

  1. tsudura(ᷤ࿜)

  2. Yudai Suzuki / ླ໦༤େ onigra tensoגࣜձࣾ @onigra_

  3. ࠷ۙͷؔ৺ ݈߁ɾے೑

  4. લճͷShibuya.rbʹͯ https://gist.github.com/onigra/ 1fd3b6e744bc23071bf3

  5. None
  6. @࠙਌ձ

  7. AWSͰAmiͱLaunchConfigͷ࡞੒ͱ AutoScalingGroupͷೖΕସ͑ࣗಈԽ͍ͨ͠Μ͢ΑͶʙ

  8. Packer͸AnsibleΛlocal࣮ߦ͔͠Ͱ͖ͳ͍͠ʙ

  9. None
  10. @ryonext ͞Μ

  11. ͦΕલॻ͖·ͨ͠Α

  12. ͦΕલॻ͖·ͨ͠Α Ϛδ͔͢ʁ͍ͩ͘͞ʂ

  13. ͍͍Ͱ͢Αʙ Ϛδ͔͢ʁ͍ͩ͘͞ʂ

  14. @ryonext͞Μɺ ͋Γ͕ͱ͏͍͟͝·ͨ͠

  15. ௖͍ͨεΫϦϓτΛ ൚༻తʹ࢖͑ΔΑ͏ʹ͍ͨ͠ͱࢥ͍ɺ ίϚϯυϥΠϯπʔϧʹ͠·ͨ͠

  16. tsudura(ᷤ࿜) https://github.com/onigra/tsudura

  17. • Packer + LaunchConfig࡞੒ & AutoScalingGroup ߋ৽ • yamlʹઃఆॻ͍ͯbuild •

    ࣮ߦϞʔυͷࢦఆ • Ansibleͷssh࣮ߦ(ͦΕ͔͠Ͱ͖ͳ͍) • AWSͷΈ • ·ͩࢼݧӡ༻தͰ͢ʂʂʂʂʂ
  18. ࣮ߦϞʔυʹ͍ͭͯ • Ami࡞੒ + LaunchConfig࡞੒ + AutoScalingGroupೖΕସ͑Λߦ͏ NormalMode • LaunchConfig࡞Δॴ·Ͱ΍ΔPackerPlusMode

    • Packerͱಉ͡ॴ·Ͱ(Ami࡞੒)΍ΔPackerMode
  19. ࠓޙͷ༧ఆ • ServerspecΛ࣮ߦͰ͖ΔΑ͏ʹ͢Δ • ServerspecͰςετࣦഊͨ͠Βॲཧ͕ࢭ·Δ(ami࡞੒தͷΠϯελϯ ε͸མͪͳ͍) • Provisioningࣦഊͨ͠Βॲཧ͕ࢭ·Δ • ࣮ߦதͷදࣔΛ΋͏গ͠Ϧονʹ

    • υΩϡϝϯτ΋ͬͱͪΌΜͱॻ͘ • ઃఆϑΝΠϧͷνΣοΫػೳ
  20. ໊લͷ༝དྷ • ઉ੾Γ੃Ͱ͓Έ΍͛Ͱ΋Β͑Δ΍ͭ • Packer͕ݩωλͳͷͰɺPackͱ͍͏୯ޠ͔Β࿈૝Ͱ͖Δ΋ͷ ʹͨ͠ • ശͱ͔แΈͱ͔ࠝแͱ͔ • ͸͡Ίfuroshikiʹ͠Α͏ͱࢥ͚ͬͨͲrubygemsʹطʹ͋ͬͨ

    • ଞͷީิʹkinchaku΋͚͋ͬͨͲλΠϓ਺Ͱtsuduraʹͨ͠
  21. goͰॻ͖௚͍ͨ͠Ͱ͢Ͷ (όΠφϦ഑෍͍ͨ͠)

  22. ͜ͷ͋ͨΓͷ࡞ۀ ͏·ࣗ͘ಈԽ͞ΕͯΔํɺ ͝ҙݟ͍͚ͨͩΔͱخ͍͠Ͱ͢ʂʂʂ