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

プロビジョニングツールはMakeで決まりだろ

 プロビジョニングツールはMakeで決まりだろ

Recruit Technologies Open Lab #03: Infrastructure as Code, 2016-07-07
#rtechlab

Kazunori Otani

July 07, 2016
Tweet

More Decks by Kazunori Otani

Other Decks in Technology

Transcript

  1. ϓϩϏδϣχϯάπʔϧ͸
    .BLFͰܾ·ΓͩΖ
    3FDSVJU5FDIOPMPHJFT0QFO-BC*OGSBTUSVDUVSFBT$PEF
    !LBU[DIBOH
    70:"(&(3061 *OD

    View full-size slide

  2. എܠ
    w େ୩࿨ل!LBU[DIBOH
    w 70:"(&(3061 ;VDLT
    w "E/FUXPSL։ൃ
    w ΞδϟΠϧઓུࣨ
    w ϘϧμϦϯάڃڃ

    View full-size slide

  3. ͜Ε·Ͱͷ͋Β͢͡
    w .BLF͸ϕλʔTIFMMTDSJQUͰ͋Δ

    w *NNVUBCMF*OGSBTUSVDUVSF࣮ࡍʹ΍ͬͯΈͨ


    View full-size slide

  4. ͜Ε͔Βͷ͋Β͢͡
    w ࣮ફNBLFNBDLFSFMBHFOUJOTUBMM
    w ൺֱએݴܕͱ͍͏ύϥμΠϜ
    w ఏݴखଓ͖ܕ΁ͷճؼ

    View full-size slide

  5. ͜Ε͔Βͷ͋Β͢͡
    w ࣮ફNBLFNBDLFSFMBHFOUJOTUBMM
    w ൺֱએݴܕͱ͍͏ύϥμΠϜ
    w ఏݴखଓ͖ܕ΁ͷճؼ

    View full-size slide

  6. NBLFNBDLFSFMBHFOUJOTUBMM
    IUUQTNBDLFSFMJPKBEPDTFOUSZIPXUPJOTUBMMBHFOUBNB[POMJOVY

    View full-size slide

  7. NBLFNBDLFSFMBHFOUJOTUBMM
    curl -fsSL https://mackerel.io/file/script/amznlinux/setup-yum.sh | sh
    sudo yum install -y mackerel-agent
    sudo mackerel-agent init -apikey=""
    sudo /sbin/service mackerel-agent start

    View full-size slide

  8. NBLFNBDLFSFMBHFOUJOTUBMM
    IUUQTHJTUHJUIVCDPNLBU[DIBOHFBFCEEEBEDEEFEC⒎FDBBFBE

    View full-size slide

  9. NBLFNBDLFSFMBHFOUJOTUBMM
    $ sudo make -f mackerel-agent.mk install
    API_KEY=hogehogefugafuga

    View full-size slide

  10. .BLFBTBCFUUFSTIFMMTDSJQU
    γΣϧεΫϦϓτͰ͍͍ͩͨಈ͘
    αϒίϚϯυɺ͔͠΋ิ׬͕ޮ͘
    ໊લ෇͖ͰύϥϝλϥΠζ
    ΤϥʔॲཧTUBUVTOPO[FSPॲཧதஅ

    View full-size slide

  11. ͜Ε͔Βͷ͋Β͢͡
    w ࣮ફNBLFNBDLFSFMBHFOUJOTUBMM
    w ൺֱએݴܕͱ͍͏ύϥμΠϜ
    w ఏݴखଓ͖ܕ΁ͷճؼ

    View full-size slide

  12. 1SPWJTJPOJOH5PPMT
    1VQQFU
    $IFG
    "OTJCMF
    $PGV

    View full-size slide

  13. ྫ$IFG
    IUUQTHJUIVCDPNBLOPXBLOPXIPNFTFSWFSCMPCNBTUFSTJUF
    DPPLCPPLTZVNSFQPSFDJQFTNBDLFSFMSC

    View full-size slide

  14. ྫ$IFG
    IUUQTHJUIVCDPNBLOPXBLOPXIPNFTFSWFSCMPCNBTUFSTJUF
    DPPLCPPLTZVNSFQPSFDJQFTNBDLFSFMSC
    IUUQTHJUIVCDPNBLOPXBLOPXIPNFTFSWFSCMPCNBTUFSTJUFDPPLCPPLTNBDLFSFMSFDJQFTEFGBVMUSC

    View full-size slide

  15. ྫ$IFG
    IUUQTHJUIVCDPNBLOPXBLOPXIPNFTFSWFSCMPCNBTUFSTJUF
    DPPLCPPLTZVNSFQPSFDJQFTNBDLFSFMSC
    IUUQTHJUIVCDPNBLOPXBLOPXIPNFTFSWFSCMPCNBTUFSTJUFDPPLCPPLTNBDLFSFMSFDJQFTEFGBVMUSC

    View full-size slide

  16. ྫ$IFG
    IUUQTHJUIVCDPNBLOPXBLOPXIPNFTFSWFSCMPCNBTUFSTJUF
    DPPLCPPLTZVNSFQPSFDJQFTNBDLFSFMSC
    IUUQTHJUIVCDPNBLOPXBLOPXIPNFTFSWFSCMPCNBTUFSTJUFDPPLCPPLTNBDLFSFMSFDJQFTEFGBVMUSC

    View full-size slide

  17. 1SPWJTJPOJOH5PPMT
    એݴతهड़ͱࠩ෼ద༻
    ެ։ϞδϡʔϧΫοΫϒοΫʜ
    ςϯϓϨʔτΤϯδϯͱ࿈ܞ
    $SFEFOUJBMTͳͲͷศརػೳ

    View full-size slide

  18. 1SPWJTJPOJOH5PPMT
    એݴతهड़ͱࠩ෼ద༻
    ެ։ϞδϡʔϧΫοΫϒοΫʜ
    ςϯϓϨʔτΤϯδϯͱ࿈ܞ
    $SFEFOUJBMTͳͲͷศརػೳ

    View full-size slide

  19. ႈ౳ੑͳΜͯͳ͔ͬͨ
    QBDLBHFlIPHFzFOTVSFlJOTUBMMFEz
    ࣌͸ա͗Δ
    هड़Λফ͢
    ͔Βద༻ͨ͠αʔόʹ͸IPHF͕࢒Δ
    ͔Βద༻ͨ͠αʔόʹ͸IPHF͸ͳ͍

    View full-size slide

  20. 1SPWJTJPOJOH5PPMT
    એݴతهड़ͱࠩ෼ద༻
    ɹɹ❌αʔό͸ঢ়ଶΛ͕࣋ͭΏ͑ʹɺ༧ଌࠔ೉

    View full-size slide

  21. ͜Ε͔Βͷ͋Β͢͡
    w ࣮ફNBLFNBDLFSFMBHFOUJOTUBMM
    w ൺֱએݴܕͱ͍͏ύϥμΠϜ
    w ఏݴखଓ͖ܕ΁ͷճؼ

    View full-size slide

  22. ఏݴखଓ͖ܕ΁ͷճؼ
    w ڞ༻αʔό͔Β୯ػೳαʔό΁
    ෳࡶͳαʔόΛͲ͏؅ཧ͢Δ͔͔Βɺ
    ୯७ͳαʔόΛͲ͏૊Έ߹ΘͤΔ͔΁
    w Ϋϥ΢υίϯςφͱɺഁغՄೳͳΠϯϑϥ
    αʔό͸ঢ়ଶΛ࣋ͭ΋ͷঢ়ଶ؅ཧ͔Βಀ͛Δ
    w ৽ͨͳԿ͔΁ͷରԠαʔόϨε
    ڞ௨ݴޠͱͯ͠ͷDMJ TIFMMTDSJQUͱͷ਌࿨ੑ

    View full-size slide

  23. ϓϩϏδϣχϯάπʔϧ͸
    .BLFͰܾ·ΓͩΖ
    3FDSVJU5FDIOPMPHJFT0QFO-BC*OGSBTUSVDUVSFBT$PEF
    !LBU[DIBOH
    70:"(&(3061 *OD

    View full-size slide